Struct object::macho::DyldCacheHeader
source · [−]#[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
Read the dyld cache header.
Returns (arch, endian) based on the magic string.
Return the mapping information table.
Trait Implementations
Auto Trait Implementations
impl<E> RefUnwindSafe for DyldCacheHeader<E> where
E: RefUnwindSafe,
impl<E> Send for DyldCacheHeader<E> where
E: Send,
impl<E> Sync for DyldCacheHeader<E> where
E: Sync,
impl<E> Unpin for DyldCacheHeader<E> where
E: Unpin,
impl<E> UnwindSafe for DyldCacheHeader<E> where
E: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more