ZSTD_DCtx_setParameter method

int ZSTD_DCtx_setParameter(
  1. Pointer<ZSTD_DCtx> dctx,
  2. int param,
  3. int value
)

! ZSTD_DCtx_setParameter() : Set one compression parameter, selected by enum ZSTD_dParameter. All parameters have valid bounds. Bounds can be queried using ZSTD_dParam_getBounds(). Providing a value beyond bound will either clamp it, or trigger an error (depending on parameter). Setting a parameter is only possible during frame initialization (before starting decompression). @return : 0, or an error code (which can be tested using ZSTD_isError()).

Implementation

int ZSTD_DCtx_setParameter(
    ffi.Pointer<ZSTD_DCtx> dctx,
    int param,
    int value,
    ) {
  return _ZSTD_DCtx_setParameter(
    dctx,
    param,
    value,
  );
}