Lines Matching refs:dictID

93 static size_t ZSTD_DDictHashSet_getIndex(const ZSTD_DDictHashSet* hashSet, U32 dictID) {  in ZSTD_DDictHashSet_getIndex()  argument
94 const U64 hash = XXH64(&dictID, sizeof(U32), 0); in ZSTD_DDictHashSet_getIndex()
104 const U32 dictID = ZSTD_getDictID_fromDDict(ddict); in ZSTD_DDictHashSet_emplaceDDict() local
105 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID); in ZSTD_DDictHashSet_emplaceDDict()
108 DEBUGLOG(4, "Hashed index: for dictID: %u is %zu", dictID, idx); in ZSTD_DDictHashSet_emplaceDDict()
111 if (ZSTD_getDictID_fromDDict(hashSet->ddictPtrTable[idx]) == dictID) { in ZSTD_DDictHashSet_emplaceDDict()
119 DEBUGLOG(4, "Final idx after probing for dictID %u is: %zu", dictID, idx); in ZSTD_DDictHashSet_emplaceDDict()
154 static const ZSTD_DDict* ZSTD_DDictHashSet_getDDict(ZSTD_DDictHashSet* hashSet, U32 dictID) { in ZSTD_DDictHashSet_getDDict() argument
155 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID); in ZSTD_DDictHashSet_getDDict()
157 DEBUGLOG(4, "Hashed index: for dictID: %u is %zu", dictID, idx); in ZSTD_DDictHashSet_getDDict()
160 if (currDictID == dictID || currDictID == 0) { in ZSTD_DDictHashSet_getDDict()
168 DEBUGLOG(4, "Final idx after probing for dictID %u is: %zu", dictID, idx); in ZSTD_DDictHashSet_getDDict()
359 … const ZSTD_DDict* frameDDict = ZSTD_DDictHashSet_getDDict(dctx->ddictSet, dctx->fParams.dictID); in ZSTD_DCtx_selectFrameDDict()
363 dctx->dictID = dctx->fParams.dictID; in ZSTD_DCtx_selectFrameDDict()
417 U32 const dictID= fhd & 3; in ZSTD_frameHeaderSize_internal() local
421 + ZSTD_did_fieldSize[dictID] + ZSTD_fcs_fieldSize[fcsId] in ZSTD_frameHeaderSize_internal()
478 U32 dictID = 0; in ZSTD_getFrameHeader_advanced() local
496 case 1 : dictID = ip[pos]; pos++; break; in ZSTD_getFrameHeader_advanced()
497 case 2 : dictID = MEM_readLE16(ip+pos); pos+=2; break; in ZSTD_getFrameHeader_advanced()
498 case 3 : dictID = MEM_readLE32(ip+pos); pos+=4; break; in ZSTD_getFrameHeader_advanced()
516 zfhPtr->dictID = dictID; in ZSTD_getFrameHeader_advanced()
685 RETURN_ERROR_IF(dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID), in ZSTD_decodeFrameHeader()
1428 dctx->dictID = MEM_readLE32((const char*)dict + ZSTD_FRAMEIDSIZE); in ZSTD_decompress_insertDictionary()
1458 dctx->dictID = 0; in ZSTD_decompressBegin()
1530 return zfp.dictID; in ZSTD_getDictID_fromFrame()