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§
Functions§
- decompress_
entry - Decompress one ZIP entry.
- decompress_
entry_ cow - Borrowing decode: same as
decompress_entrybut returnsCowso that STORE entries (method 0) borrow directly fromdatainstead 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) returnsCow::Borrowed(compressed)— no copy — while DEFLATE returnsCow::Owned. The borrow lives as long as thecompressedslice the caller passed in.