MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ZSTD_initCCtx

Function ZSTD_initCCtx

freebsd/contrib/openzfs/module/zstd/lib/zstd.c:13153–13163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13151}
13152
13153static void ZSTD_initCCtx(ZSTD_CCtx* cctx, ZSTD_customMem memManager)
13154{
13155 assert(cctx != NULL);
13156 memset(cctx, 0, sizeof(*cctx));
13157 cctx->customMem = memManager;
13158 cctx->bmi2 = ZSTD_cpuid_bmi2(ZSTD_cpuid());
13159 { size_t const err = ZSTD_CCtx_reset(cctx, ZSTD_reset_parameters);
13160 assert(!ZSTD_isError(err));
13161 (void)err;
13162 }
13163}
13164
13165ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
13166{

Callers 2

ZSTD_createCCtx_advancedFunction · 0.70
ZSTD_compressFunction · 0.70

Calls 3

memsetFunction · 0.85
ZSTD_CCtx_resetFunction · 0.70
ZSTD_isErrorFunction · 0.70

Tested by

no test coverage detected