Function lzzzz::lz4f::max_compressed_size
source ยท pub fn max_compressed_size(original_size: usize, prefs: &Preferences) -> usize
Expand description
Calculates the maximum size of the compressed output.
If original_size
is too large to compress, this returns 0
.
Returned values are reliable only for compress
and compress_to_vec
.
Streaming compressors may produce larger compressed frames.