pub struct FatArch<'data> { /* private fields */ }Expand description
One validated Mach-O slice in a fat container.
Implementations§
Source§impl<'data> FatArch<'data>
impl<'data> FatArch<'data>
Sourcepub fn fat_offset(&self) -> FatFileOffset
pub fn fat_offset(&self) -> FatFileOffset
Fat-container-relative start offset.
Sourcepub fn thin_to_fat_offset(
&self,
thin: ThinFileOffset,
) -> ParseResult<FatFileOffset>
pub fn thin_to_fat_offset( &self, thin: ThinFileOffset, ) -> ParseResult<FatFileOffset>
Translate a thin-image-relative offset to a fat-container-relative offset.
Sourcepub fn fat_to_thin_offset(
&self,
fat: FatFileOffset,
) -> ParseResult<ThinFileOffset>
pub fn fat_to_thin_offset( &self, fat: FatFileOffset, ) -> ParseResult<ThinFileOffset>
Translate a fat-container-relative offset to a thin-image-relative offset.
Trait Implementations§
Auto Trait Implementations§
impl<'data> Freeze for FatArch<'data>
impl<'data> RefUnwindSafe for FatArch<'data>
impl<'data> Send for FatArch<'data>
impl<'data> Sync for FatArch<'data>
impl<'data> Unpin for FatArch<'data>
impl<'data> UnsafeUnpin for FatArch<'data>
impl<'data> UnwindSafe for FatArch<'data>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more