Function minilzo::decompress [] [src]

pub fn decompress(indata: &[u8], newlen: usize) -> Result<Vec<u8>, Error>

Decompress the given data, if possible. An error will be returned if decompression fails.

The length of the output buffer can be specified. If the output buffer is not large enough to hold the decompressed data, a OutputOverrun is returned.

If an error in the compressed data is detected, a minilzo error is returned.

Example:

let data = b"[your-compressed-data]";
let decompressed = minilzo::decompress(&data[..], 100);