Struct goblin::mach::fat::FatArch
[−]
[src]
#[repr(C)]pub struct FatArch { pub cputype: u32, pub cpusubtype: u32, pub offset: u32, pub size: u32, pub align: u32, }
The Mach-o FatArch
always has its data bigendian
Fields
cputype: u32
cpusubtype: u32
offset: u32
size: u32
align: u32
Methods
impl FatArch
[src]
fn new(bytes: &[u8; 20]) -> FatArch
fn is_64(&self) -> bool
fn parse_arches<S: AsRef<[u8]>>(fd: &S,
offset: usize,
count: usize)
-> Result<Vec<Self>>
offset: usize,
count: usize)
-> Result<Vec<Self>>
fn parse<S: AsRef<[u8]>>(buffer: &S) -> Result<Vec<Self>>
fn find_cputype(arches: &[Self], cputype: u32) -> Option<&Self>
fn find_64(arches: &[Self]) -> Option<&Self>
Trait Implementations
impl Clone for FatArch
[src]
fn clone(&self) -> FatArch
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