Function zstd_sys::ZSTD_initCStream_usingCDict_advanced
source · [−]pub unsafe extern "C" fn ZSTD_initCStream_usingCDict_advanced(
zcs: *mut ZSTD_CStream,
cdict: *const ZSTD_CDict,
fParams: ZSTD_frameParameters,
pledgedSrcSize: c_ulonglong
) -> usize
Expand description
ZSTD_initCStream_usingCDict_advanced() : This function is DEPRECATED, and is approximately equivalent to: ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); // Pseudocode: Set each zstd frame parameter and leave the rest as-is. for ((fParam, value) : fParams) { ZSTD_CCtx_setParameter(zcs, fParam, value); } ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize); ZSTD_CCtx_refCDict(zcs, cdict);
same as ZSTD_initCStream_usingCDict(), with control over frame parameters. pledgedSrcSize must be correct. If srcSize is not known at init time, use value ZSTD_CONTENTSIZE_UNKNOWN. This prototype will generate compilation warnings.