Lines Matching refs:ZSTD_DDict
69 #include "zstd_ddict.h" /* ZSTD_DDictDictContent */
105 static size_t ZSTD_DDictHashSet_emplaceDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict) {
133 const ZSTD_DDict** newTable = (const ZSTD_DDict**)ZSTD_customCalloc(sizeof(ZSTD_DDict*) * newTableSize, customMem);
134 const ZSTD_DDict** oldTable = hashSet->ddictPtrTable;
154 * Returns the ZSTD_DDict* with the requested dictID. If it doesn't exist, then returns NULL.
156 static const ZSTD_DDict* ZSTD_DDictHashSet_getDDict(ZSTD_DDictHashSet* hashSet, U32 dictID) {
175 * The hash set's ZSTD_DDict* table has all values automatically set to NULL to begin with.
183 ret->ddictPtrTable = (const ZSTD_DDict**)ZSTD_customCalloc(DDICT_HASHSET_TABLE_BASE_SIZE * sizeof(ZSTD_DDict*), customMem);
193 /* Frees the table of ZSTD_DDict* within a hashset, then frees the hashset itself.
194 * Note: The ZSTD_DDict* within the table are NOT freed.
209 static size_t ZSTD_DDictHashSet_addDDict(ZSTD_DDictHashSet* hashSet, const ZSTD_DDict* ddict, ZSTD_customMem customMem) {
352 /* Given a dctx with a digested frame params, re-selects the correct ZSTD_DDict based on
353 * the requested dict ID from the frame. If there exists a reference to the correct ZSTD_DDict, then
364 const ZSTD_DDict* frameDDict = ZSTD_DDictHashSet_getDDict(dctx->ddictSet, dctx->fParams.dictID);
1074 const ZSTD_DDict* ddict)
1180 static ZSTD_DDict const* ZSTD_getDDict(ZSTD_DCtx* dctx)
1599 /* ====== ZSTD_DDict ====== */
1601 size_t ZSTD_decompressBegin_usingDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict)
1659 const ZSTD_DDict* ddict)
1761 size_t ZSTD_initDStream_usingDDict(ZSTD_DStream* dctx, const ZSTD_DDict* ddict)
1780 size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict)
2146 ZSTD_DDict const* const ddict = ZSTD_getDDict(zds);