pub struct DyldCache<'data, E = Endianness, R = &'data [u8]> where
    E: Endian,
    R: ReadRef<'data>, 
{ /* private fields */ }
Expand description

A parsed representation of the dyld shared cache.

Implementations

Parse the raw dyld shared cache data. For shared caches from macOS 12 / iOS 15 and above, the subcache files need to be supplied as well, in the correct order, with the .symbols subcache last (if present). For example, data would be the data for dyld_shared_cache_x86_64, and subcache_data would be the data for [dyld_shared_cache_x86_64.1, dyld_shared_cache_x86_64.2, …]

Get the architecture type of the file.

Get the endianness of the file.

Return true if the file is little endian, false if it is big endian.

Iterate over the images in this cache.

Find the address in a mapping and return the cache or subcache data it was found in, together with the translated file offset.

Trait Implementations

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.