[−][src]Struct fat_macho::FatReader
Mach-O fat binary reader
Implementations
impl<'a> FatReader<'a>
[src]
pub fn new(buffer: &'a [u8]) -> Result<Self, Error>
[src]
Parse a Mach-O FAT binary from a buffer
pub fn extract(&self, arch_name: &str) -> Option<&'a [u8]>
[src]
Extract thin binary by arch name
Methods from Deref<Target = MultiArch<'a>>
pub fn iter_arches(&self) -> FatArchIterator<'_>
[src]
Iterate every fat arch header
pub fn arches(&self) -> Result<Vec<FatArch, Global>, Error>
[src]
Return all the architectures in this binary
pub fn get(&self, index: usize) -> Result<MachO<'a>, Error>
[src]
Try to get the Mach-o binary at index
pub fn find<F>(&'a self, f: F) -> Option<Result<MachO<'a>, Error>> where
F: Fn(Result<FatArch, Error>) -> bool,
[src]
F: Fn(Result<FatArch, Error>) -> bool,
pub fn find_cputype(&self, cputype: u32) -> Result<Option<FatArch>, Error>
[src]
Try and find the cputype
in Self
, if there is one
Trait Implementations
impl<'a> Debug for FatReader<'a>
[src]
impl<'a> Deref for FatReader<'a>
[src]
type Target = MultiArch<'a>
The resulting type after dereferencing.
pub fn deref(&self) -> &Self::Target
[src]
impl<'a> DerefMut for FatReader<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for FatReader<'a>
[src]
impl<'a> Send for FatReader<'a>
[src]
impl<'a> Sync for FatReader<'a>
[src]
impl<'a> Unpin for FatReader<'a>
[src]
impl<'a> UnwindSafe for FatReader<'a>
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,