Struct goblin::mach::MultiArch
[−]
[src]
pub struct MultiArch<'a> { pub narches: usize, // some fields omitted }
A Mach-o multi architecture (Fat) binary container
Fields
narches: usize
Methods
impl<'a> MultiArch<'a>
[src]
fn new(bytes: &'a [u8]) -> Result<Self>
Lazily construct Self
fn arches(&self) -> Result<Vec<FatArch>>
Return all the architectures in this binary
fn get(&self, index: usize) -> Result<MachO>
Try to get the Mach-o binary at index
fn find_cputype(&self, cputype: u32) -> Result<Option<FatArch>>
Try and find the cputype
in Self
, if there is one
Trait Implementations
impl<'a, 'b> IntoIterator for &'b MultiArch<'a>
[src]
type Item = Result<FatArch>
The type of the elements being iterated over.
type IntoIter = FatArchIterator<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more