Function zstd_sys::ZSTD_CCtx_setParameter[][src]

pub unsafe extern "C" fn ZSTD_CCtx_setParameter(
    cctx: *mut ZSTD_CCtx,
    param: ZSTD_cParameter,
    value: c_uint
) -> usize

ZSTD_CCtx_setParameter() : Set one compression parameter, selected by enum ZSTD_cParameter. Setting a parameter is generally only possible during frame initialization (before starting compression). Exception : when using multi-threading mode (nbThreads >= 1), following parameters can be updated during compression (within same frame): => compressionLevel, hashLog, chainLog, searchLog, minMatch, targetLength and strategy. new parameters will be active on next job, or after a flush(). Note : when value type is not unsigned (int, or enum), cast it to unsigned for proper type checking. @result : informational value (typically, value being set, correctly clamped), or an error code (which can be tested with ZSTD_isError()).