Struct goblin::mach::MultiArch
[−]
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>
fn new(bytes: &'a [u8]) -> Result<Self>
Lazily construct Self
fn iter_arches(&self) -> FatArchIterator
Iterate every fat arch header
fn arches(&self) -> Result<Vec<FatArch>>
Return all the architectures in this binary
fn get(&self, index: usize) -> Result<MachO<'a>>
Try to get the Mach-o binary at index
fn find<F: Fn(Result<FatArch>) -> bool>(
&'a self,
f: F
) -> Option<Result<MachO<'a>>>
&'a self,
f: F
) -> Option<Result<MachO<'a>>>
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>
type Item = Result<MachO<'a>>
The type of the elements being iterated over.
type IntoIter = MachOIterator<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more