pub struct CapFile<'a> {
pub package_aid: Aid,
pub components: CapComponents,
/* private fields */
}Expand description
Parsed CAP file. Borrows the input ZIP bytes for the lifetime 'a; the Load
File Data Block is produced on demand (never owned).
Fields§
§package_aid: Aid§components: CapComponentsParsed component metadata (imports, applet entries) — small owned values.
Implementations§
Source§impl<'a> CapFile<'a>
impl<'a> CapFile<'a>
Sourcepub fn lfdb(&self) -> LoadFileDataBlock<'a>
pub fn lfdb(&self) -> LoadFileDataBlock<'a>
A streaming view of the assembled Load File Data Block (GPCS §C.2 order).
Total length is computed up front (drives the 'C4' TLV length and the
LOAD block_count); no bytes are copied/inflated until
LoadFileDataBlock::next_block.
Auto Trait Implementations§
impl<'a> Freeze for CapFile<'a>
impl<'a> RefUnwindSafe for CapFile<'a>
impl<'a> Send for CapFile<'a>
impl<'a> Sync for CapFile<'a>
impl<'a> Unpin for CapFile<'a>
impl<'a> UnsafeUnpin for CapFile<'a>
impl<'a> UnwindSafe for CapFile<'a>
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