Struct DyldCacheImageInfo

struct DyldCacheImageInfo<E: Endian> { ... }

Corresponds to struct dyld_cache_image_info from dyld_cache_format.h.

Fields

address: crate::endian::U64<E>
mod_time: crate::endian::U64<E>
inode: crate::endian::U64<E>
path_file_offset: crate::endian::U32<E>
pad: crate::endian::U32<E>

Implementations

impl<E: Endian> macho::DyldCacheImageInfo<E>

fn path<'data, R: ReadRef<'data>>(self: &Self, endian: E, data: R) -> Result<&'data [u8]>

The file system path of this image.

fn file_offset(self: &Self, endian: E, mappings: &[macho::DyldCacheMappingInfo<E>]) -> Result<u64>

Find the file offset of the image by looking up its address in the mappings.

impl<E> Freeze for DyldCacheImageInfo<E>

impl<E> RefUnwindSafe for DyldCacheImageInfo<E>

impl<E> Send for DyldCacheImageInfo<E>

impl<E> Sync for DyldCacheImageInfo<E>

impl<E> Unpin for DyldCacheImageInfo<E>

impl<E> UnwindSafe for DyldCacheImageInfo<E>

impl<E: $crate::clone::Clone + Endian> Clone for DyldCacheImageInfo<E>

fn clone(self: &Self) -> DyldCacheImageInfo<E>

impl<E: $crate::fmt::Debug + Endian> Debug for DyldCacheImageInfo<E>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl<E: $crate::marker::Copy + Endian> Copy for DyldCacheImageInfo<E>

impl<E: Endian> Pod for DyldCacheImageInfo<E>

impl<T> Any for DyldCacheImageInfo<E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for DyldCacheImageInfo<E>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for DyldCacheImageInfo<E>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for DyldCacheImageInfo<E>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for DyldCacheImageInfo<E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for DyldCacheImageInfo<E>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for DyldCacheImageInfo<E>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for DyldCacheImageInfo<E>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for DyldCacheImageInfo<E>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>