Skip to main content

parse_xfields

Function parse_xfields 

Source
pub fn parse_xfields(data: &[u8]) -> Vec<(u8, &[u8])>
Expand description

Walk an xf_blob extended-field area, returning (x_type, value_bytes) per field (bounds-checked, never panics).

Each value slice is 8-byte aligned within xf_data per the Apple spec; an out-of-bounds descriptor or value (a hostile/short blob) ends the walk early, yielding only the fields that fully fit.