[][src]Function lz4::block::decompress

pub fn decompress(src: &[u8], uncompressed_size: Option<i32>) -> Result<Vec<u8>>

Decompresses the src buffer. If uncompressed_size is None, the source length will be read from the start of the input buffer.

Errors

Returns std::io::Error with ErrorKind::InvalidInput if the src buffer is too short, the provided (or parsed) uncompressed_size is to large or negative. Returns std::io::Error with ErrorKind::InvalidData if the decompression failed inside the C library. This is most likely due to malformed input.