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

entry_location

Function entry_location 

Source
pub const fn entry_location(index: u32) -> (u32, usize)
Expand description

Locate table entry index on disc: (header_sector, byte_offset_within_it).

The chunk table is packed right after the 28-byte header with no sector alignment, so every 85th entry straddles a sector boundary (offset + ENTRY_BYTES > SECTOR_BYTES, first at index 84). Sector-by-sector readers must detect that case and stitch the entry from the tail of this sector plus the head of the next one.