Struct object::macho::DyldCacheImageInfo [−][src]
#[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
impl<E: Endian> DyldCacheImageInfo<E>
[src]
impl<E: Endian> DyldCacheImageInfo<E>
[src]pub fn path<'data, R: ReadRef<'data>>(
&self,
endian: E,
data: R
) -> Result<&'data [u8]>
[src]
pub fn path<'data, R: ReadRef<'data>>(
&self,
endian: E,
data: R
) -> Result<&'data [u8]>
[src]The file system path of this image.
pub fn file_offset(
&self,
endian: E,
mappings: &[DyldCacheMappingInfo<E>]
) -> Result<u64>
[src]
pub fn file_offset(
&self,
endian: E,
mappings: &[DyldCacheMappingInfo<E>]
) -> Result<u64>
[src]Find the file offset of the image by looking up its address in the mappings.
Trait Implementations
impl<E: Clone + Endian> Clone for DyldCacheImageInfo<E>
[src]
impl<E: Clone + Endian> Clone for DyldCacheImageInfo<E>
[src]fn clone(&self) -> DyldCacheImageInfo<E>
[src]
fn clone(&self) -> DyldCacheImageInfo<E>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<E: Debug + Endian> Debug for DyldCacheImageInfo<E>
[src]
impl<E: Debug + Endian> Debug for DyldCacheImageInfo<E>
[src]impl<E: Copy + Endian> Copy for DyldCacheImageInfo<E>
[src]
impl<E: Endian> Pod for DyldCacheImageInfo<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for DyldCacheImageInfo<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for DyldCacheImageInfo<E> where
E: Send,
E: Send,
impl<E> Sync for DyldCacheImageInfo<E> where
E: Sync,
E: Sync,
impl<E> Unpin for DyldCacheImageInfo<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for DyldCacheImageInfo<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more