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

Function ZSTD_createCDict

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

Source from the content-addressed store, hash-verified

16529}
16530
16531ZSTD_CDict* ZSTD_createCDict(const void* dict, size_t dictSize, int compressionLevel)
16532{
16533 ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(compressionLevel, ZSTD_CONTENTSIZE_UNKNOWN, dictSize);
16534 ZSTD_CDict* cdict = ZSTD_createCDict_advanced(dict, dictSize,
16535 ZSTD_dlm_byCopy, ZSTD_dct_auto,
16536 cParams, ZSTD_defaultCMem);
16537 if (cdict)
16538 cdict->compressionLevel = compressionLevel == 0 ? ZSTD_CLEVEL_DEFAULT : compressionLevel;
16539 return cdict;
16540}
16541
16542ZSTD_CDict* ZSTD_createCDict_byReference(const void* dict, size_t dictSize, int compressionLevel)
16543{

Callers

nothing calls this directly

Calls 2

ZSTD_getCParams_internalFunction · 0.70

Tested by

no test coverage detected