Struct object::read::macho::DyldCacheImage
source · pub struct DyldCacheImage<'data, 'cache, E = Endianness, R = &'data [u8]>where
E: Endian,
R: ReadRef<'data>,{ /* private fields */ }
Expand description
One image (dylib) from inside the dyld shared cache.
Implementations§
source§impl<'data, 'cache, E, R> DyldCacheImage<'data, 'cache, E, R>where
E: Endian,
R: ReadRef<'data>,
impl<'data, 'cache, E, R> DyldCacheImage<'data, 'cache, E, R>where E: Endian, R: ReadRef<'data>,
sourcepub fn image_data_and_offset(&self) -> Result<(R, u64)>
pub fn image_data_and_offset(&self) -> Result<(R, u64)>
The subcache data which contains the Mach-O header for this image, together with the file offset at which this image starts.
sourcepub fn parse_object(&self) -> Result<File<'data, R>>
pub fn parse_object(&self) -> Result<File<'data, R>>
Parse this image into an Object.
Trait Implementations§
Auto Trait Implementations§
impl<'data, 'cache, E, R> RefUnwindSafe for DyldCacheImage<'data, 'cache, E, R>where E: RefUnwindSafe, R: RefUnwindSafe,
impl<'data, 'cache, E, R> Send for DyldCacheImage<'data, 'cache, E, R>where E: Sync, R: Sync,
impl<'data, 'cache, E, R> Sync for DyldCacheImage<'data, 'cache, E, R>where E: Sync, R: Sync,
impl<'data, 'cache, E, R> Unpin for DyldCacheImage<'data, 'cache, E, R>
impl<'data, 'cache, E, R> UnwindSafe for DyldCacheImage<'data, 'cache, E, R>where E: RefUnwindSafe, R: RefUnwindSafe,
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