Skip to main content

MAX_UNPACKED_BYTES

Constant MAX_UNPACKED_BYTES 

Source
pub const MAX_UNPACKED_BYTES: u64 = _; // 268_435_456u64
Expand description

The most a container holds, unpacked, over all its entries, the design’s included: 256 MiB. write refuses more, and read decompresses no more.

A deflate stream can expand by about a thousand to one, so a small archive could otherwise ask for more memory than a machine has. Use read_within to read with another limit.