pub struct DyldCacheFamily<'data> { /* private fields */ }Expand description
Fully validated offline dyld cache family.
Implementations§
Source§impl<'data> DyldCacheFamily<'data>
impl<'data> DyldCacheFamily<'data>
Sourcepub fn parse(
primary: CacheMemberInput<'data>,
siblings: impl IntoIterator<Item = CacheMemberInput<'data>>,
) -> Result<Self>
pub fn parse( primary: CacheMemberInput<'data>, siblings: impl IntoIterator<Item = CacheMemberInput<'data>>, ) -> Result<Self>
Parse and validate a primary cache plus exactly its declared siblings.
Sourcepub fn members(&self) -> &[CacheFamilyMember<'data>]
pub fn members(&self) -> &[CacheFamilyMember<'data>]
Validated family members, primary first and siblings in declaration order.
Sourcepub fn search_images(&self, query: &str) -> Vec<usize>
pub fn search_images(&self, query: &str) -> Vec<usize>
Find image indexes whose path contains query, in cache index order.
Sourcepub fn image_index_by_path(&self, path: &str) -> Option<usize>
pub fn image_index_by_path(&self, path: &str) -> Option<usize>
Find one image by exact install path.
Sourcepub fn reconstruct_image(
&self,
index: usize,
limits: MaterializationLimits,
) -> Result<ReconstructedImage>
pub fn reconstruct_image( &self, index: usize, limits: MaterializationLimits, ) -> Result<ReconstructedImage>
Reconstruct one indexed image as an owned standalone Mach-O.
Trait Implementations§
Auto Trait Implementations§
impl<'data> Freeze for DyldCacheFamily<'data>
impl<'data> RefUnwindSafe for DyldCacheFamily<'data>
impl<'data> Send for DyldCacheFamily<'data>
impl<'data> Sync for DyldCacheFamily<'data>
impl<'data> Unpin for DyldCacheFamily<'data>
impl<'data> UnsafeUnpin for DyldCacheFamily<'data>
impl<'data> UnwindSafe for DyldCacheFamily<'data>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more