Expand description
§Utilities: shared parsing helpers for on-disk structures
Little-endian reader functions for extracting typed values from raw byte buffers at known offsets. Used throughout the disk crate to parse packed on-disk structures safely without pointer casts.
Functions§
- read_
le_ u16 - Read a little-endian u16 from
bufat byte offsetoff. - read_
le_ u32 - Read a little-endian u32 from
bufat byte offsetoff. - read_
le_ u64 - Read a little-endian u64 from
bufat byte offsetoff. - read_
uuid - Read a UUID (16 bytes, big-endian byte order) from
bufat byte offsetoff. - write_
le_ u16 - Write a little-endian u16 into
bufat byte offsetoff. - write_
le_ u32 - Write a little-endian u32 into
bufat byte offsetoff. - write_
le_ u64 - Write a little-endian u64 into
bufat byte offsetoff. - write_
uuid - Write a UUID (16 bytes) into
bufat byte offsetoff.