Skip to main content

parse_attributes

Function parse_attributes 

Source
pub fn parse_attributes(
    record: &[u8],
    first_attr_offset: usize,
) -> Result<Vec<Attribute>>
Expand description

Walk the attribute chain of a (fixed-up) record, starting at first_attr_offset, until the end marker.

§Errors

NtfsError::BadAttribute for any attribute that is undersized, declares a length that wouldn’t advance the cursor, or whose name/body would read outside the record.