pub fn decompress(
compressed: &[u8],
max_decompressed_bytes: usize,
) -> Result<Vec<u8>, Error>Expand description
Decompresses a LZ4-compressed byte slice.
This function will allocate a new Vec<u8> to hold the decompressed data.
Fails if the decompressed data is larger than max_decompressed_bytes, so a
small hostile payload can’t expand into an unbounded allocation.