Skip to main content

decompress_entry

Function decompress_entry 

Source
pub fn decompress_entry(
    data: &[u8],
    loc: &EntryLocation,
) -> Result<Vec<u8>, ZipError>
Expand description

Decompress one ZIP entry.

data is the full ZIP file bytes. loc comes from the Central Directory. We read name/extra lengths from the local file header to locate the compressed data, then use the CD’s already-resolved compressed_size (ZIP64-aware).