#[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.

Return the image information table.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.