Function zstd_sys::ZSTD_createCCtxParams [] [src]

pub unsafe extern "C" fn ZSTD_createCCtxParams() -> *mut ZSTD_CCtx_params

ZSTD_CCtx_params : Quick howto : - ZSTD_createCCtxParams() : Create a ZSTD_CCtx_params structure - ZSTD_CCtxParam_setParameter() : Push parameters one by one into an existing ZSTD_CCtx_params structure. This is similar to ZSTD_CCtx_setParameter(). - ZSTD_CCtx_setParametersUsingCCtxParams() : Apply parameters to an existing CCtx. These parameters will be applied to all subsequent compression jobs. - ZSTD_compress_generic() : Do compression using the CCtx. - ZSTD_freeCCtxParams() : Free the memory.

This can be used with ZSTD_estimateCCtxSize_advanced_usingCCtxParams() for static allocation for single-threaded compression.