Fields§
§magic: U32<BigEndian>
FAT_MAGIC or FAT_MAGIC_64
nfat_arch: U32<BigEndian>
number of structs that follow
Implementations§
source§impl FatHeader
impl FatHeader
sourcepub fn parse<'data, R: ReadRef<'data>>(file: R) -> Result<&'data FatHeader>
pub fn parse<'data, R: ReadRef<'data>>(file: R) -> Result<&'data FatHeader>
Attempt to parse a fat header.
Does not validate the magic value.
sourcepub fn parse_arch32<'data, R: ReadRef<'data>>(
file: R
) -> Result<&'data [FatArch32]>
pub fn parse_arch32<'data, R: ReadRef<'data>>(
file: R
) -> Result<&'data [FatArch32]>
Attempt to parse a fat header and 32-bit fat arches.
sourcepub fn parse_arch64<'data, R: ReadRef<'data>>(
file: R
) -> Result<&'data [FatArch64]>
pub fn parse_arch64<'data, R: ReadRef<'data>>(
file: R
) -> Result<&'data [FatArch64]>
Attempt to parse a fat header and 64-bit fat arches.