Skip to main content

Module parse

Module parse 

Source
Expand description

Mach-O arm64 parsing via goblin (thin + fat).

Fat containers are always reduced to the arm64 thin slice before header / segment / nlist interpretation. MachOSummary::file_slice_offset records where that slice sits in the on-disk container so map fileoff values can be adjusted when reading from the original path.

Structs§

Arm64Slice
Location of the arm64 thin Mach-O inside a file buffer (thin or fat).

Functions§

locate_arm64_slice
Locates the arm64 thin Mach-O inside bytes (identity for thin arm64).
parse_bytes
Parses Mach-O bytes. path_label is stored in the summary for display.
parse_path
Reads and parses a Mach-O file, selecting the arm64 slice from fat images.
read_thin_arm64
Reads a path and returns only the arm64 thin Mach-O bytes.
thin_arm64_bytes
Returns a view of the arm64 thin Mach-O inside bytes.