Function zstd_sys::ZSTD_CCtx_loadDictionary_byReference
source · pub unsafe extern "C" fn ZSTD_CCtx_loadDictionary_byReference(
cctx: *mut ZSTD_CCtx,
dict: *const c_void,
dictSize: usize
) -> usize
Expand description
ZSTD_CCtx_loadDictionary_byReference() :
Same as ZSTD_CCtx_loadDictionary(), but dictionary content is referenced, instead of being copied into CCtx.
It saves some memory, but also requires that dict
outlives its usage within cctx