Skip to main content

unpack_within

Function unpack_within 

Source
pub fn unpack_within(
    bytes: &[u8],
    budget: u64,
) -> Result<Imported<Unpacked>, OrkError>
Expand description

Unpacks bytes, decompressing at most budget bytes out of the archive.

unpack is this with MAX_UNPACKED_BYTES. An entry that would pass the budget is left out with a WarningKind::Skipped warning; if that entry was the design, the read fails with OrkError::NoDesign rather than returning half a file.