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]
impl<'a> MultiArch<'a>
pub fn new(bytes: &'a [u8]) -> Result<Self>
[src]
pub fn new(bytes: &'a [u8]) -> Result<Self>
Lazily construct Self
ⓘImportant traits for FatArchIterator<'a>pub fn iter_arches(&self) -> FatArchIterator
[src]
ⓘImportant traits for FatArchIterator<'a>
pub fn iter_arches(&self) -> FatArchIterator
Iterate every fat arch header
pub fn arches(&self) -> Result<Vec<FatArch>>
[src]
pub fn arches(&self) -> Result<Vec<FatArch>>
Return all the architectures in this binary
pub fn get(&self, index: usize) -> Result<MachO<'a>>
[src]
pub fn get(&self, index: usize) -> Result<MachO<'a>>
Try to get the Mach-o binary at index
pub fn find<F: Fn(Result<FatArch>) -> bool>(
&'a self,
f: F
) -> Option<Result<MachO<'a>>>
[src]
pub fn find<F: Fn(Result<FatArch>) -> bool>(
&'a self,
f: F
) -> Option<Result<MachO<'a>>>
pub fn find_cputype(&self, cputype: u32) -> Result<Option<FatArch>>
[src]
pub 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]
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
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'a> Debug for MultiArch<'a>
[src]
impl<'a> Debug for MultiArch<'a>