Lines Matching refs:ddict

98 static size_t ZSTD_DDictHashSet_emplaceDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict) {  in ZSTD_DDictHashSet_emplaceDDict()  argument
99 const U32 dictID = ZSTD_getDictID_fromDDict(ddict); in ZSTD_DDictHashSet_emplaceDDict()
108 hashSet->ddictPtrTable[idx] = ddict; in ZSTD_DDictHashSet_emplaceDDict()
115 hashSet->ddictPtrTable[idx] = ddict; in ZSTD_DDictHashSet_emplaceDDict()
202 static size_t ZSTD_DDictHashSet_addDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict, ZSTD_… in ZSTD_DDictHashSet_addDDict() argument
203 …%u to hashset with - Count: %zu Tablesize: %zu", ZSTD_getDictID_fromDDict(ddict), hashSet->ddictPt… in ZSTD_DDictHashSet_addDDict()
207 FORWARD_IF_ERROR(ZSTD_DDictHashSet_emplaceDDict(hashSet, ddict), ""); in ZSTD_DDictHashSet_addDDict()
246 dctx->ddict = NULL; in ZSTD_initDCtx_internal()
302 dctx->ddict = NULL; in ZSTD_clearDict()
341 if (dctx->ddict) { in ZSTD_DCtx_selectFrameDDict()
347 dctx->ddict = frameDDict; in ZSTD_DCtx_selectFrameDDict()
877 const ZSTD_DDict* ddict) in ZSTD_decompressMultiFrame() argument
883 assert(dict==NULL || ddict==NULL); /* either dict or ddict set, not both */ in ZSTD_decompressMultiFrame()
885 if (ddict) { in ZSTD_decompressMultiFrame()
886 dict = ZSTD_DDict_dictContent(ddict); in ZSTD_decompressMultiFrame()
887 dictSize = ZSTD_DDict_dictSize(ddict); in ZSTD_decompressMultiFrame()
906 if (ddict) { in ZSTD_decompressMultiFrame()
908 FORWARD_IF_ERROR(ZSTD_decompressBegin_usingDDict(dctx, ddict), ""); in ZSTD_decompressMultiFrame()
962 return dctx->ddict; in ZSTD_getDDict()
965 return dctx->ddict; in ZSTD_getDDict()
1367 size_t ZSTD_decompressBegin_usingDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict) in ZSTD_decompressBegin_usingDDict() argument
1371 if (ddict) { in ZSTD_decompressBegin_usingDDict()
1372 const char* const dictStart = (const char*)ZSTD_DDict_dictContent(ddict); in ZSTD_decompressBegin_usingDDict()
1373 size_t const dictSize = ZSTD_DDict_dictSize(ddict); in ZSTD_decompressBegin_usingDDict()
1380 if (ddict) { /* NULL ddict is equivalent to no dictionary */ in ZSTD_decompressBegin_usingDDict()
1381 ZSTD_copyDDictParameters(dctx, ddict); in ZSTD_decompressBegin_usingDDict()
1425 const ZSTD_DDict* ddict) in ZSTD_decompress_usingDDict() argument
1430 ddict); in ZSTD_decompress_usingDDict()
1475 dctx->ddict = dctx->ddictLocal; in ZSTD_DCtx_loadDictionary_advanced()
1525 size_t ZSTD_initDStream_usingDDict(ZSTD_DStream* dctx, const ZSTD_DDict* ddict) in ZSTD_initDStream_usingDDict() argument
1528 FORWARD_IF_ERROR( ZSTD_DCtx_refDDict(dctx, ddict) , ""); in ZSTD_initDStream_usingDDict()
1542 size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict) in ZSTD_DCtx_refDDict() argument
1546 if (ddict) { in ZSTD_DCtx_refDDict()
1547 dctx->ddict = ddict; in ZSTD_DCtx_refDDict()
1557 … FORWARD_IF_ERROR(ZSTD_DDictHashSet_addDDict(dctx->ddictSet, ddict, dctx->customMem), ""); in ZSTD_DCtx_refDDict()