ZSTD_decompress method

int ZSTD_decompress(
  1. Pointer<Void> dst,
  2. int dstCapacity,
  3. Pointer<Void> src,
  4. int compressedSize,
)

! 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()).

Implementation

int ZSTD_decompress(
  ffi.Pointer<ffi.Void> dst,
  int dstCapacity,
  ffi.Pointer<ffi.Void> src,
  int compressedSize,
) {
  return _ZSTD_decompress(
    dst,
    dstCapacity,
    src,
    compressedSize,
  );
}