Function lz4::block::compress_bound
source · pub fn compress_bound(uncompressed_size: usize) -> Result<usize>
Expand description
Returns the size of the buffer that is guaranteed to hold the result of
compressing uncompressed_size
bytes of in data. Returns std::io::Error
with ErrorKind::InvalidInput if input data is too long to be compressed by lz4.