Struct goblin::mach::header::Header
[−]
[src]
#[repr(C)]pub struct Header { pub magic: u32, pub cputype: u32, pub cpusubtype: u8, pub padding1: u8, pub padding2: u8, pub caps: u8, pub filetype: u32, pub ncmds: u32, pub sizeofcmds: u32, pub flags: u32, pub reserved: u32, }
Fields
magic: u32
cputype: u32
cpusubtype: u8
padding1: u8
padding2: u8
caps: u8
filetype: u32
ncmds: u32
sizeofcmds: u32
flags: u32
reserved: u32
Methods
impl Header
[src]
fn from_bytes(bytes: &[u8; 32]) -> &Header
Returns the corresponding Mach-o header from the given byte array
fn parse<S: AsRef<[u8]>>(buffer: &S,
offset: usize,
le: Endian)
-> Result<Header>
offset: usize,
le: Endian)
-> Result<Header>
Trait Implementations
impl Clone for Header
[src]
fn clone(&self) -> Header
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