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

find_entry

Function find_entry 

Source
pub fn find_entry(
    rd: &mut SectorReader,
    pack_lba: u32,
    chunk_id: u32,
    scratch: &mut [u32; 512],
) -> Option<PackEntry>
Expand description

Scan the pack table at pack_lba for chunk_id and return its entry (including byte_size and the FNV checksum the writer stored).

Reads the header/table sectors through scratch, one at a time. None on read failure, bad magic/version, or id not present. I_MASK is VBlank-only while it reads and restored when it returns.