Lines Matching refs:dictID
87 static size_t ZSTD_DDictHashSet_getIndex(const ZSTD_DDictHashSet* hashSet, U32 dictID) {
88 const U64 hash = xxh64(&dictID, sizeof(U32), 0);
94 * If inserting a DDict with a dictID that already exists in the set, replaces the one in the set.
98 const U32 dictID = ZSTD_getDictID_fromDDict(ddict);
99 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID);
102 DEBUGLOG(4, "Hashed index: for dictID: %u is %zu", dictID, idx);
104 /* Replace existing ddict if inserting ddict with same dictID */
105 if (ZSTD_getDictID_fromDDict(hashSet->ddictPtrTable[idx]) == dictID) {
113 DEBUGLOG(4, "Final idx after probing for dictID %u is: %zu", dictID, idx);
145 /* Fetches a DDict with the given dictID
146 * Returns the ZSTD_DDict* with the requested dictID. If it doesn't exist, then returns NULL.
148 static const ZSTD_DDict* ZSTD_DDictHashSet_getDDict(ZSTD_DDictHashSet* hashSet, U32 dictID) {
149 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID);
151 DEBUGLOG(4, "Hashed index: for dictID: %u is %zu", dictID, idx);
154 if (currDictID == dictID || currDictID == 0) {
162 DEBUGLOG(4, "Final idx after probing for dictID %u is: %zu", dictID, idx);
345 const ZSTD_DDict* frameDDict = ZSTD_DDictHashSet_getDDict(dctx->ddictSet, dctx->fParams.dictID);
349 dctx->dictID = dctx->fParams.dictID;
400 U32 const dictID= fhd & 3;
404 + ZSTD_did_fieldSize[dictID] + ZSTD_fcs_fieldSize[fcsId]
461 U32 dictID = 0;
479 case 1 : dictID = ip[pos]; pos++; break;
480 case 2 : dictID = MEM_readLE16(ip+pos); pos+=2; break;
481 case 3 : dictID = MEM_readLE32(ip+pos); pos+=4; break;
499 zfhPtr->dictID = dictID;
659 /* Skip the dictID check in fuzzing mode, because it makes the search
662 RETURN_ERROR_IF(dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID),
1295 dictPtr += 8; /* skip header = magic + dictID */
1381 dctx->dictID = MEM_readLE32((const char*)dict + ZSTD_FRAMEIDSIZE);
1408 dctx->dictID = 0;
1452 * Provides the dictID stored within dictionary.
1463 * Provides the dictID required to decompress frame stored within `src`.
1464 * If @return == 0, the dictID could not be decoded.
1467 * - The frame was built with dictID intentionally removed.
1480 return zfp.dictID;