Lines Matching refs:ddict

97 static size_t ZSTD_DDictHashSet_emplaceDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict) {  in ZSTD_DDictHashSet_emplaceDDict()  argument
98 const U32 dictID = ZSTD_getDictID_fromDDict(ddict); in ZSTD_DDictHashSet_emplaceDDict()
107 hashSet->ddictPtrTable[idx] = ddict; in ZSTD_DDictHashSet_emplaceDDict()
114 hashSet->ddictPtrTable[idx] = ddict; in ZSTD_DDictHashSet_emplaceDDict()
201 static size_t ZSTD_DDictHashSet_addDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict, ZSTD_… in ZSTD_DDictHashSet_addDDict() argument
202 …%u to hashset with - Count: %zu Tablesize: %zu", ZSTD_getDictID_fromDDict(ddict), hashSet->ddictPt… in ZSTD_DDictHashSet_addDDict()
206 FORWARD_IF_ERROR(ZSTD_DDictHashSet_emplaceDDict(hashSet, ddict), ""); in ZSTD_DDictHashSet_addDDict()
245 dctx->ddict = NULL; in ZSTD_initDCtx_internal()
305 dctx->ddict = NULL; in ZSTD_clearDict()
344 if (dctx->ddict) { in ZSTD_DCtx_selectFrameDDict()
350 dctx->ddict = frameDDict; in ZSTD_DCtx_selectFrameDDict()
942 const ZSTD_DDict* ddict) in ZSTD_decompressMultiFrame() argument
948 assert(dict==NULL || ddict==NULL); /* either dict or ddict set, not both */ in ZSTD_decompressMultiFrame()
950 if (ddict) { in ZSTD_decompressMultiFrame()
951 dict = ZSTD_DDict_dictContent(ddict); in ZSTD_decompressMultiFrame()
952 dictSize = ZSTD_DDict_dictSize(ddict); in ZSTD_decompressMultiFrame()
971 if (ddict) { in ZSTD_decompressMultiFrame()
973 FORWARD_IF_ERROR(ZSTD_decompressBegin_usingDDict(dctx, ddict), ""); in ZSTD_decompressMultiFrame()
1027 return dctx->ddict; in ZSTD_getDDict()
1030 return dctx->ddict; in ZSTD_getDDict()
1432 size_t ZSTD_decompressBegin_usingDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict) in ZSTD_decompressBegin_usingDDict() argument
1436 if (ddict) { in ZSTD_decompressBegin_usingDDict()
1437 const char* const dictStart = (const char*)ZSTD_DDict_dictContent(ddict); in ZSTD_decompressBegin_usingDDict()
1438 size_t const dictSize = ZSTD_DDict_dictSize(ddict); in ZSTD_decompressBegin_usingDDict()
1445 if (ddict) { /* NULL ddict is equivalent to no dictionary */ in ZSTD_decompressBegin_usingDDict()
1446 ZSTD_copyDDictParameters(dctx, ddict); in ZSTD_decompressBegin_usingDDict()
1490 const ZSTD_DDict* ddict) in ZSTD_decompress_usingDDict() argument
1495 ddict); in ZSTD_decompress_usingDDict()
1540 dctx->ddict = dctx->ddictLocal; in ZSTD_DCtx_loadDictionary_advanced()
1590 size_t ZSTD_initDStream_usingDDict(ZSTD_DStream* dctx, const ZSTD_DDict* ddict) in ZSTD_initDStream_usingDDict() argument
1593 FORWARD_IF_ERROR( ZSTD_DCtx_refDDict(dctx, ddict) , ""); in ZSTD_initDStream_usingDDict()
1607 size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict) in ZSTD_DCtx_refDDict() argument
1611 if (ddict) { in ZSTD_DCtx_refDDict()
1612 dctx->ddict = ddict; in ZSTD_DCtx_refDDict()
1622 … FORWARD_IF_ERROR(ZSTD_DDictHashSet_addDDict(dctx->ddictSet, ddict, dctx->customMem), ""); in ZSTD_DCtx_refDDict()