Function lz4_flex::block::decompress

source ·
pub fn decompress(
    input: &[u8],
    min_uncompressed_size: usize
) -> Result<Vec<u8>, DecompressError>
Expand description

Decompress all bytes of input into a new vec. The passed parameter min_uncompressed_size needs to be equal or larger than the uncompressed size.

§Panics

May panic if the parameter min_uncompressed_size is smaller than the uncompressed data.