Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

parse_entry_at

Function parse_entry_at 

Source
pub fn parse_entry_at(bytes: &[u8], offset: usize) -> Option<PackEntry>
Expand description

Parse one ENTRY_BYTES-sized table entry starting at an arbitrary byte offset. This is the sector-local primitive behind parse_entry: a caller holding a single 2048-byte header sector (not the whole pack) can parse the entries it contains directly, and stitch the one entry that straddles into the next sector through a small ENTRY_BYTES buffer (see entry_location). None when the slice is too short.