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

Function ZSTD_getDDict

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

Source from the content-addressed store, hash-verified

25300
25301
25302static ZSTD_DDict const* ZSTD_getDDict(ZSTD_DCtx* dctx)
25303{
25304 switch (dctx->dictUses) {
25305 default:
25306 assert(0 /* Impossible */);
25307 /* fall-through */
25308 case ZSTD_dont_use:
25309 ZSTD_clearDict(dctx);
25310 return NULL;
25311 case ZSTD_use_indefinitely:
25312 return dctx->ddict;
25313 case ZSTD_use_once:
25314 dctx->dictUses = ZSTD_dont_use;
25315 return dctx->ddict;
25316 }
25317}
25318
25319size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize)
25320{

Callers 2

ZSTD_decompressDCtxFunction · 0.70
ZSTD_decompressStreamFunction · 0.70

Calls 1

ZSTD_clearDictFunction · 0.70

Tested by

no test coverage detected