Skip to main content

compress_bound

Function compress_bound 

Source
pub fn compress_bound(length: u64) -> Result<u64>
Expand description

zlib compressBound for its default window/memory settings (as used by Git). Includes wrapper/checksum overhead, with checked arithmetic. This is not a bound on arbitrarily padded streams or other deflate settings. https://github.com/madler/zlib/blob/master/compress.c