ZSTD_initCStream method

int ZSTD_initCStream(
  1. Pointer<ZSTD_CStream> zcs,
  2. int compressionLevel
)

! Equivalent to:

ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); ZSTD_CCtx_refCDict(zcs, NULL); // clear the dictionary (if any) ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel);

Note that ZSTD_initCStream() clears any previously set dictionary. Use the new API to compress with a dictionary.

Implementation

int ZSTD_initCStream(
  ffi.Pointer<ZSTD_CStream> zcs,
  int compressionLevel,
) {
  return _ZSTD_initCStream(
    zcs,
    compressionLevel,
  );
}