Struct goblin::mach::fat::FatHeader
[−]
[src]
#[repr(C)]pub struct FatHeader { pub magic: u32, pub nfat_arch: u32, }
The Mach-o FatHeader
always has its data bigendian
Fields
magic: u32
nfat_arch: u32
Methods
impl FatHeader
[src]
fn from_bytes(bytes: &[u8; 8]) -> FatHeader
fn from_fd(fd: &mut File) -> Result<FatHeader>
fn parse<S: AsRef<[u8]>>(buffer: &S) -> Result<FatHeader>
Parse a mach-o fat header from the buffer
Trait Implementations
impl Clone for FatHeader
[src]
fn clone(&self) -> FatHeader
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more