Function zstd_sys::ZSTD_decompress [] [src]

pub unsafe extern "C" fn ZSTD_decompress(
    dst: *mut c_void,
    dstCapacity: usize,
    src: *const c_void,
    compressedSize: 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. * @return : the number of bytes decompressed into dst (<= dstCapacity), * or an errorCode if it fails (which can be tested using ZSTD_isError()).