Function zstd::zstd_safe::decompress
source ยท pub fn decompress<C>(dst: &mut C, src: &[u8]) -> Result<usize, usize>
Expand description
Wraps the ZSTD_decompress
function.
This is a one-step decompression (not streaming).
You will need to make sure dst
is large enough to store all the decompressed content, or an
error will be returned.
If decompression was a success, the number of bytes written will be returned.