Skip to main content

parse_section_table

Function parse_section_table 

Source
pub fn parse_section_table<'a>(
    data: &'a [u8],
    header: &Container10dHeader,
) -> Result<&'a [SectionDescriptor], SectionTableError>
Expand description

Parse the section table from a .10d byte slice. Returns a zero-copy &[SectionDescriptor] view into the input. Runs every P0.2 reader gate: pointer consistency, per-descriptor type/tier/reserved validation, tier alignment, in-bounds, overlap, stride consistency, and per-section CRC.

Padding-between-sections is verified zero as part of the overlap/scan pass.