Lines Matching refs:dictID

90 static size_t ZSTD_DDictHashSet_getIndex(const ZSTD_DDictHashSet* hashSet, U32 dictID) {  in ZSTD_DDictHashSet_getIndex()  argument
91 const U64 hash = xxh64(&dictID, sizeof(U32), 0); in ZSTD_DDictHashSet_getIndex()
101 const U32 dictID = ZSTD_getDictID_fromDDict(ddict); in ZSTD_DDictHashSet_emplaceDDict() local
102 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID); in ZSTD_DDictHashSet_emplaceDDict()
105 DEBUGLOG(4, "Hashed index: for dictID: %u is %zu", dictID, idx); in ZSTD_DDictHashSet_emplaceDDict()
108 if (ZSTD_getDictID_fromDDict(hashSet->ddictPtrTable[idx]) == dictID) { in ZSTD_DDictHashSet_emplaceDDict()
116 DEBUGLOG(4, "Final idx after probing for dictID %u is: %zu", dictID, idx); in ZSTD_DDictHashSet_emplaceDDict()
151 static const ZSTD_DDict* ZSTD_DDictHashSet_getDDict(ZSTD_DDictHashSet* hashSet, U32 dictID) { in ZSTD_DDictHashSet_getDDict() argument
152 size_t idx = ZSTD_DDictHashSet_getIndex(hashSet, dictID); in ZSTD_DDictHashSet_getDDict()
154 DEBUGLOG(4, "Hashed index: for dictID: %u is %zu", dictID, idx); in ZSTD_DDictHashSet_getDDict()
157 if (currDictID == dictID || currDictID == 0) { in ZSTD_DDictHashSet_getDDict()
165 DEBUGLOG(4, "Final idx after probing for dictID %u is: %zu", dictID, idx); in ZSTD_DDictHashSet_getDDict()
351 … const ZSTD_DDict* frameDDict = ZSTD_DDictHashSet_getDDict(dctx->ddictSet, dctx->fParams.dictID); in ZSTD_DCtx_selectFrameDDict()
355 dctx->dictID = dctx->fParams.dictID; in ZSTD_DCtx_selectFrameDDict()
406 U32 const dictID= fhd & 3; in ZSTD_frameHeaderSize_internal() local
410 + ZSTD_did_fieldSize[dictID] + ZSTD_fcs_fieldSize[fcsId] in ZSTD_frameHeaderSize_internal()
472 zfhPtr->dictID = MEM_readLE32(src) - ZSTD_MAGIC_SKIPPABLE_START; in ZSTD_getFrameHeader_advanced()
493 U32 dictID = 0; in ZSTD_getFrameHeader_advanced() local
511 case 1 : dictID = ip[pos]; pos++; break; in ZSTD_getFrameHeader_advanced()
512 case 2 : dictID = MEM_readLE16(ip+pos); pos+=2; break; in ZSTD_getFrameHeader_advanced()
513 case 3 : dictID = MEM_readLE32(ip+pos); pos+=4; break; in ZSTD_getFrameHeader_advanced()
531 zfhPtr->dictID = dictID; in ZSTD_getFrameHeader_advanced()
695 RETURN_ERROR_IF(dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID), in ZSTD_decodeFrameHeader()
1472 dctx->dictID = MEM_readLE32((const char*)dict + ZSTD_FRAMEIDSIZE); in ZSTD_decompress_insertDictionary()
1499 dctx->dictID = 0; in ZSTD_decompressBegin()
1572 return zfp.dictID; in ZSTD_getDictID_fromFrame()