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: usize, pub sizeofcmds: u32, pub flags: u32, pub reserved: u32, }
Generic sized header
Fields
magic: u32
cputype: u32
cpusubtype: u8
padding1: u8
padding2: u8
caps: u8
filetype: u32
type of file
ncmds: usize
number of load commands
sizeofcmds: u32
the size of all the load commands
flags: u32
flags
reserved: u32
Methods
impl Header
[src]
fn is_little_endian(&self) -> bool
fn container(&self) -> Container
fn size(&self) -> usize
fn ctx(&self) -> Result<Ctx>
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