ZSTD_compressCCtx method

int ZSTD_compressCCtx(
  1. Pointer<ZSTD_CCtx> cctx,
  2. Pointer<Void> dst,
  3. int dstCapacity,
  4. Pointer<Void> src,
  5. int srcSize,
  6. int compressionLevel,
)

! ZSTD_compressCCtx() : Same as ZSTD_compress(), using an explicit ZSTD_CCtx. Important : in order to mirror ZSTD_compress() behavior, this function compresses at the requested compression level, ignoring any other advanced parameter . If any advanced parameter was set using the advanced API, they will all be reset. Only compressionLevel remains.

Implementation

int ZSTD_compressCCtx(
    ffi.Pointer<ZSTD_CCtx> cctx,
    ffi.Pointer<ffi.Void> dst,
    int dstCapacity,
    ffi.Pointer<ffi.Void> src,
    int srcSize,
    int compressionLevel,
    ) {
  return _ZSTD_compressCCtx(
    cctx,
    dst,
    dstCapacity,
    src,
    srcSize,
    compressionLevel,
  );
}