pub unsafe extern "C" fn ZSTD_decompress(
dst: *mut c_void,
dstCapacity: usize,
src: *const c_void,
compressedSize: usize,
) -> usize
Expand description
ZSTD_decompress() :
compressedSize
: must be the exact size of some number of compressed and/or skippable frames.
dstCapacity
is an upper bound of originalSize to regenerate.
If user cannot imply a maximum upper bound, it’s better to use streaming mode to decompress data.
@return : the number of bytes decompressed into dst
(<= dstCapacity
),
or an errorCode if it fails (which can be tested using ZSTD_isError()).