Skip to main content

parse_bytes

Function parse_bytes 

Source
pub fn parse_bytes(
    bytes: &[u8],
    path_label: &str,
) -> Result<MachOImage, LoadError>
Expand description

Parses Mach-O bytes. path_label is stored in the summary for display.

Fat images are reduced to the arm64 thin slice; MachOSummary::file_slice_offset is the container offset of that slice (0 for thin files).