Struct object::macho::DyldCacheHeader [−][src]
#[repr(C)]pub struct DyldCacheHeader<E: Endian> { pub magic: [u8; 16], pub mapping_offset: U32<E>, pub mapping_count: U32<E>, pub images_offset: U32<E>, pub images_count: U32<E>, pub dyld_base_address: U64<E>, }
Expand description
The dyld cache header, containing only the fields which are present in all versions of dyld caches (dyld-95.3 and up). Many more fields exist in later dyld versions, but we currently do not need to parse those. Corresponds to struct dyld_cache_header from dyld_cache_format.h.
Fields
magic: [u8; 16]
e.g. “dyld_v0 i386”
mapping_offset: U32<E>
file offset to first dyld_cache_mapping_info
mapping_count: U32<E>
number of dyld_cache_mapping_info entries
images_offset: U32<E>
file offset to first dyld_cache_image_info
images_count: U32<E>
number of dyld_cache_image_info entries
dyld_base_address: U64<E>
base address of dyld when cache was built
Implementations
impl<E: Endian> DyldCacheHeader<E>
[src]
impl<E: Endian> DyldCacheHeader<E>
[src]pub fn parse<'data, R: ReadRef<'data>>(data: R) -> Result<&'data Self>
[src]
pub fn parse<'data, R: ReadRef<'data>>(data: R) -> Result<&'data Self>
[src]Read the dyld cache header.
pub fn parse_magic(&self) -> Result<(Architecture, E)>
[src]
pub fn parse_magic(&self) -> Result<(Architecture, E)>
[src]Returns (arch, endian) based on the magic string.
Trait Implementations
impl<E: Clone + Endian> Clone for DyldCacheHeader<E>
[src]
impl<E: Clone + Endian> Clone for DyldCacheHeader<E>
[src]fn clone(&self) -> DyldCacheHeader<E>
[src]
fn clone(&self) -> DyldCacheHeader<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 DyldCacheHeader<E>
[src]
impl<E: Debug + Endian> Debug for DyldCacheHeader<E>
[src]impl<E: Copy + Endian> Copy for DyldCacheHeader<E>
[src]
impl<E: Endian> Pod for DyldCacheHeader<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for DyldCacheHeader<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for DyldCacheHeader<E> where
E: Send,
E: Send,
impl<E> Sync for DyldCacheHeader<E> where
E: Sync,
E: Sync,
impl<E> Unpin for DyldCacheHeader<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for DyldCacheHeader<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