Skip to main content

mach_o_archs

Function mach_o_archs 

Source
pub fn mach_o_archs(bytes: &[u8]) -> Vec<Arch>
Expand description

Reads the architectures of a Mach-O binary from its header: a thin binary has one, a universal binary lists each slice. Unknown CPU types are left out; a file that is no Mach-O binary gives none.