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 more