Function zstd_sys::ZSTD_DCtx_loadDictionary_byReference
source · pub unsafe extern "C" fn ZSTD_DCtx_loadDictionary_byReference(
dctx: *mut ZSTD_DCtx,
dict: *const c_void,
dictSize: usize
) -> usize
Expand description
ZSTD_DCtx_loadDictionary_byReference() :
Same as ZSTD_DCtx_loadDictionary(),
but references dict
content instead of copying it into dctx
.
This saves memory if dict
remains around.,
However, it’s imperative that dict
remains accessible (and unmodified) while being used, so it must outlive decompression.