Skip to main content

verify_native

Function verify_native 

Source
pub fn verify_native(
    bytes: &[u8],
    limits: ArchiveLimits,
    cancel: &Cancellation,
    reserve: impl FnOnce(usize, u64) -> Result<(), Error>,
) -> Result<(usize, u64), Error>
Expand description

Verify an adapter-owned ZIP under session limits without changing its names or flattening its contents. Allows the ZIP reader’s compatible layouts and compression methods; the adapter still owns namespace/format validation. Every payload is checked against its declared size and CRC before delegation. Returns total entries and expansion, including opaque native companions.