Skip to main content

decompress_zlib_pooled

Function decompress_zlib_pooled 

Source
pub fn decompress_zlib_pooled(
    compressed: &[u8],
    max_size: u64,
) -> Result<Vec<u8>>
Expand description

Decompress zlib data using a pooled decompressor.

Reuses the flate2::Decompress internal state (~48 KB) and the output buffer across calls on the same thread, avoiding repeated heap allocations.