Skip to main content

decompress_entry_raw

Function decompress_entry_raw 

Source
pub fn decompress_entry_raw(
    compressed: &[u8],
    method: u16,
    expected_size: usize,
) -> Result<Vec<u8>, ZipError>
Expand description

Decompress pre-read compressed bytes using the given ZIP compression method.

expected_size is the uncompressed size from the Central Directory (0 if unknown).

Used by the streaming reader which reads entry bytes into a buffer before handing them to rayon workers — no full-file slice needed.