Struct object::read::macho::dyld_cache::DyldCacheImage
source · pub struct DyldCacheImage<'data, 'cache, E = Endianness, R = &'data [u8]>{
pub(crate) cache: &'cache DyldCache<'data, E, R>,
image_info: &'data DyldCacheImageInfo<E>,
}
Expand description
One image (dylib) from inside the dyld shared cache.
Fields§
§cache: &'cache DyldCache<'data, E, R>
§image_info: &'data DyldCacheImageInfo<E>
Implementations§
source§impl<'data, 'cache, E, R> DyldCacheImage<'data, 'cache, E, R>
impl<'data, 'cache, E, R> DyldCacheImage<'data, 'cache, E, R>
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> Freeze for DyldCacheImage<'data, 'cache, E, R>
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>
impl<'data, 'cache, E, R> Sync for DyldCacheImage<'data, 'cache, E, R>
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