Skip to main content

ZSTD_DCtx_reset

Function ZSTD_DCtx_reset 

Source
pub unsafe extern "C" fn ZSTD_DCtx_reset(
    dctx: *mut ZSTD_DCtx,
    reset: ZSTD_ResetDirective,
) -> usize
Expand description

ZSTD_DCtx_reset() : Return a DCtx to clean state. Session and parameters can be reset jointly or separately. ZSTD_reset_parameters can only be used when no frame is being decompressed; otherwise it returns ZSTD_error_stage_wrong without resetting the parameters. ZSTD_reset_session_and_parameters also abandons any active frame. A successful parameter reset discards any referenced prefix or dictionary. See ZSTD_DCtx_refPrefix() for the effect of a session-only reset on a prefix. @return : 0, or an error code, which can be tested with ZSTD_isError()