Skip to main content

load_dump_header

Function load_dump_header 

Source
pub fn load_dump_header(nam: &str, name: &str, err: i32) -> Option<Vec<u32>>
Expand description

Port of load_dump_header(char *nam, char *name, int err) from Src/parse.c:3258. Opens the file, reads + validates the magic and version, then slurps the full header table into memory. Returns the header u32-array on success or None on any failure (emitting C-shaped warnings when err != 0).