Struct object::macho::DyldCacheImageInfo
source · #[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 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<E: Copy + Endian> Copy for DyldCacheImageInfo<E>
impl<E: Endian> Pod for DyldCacheImageInfo<E>
Auto Trait Implementations§
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§
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