Function minilzo3::decompress_vec[][src]

pub fn decompress_vec(input: &[u8]) -> Result<Vec<u8>>

Convenience function to handle vec allocation for decompression, taking into account the header.

Note

Will always fail if the input does not contain a header; if this is your case, you’ll need to pre-allocate a vec of appropriate length for decompression output and use decompress directly.