Struct goblin::mach::MultiArch [−][src]
A Mach-o multi architecture (Fat) binary container
Fields
narches: usize
Implementations
impl<'a> MultiArch<'a>
[src][−]
pub fn new(bytes: &'a [u8]) -> Result<Self>
[src][−]
Lazily construct Self
pub fn iter_arches(&self) -> FatArchIterator<'_>ⓘNotable traits for FatArchIterator<'a>
impl<'a> Iterator for FatArchIterator<'a> type Item = Result<FatArch>;
[src][−]
Notable traits for FatArchIterator<'a>
impl<'a> Iterator for FatArchIterator<'a> type Item = Result<FatArch>;
Iterate every fat arch header
pub fn arches(&self) -> Result<Vec<FatArch>>
[src][−]
Return all the architectures in this binary
pub fn get(&self, index: usize) -> Result<MachO<'a>>
[src][−]
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]
&'a self,
f: F
) -> Option<Result<MachO<'a>>>
pub fn find_cputype(&self, cputype: u32) -> Result<Option<FatArch>>
[src][−]
Try and find the cputype
in Self
, if there is one
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for MultiArch<'a>
impl<'a> Send for MultiArch<'a>
impl<'a> Sync for MultiArch<'a>
impl<'a> Unpin for MultiArch<'a>
impl<'a> UnwindSafe for MultiArch<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,