[−][src]Function zstd_safe::decompress
pub fn decompress(dst: &mut [u8], src: &[u8]) -> Result<usize, usize>
ZSTD_decompress
compressedSize
: must be the exact size of some number of compressed and/or skippable frames.
dstCapacity
is an upper bound of originalSize.
If user cannot imply a maximum upper bound, it's better to use streaming mode to decompress data.
Returns the number of bytes decompressed into dst
(<= dstCapacity
),
or an errorCode if it fails (which can be tested using ZSTD_isError()).