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
sourceimpl<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
sourceimpl<E: Clone + Endian> Clone for DyldCacheImageInfo<E>
impl<E: Clone + Endian> Clone for DyldCacheImageInfo<E>
sourcefn clone(&self) -> DyldCacheImageInfo<E>
fn clone(&self) -> DyldCacheImageInfo<E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more