Expand description
Helper routines for safely reading integers from byte slices.
Many parts of the crate need to interpret raw data at specific offsets.
The functions provided here centralize that logic, performing bounds
checks and converting little‑endian byte sequences into native Rust
integers. Errors are reported using FileParseError, allowing callers
to bubble failures up without panicking.
Functions§
- extract_
u16 - Reads a little-endian
u16atoffset, returningFileParseError::BufferOverflowon truncation. - extract_
u32 - Reads a little-endian
u32atoffset, returningFileParseError::BufferOverflowon truncation. - extract_
u64 - Reads a little-endian
u64atoffset, returningFileParseError::BufferOverflowon truncation.