Function ZSTD_decompress

Source
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. Multiple compressed frames can be decompressed at once with this method. The result will be the concatenation of all decompressed frames, back to back. dstCapacity is an upper bound of originalSize to regenerate. First frame’s decompressed size can be extracted using ZSTD_getFrameContentSize(). If maximum upper bound isn’t known, prefer using 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()).