Skip to main content

Module entry

Module entry 

Source
Expand description

ZIP entry decompressor.

Decompresses a single ZIP entry given the file data and an EntryLocation from the Central Directory. Supports STORE (method 0) and DEFLATE (method 8).

Designed for parallel use: each worker gets the full data slice (read-only) plus its own EntryLocation, decompresses independently, returns Vec<u8>.

Structs§

ZipEntry
ZipError

Functions§

decompress_entry
Decompress one ZIP entry.
decompress_entry_cow
Borrowing decode: same as decompress_entry but returns Cow so that STORE entries (method 0) borrow directly from data instead of copying.
decompress_entry_raw
Decompress pre-read compressed bytes using the given ZIP compression method.
decompress_entry_raw_cow
Borrowing variant of decompress_entry_raw: STORE (method 0) returns Cow::Borrowed(compressed) — no copy — while DEFLATE returns Cow::Owned. The borrow lives as long as the compressed slice the caller passed in.