#[repr(C)]pub struct FatHeader {
pub magic: U32<BigEndian>,
pub nfat_arch: U32<BigEndian>,
}
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.
Trait Implementations§
impl Copy for FatHeader
impl Pod for FatHeader
Auto Trait Implementations§
impl RefUnwindSafe for FatHeader
impl Send for FatHeader
impl Sync for FatHeader
impl Unpin for FatHeader
impl UnwindSafe for FatHeader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more