#[repr(C)]pub struct DyldCacheImageInfo<E: Endian> {
pub address: U64<E>,
pub mod_time: U64<E>,
pub inode: U64<E>,
pub path_file_offset: U32<E>,
pub pad: U32<E>,
}
Expand description
Corresponds to struct dyld_cache_image_info from dyld_cache_format.h.
Fields§
§address: U64<E>
§mod_time: U64<E>
§inode: U64<E>
§path_file_offset: U32<E>
§pad: U32<E>
Implementations§
Source§impl<E: Endian> DyldCacheImageInfo<E>
impl<E: Endian> DyldCacheImageInfo<E>
Sourcepub fn path<'data, R: ReadRef<'data>>(
&self,
endian: E,
data: R,
) -> Result<&'data [u8]>
pub fn path<'data, R: ReadRef<'data>>( &self, endian: E, data: R, ) -> Result<&'data [u8]>
The file system path of this image.
Sourcepub fn file_offset(
&self,
endian: E,
mappings: &[DyldCacheMappingInfo<E>],
) -> Result<u64>
pub fn file_offset( &self, endian: E, mappings: &[DyldCacheMappingInfo<E>], ) -> Result<u64>
Find the file offset of the image by looking up its address in the mappings.
Trait Implementations§
Source§impl<E: Clone + Endian> Clone for DyldCacheImageInfo<E>
impl<E: Clone + Endian> Clone for DyldCacheImageInfo<E>
Source§fn clone(&self) -> DyldCacheImageInfo<E>
fn clone(&self) -> DyldCacheImageInfo<E>
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<E: Debug + Endian> Debug for DyldCacheImageInfo<E>
impl<E: Debug + Endian> Debug for DyldCacheImageInfo<E>
impl<E: Copy + Endian> Copy for DyldCacheImageInfo<E>
impl<E: Endian> Pod for DyldCacheImageInfo<E>
Auto Trait Implementations§
impl<E> Freeze for DyldCacheImageInfo<E>
impl<E> RefUnwindSafe for DyldCacheImageInfo<E>where
E: RefUnwindSafe,
impl<E> Send for DyldCacheImageInfo<E>where
E: Send,
impl<E> Sync for DyldCacheImageInfo<E>where
E: Sync,
impl<E> Unpin for DyldCacheImageInfo<E>where
E: Unpin,
impl<E> UnwindSafe for DyldCacheImageInfo<E>where
E: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)