Skip to main content

snappy_decompress

Function snappy_decompress 

Source
pub fn snappy_decompress(buf: &[u8]) -> Result<Vec<u8>>
Expand description

Decompresses a raw Snappy body with the hard decoded-size cap enforced, without charging the aggregate request-memory limiter.

Used for response bodies (remote read replies) and tests; request bodies must use snappy_decompress_limited instead so their decoded size is also charged to the aggregate quota.