[][src]Function zstd::block::decompress

pub fn decompress(data: &[u8], capacity: usize) -> Result<Vec<u8>>

Decompresses a block of data and returns the decompressed result.

The decompressed data should be less than capacity bytes, or an error will be returned.