Function zstd_sys::ZSTD_initCStream_advanced
source · pub unsafe extern "C" fn ZSTD_initCStream_advanced(
zcs: *mut ZSTD_CStream,
dict: *const c_void,
dictSize: usize,
params: ZSTD_parameters,
pledgedSrcSize: c_ulonglong
) -> usize
Expand description
ZSTD_initCStream_advanced() : This function is DEPRECATED, and is equivalent to: ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); ZSTD_CCtx_setParams(zcs, params); ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize); ZSTD_CCtx_loadDictionary(zcs, dict, dictSize);
dict is loaded with ZSTD_dct_auto and ZSTD_dlm_byCopy. pledgedSrcSize must be correct. If srcSize is not known at init time, use value ZSTD_CONTENTSIZE_UNKNOWN. This prototype will generate compilation warnings.