/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | zstd_ddict.c | 41 U32 dictID; member 63 dctx->dictID = ddict->dictID; in ZSTD_copyDDictParameters() 93 ddict->dictID = 0; in ZSTD_loadEntropy_intoDDict() 109 ddict->dictID = MEM_readLE32((const char*)ddict->dictContent + ZSTD_FRAMEIDSIZE); in ZSTD_loadEntropy_intoDDict()
|
H A D | zstd_decompress.c | 219 U32 const dictID= fhd & 3; in ZSTD_frameHeaderSize_internal() local 223 + ZSTD_did_fieldSize[dictID] + ZSTD_fcs_fieldSize[fcsId] in ZSTD_frameHeaderSize_internal() 280 U32 dictID = 0; in ZSTD_getFrameHeader_advanced() local 296 case 1 : dictID = ip[pos]; pos++; break; in ZSTD_getFrameHeader_advanced() 297 case 2 : dictID = MEM_readLE16(ip+pos); pos+=2; break; in ZSTD_getFrameHeader_advanced() 298 case 3 : dictID = MEM_readLE32(ip+pos); pos+=4; break; in ZSTD_getFrameHeader_advanced() 314 zfhPtr->dictID = dictID; in ZSTD_getFrameHeader_advanced() 446 RETURN_ERROR_IF(dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID), in ZSTD_decodeFrameHeader() 1144 dctx->dictID = MEM_readLE32((const char*)dict + ZSTD_FRAMEIDSIZE); in ZSTD_decompress_insertDictionary() 1170 dctx->dictID = 0; in ZSTD_decompressBegin() [all …]
|
H A D | zstd_decompress_internal.h | 135 U32 dictID; member
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_ddict.c | 41 U32 dictID; member 63 dctx->dictID = ddict->dictID; in ZSTD_copyDDictParameters() 93 ddict->dictID = 0; in ZSTD_loadEntropy_intoDDict() 109 ddict->dictID = MEM_readLE32((const char*)ddict->dictContent + ZSTD_FRAMEIDSIZE); in ZSTD_loadEntropy_intoDDict()
|
H A D | zstd_decompress.c | 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() [all …]
|
H A D | zstd_decompress_internal.h | 162 U32 dictID; member
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress.c | 60 U32 dictID; member 1526 zc->dictID = 0; in ZSTD_resetCCtx_internal() 1670 cctx->dictID = cdict->dictID; in ZSTD_resetCCtx_byAttachingCDict() 1731 cctx->dictID = cdict->dictID; in ZSTD_resetCCtx_byCopyingCDict() 1821 dstCCtx->dictID = srcCCtx->dictID; in ZSTD_copyCCtx_internal() 2658 const ZSTD_CCtx_params* params, U64 pledgedSrcSize, U32 dictID) in ZSTD_writeFrameHeader() argument 2660 U32 const dictIDSizeCodeLength = (dictID>0) + (dictID>=256) + (dictID>=65536); /* 0-3 */ in ZSTD_writeFrameHeader() 2675 !params->fParams.noDictIDFlag, (unsigned)dictID, (unsigned)dictIDSizeCode); in ZSTD_writeFrameHeader() 2687 case 1 : op[pos] = (BYTE)(dictID); pos++; break; in ZSTD_writeFrameHeader() 2688 case 2 : MEM_writeLE16(op+pos, (U16)dictID); pos+=2; break; in ZSTD_writeFrameHeader() [all …]
|
H A D | zstd_compress_internal.h | 241 U32 dictID; member
|
/freebsd/sys/contrib/zstd/lib/dictBuilder/ |
H A D | zdict.c | 953 U32 const dictID = params.dictID ? params.dictID : compliantID; in ZDICT_finalizeDictionary() local 954 MEM_writeLE32(header+4, dictID); in ZDICT_finalizeDictionary() 1037 U32 const dictID = params.dictID ? params.dictID : compliantID; in ZDICT_addEntropyTablesFromBuffer_advanced() local 1038 MEM_writeLE32((char*)dictBuffer+4, dictID); in ZDICT_addEntropyTablesFromBuffer_advanced()
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_compress.c | 84 U32 dictID; member 1931 zc->dictID = 0; in ZSTD_resetCCtx_internal() 2092 cctx->dictID = cdict->dictID; in ZSTD_resetCCtx_byAttachingCDict() 2171 cctx->dictID = cdict->dictID; in ZSTD_resetCCtx_byCopyingCDict() 2272 dstCCtx->dictID = srcCCtx->dictID; in ZSTD_copyCCtx_internal() 4013 const ZSTD_CCtx_params* params, U64 pledgedSrcSize, U32 dictID) in ZSTD_writeFrameHeader() argument 4015 U32 const dictIDSizeCodeLength = (dictID>0) + (dictID>=256) + (dictID>=65536); /* 0-3 */ in ZSTD_writeFrameHeader() 4030 !params->fParams.noDictIDFlag, (unsigned)dictID, (unsigned)dictIDSizeCode); in ZSTD_writeFrameHeader() 4043 case 1 : op[pos] = (BYTE)(dictID); pos++; break; in ZSTD_writeFrameHeader() 4044 case 2 : MEM_writeLE16(op+pos, (U16)dictID); pos+=2; break; in ZSTD_writeFrameHeader() [all …]
|
H A D | zstd_compress_internal.h | 371 U32 dictID; member
|
/freebsd/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v07.h | 117 unsigned dictID; member
|
H A D | zstd_v07.c | 2948 U32 dictID; member 2972 dctx->dictID = 0; in ZSTDv07_decompressBegin() 3136 U32 const dictID= fhd & 3; in ZSTDv07_frameHeaderSize() local 3139 …return ZSTDv07_frameHeaderSize_min + !directMode + ZSTDv07_did_fieldSize[dictID] + ZSTDv07_fcs_fie… in ZSTDv07_frameHeaderSize() 3178 U32 dictID = 0; in ZSTDv07_getFrameParams() local 3195 case 1 : dictID = ip[pos]; pos++; break; in ZSTDv07_getFrameParams() 3196 case 2 : dictID = MEM_readLE16(ip+pos); pos+=2; break; in ZSTDv07_getFrameParams() 3197 case 3 : dictID = MEM_readLE32(ip+pos); pos+=4; break; in ZSTDv07_getFrameParams() 3212 fparamsPtr->dictID = dictID; in ZSTDv07_getFrameParams() 3241 …if (dctx->fParams.dictID && (dctx->dictID != dctx->fParams.dictID)) return ERROR(dictionary_wrong); in ZSTDv07_decodeFrameHeader() [all …]
|
/freebsd/sys/contrib/zstd/lib/ |
H A D | zdict.h | 206 unsigned dictID; /*< force dictID value; 0 means auto mode (32-bits random value) member
|
H A D | zstd.h | 2502 unsigned dictID; member
|
/freebsd/sys/contrib/zstd/programs/ |
H A D | zstdcli.c | 830 unsigned dictID = 0; in main() local 988 if (longCommandWArg(&argument, "--dictID")) { NEXT_UINT32(dictID); continue; } in main() 1325 zParams.dictID = dictID; in main() 1344 …(void)dictCLevel; (void)dictSelect; (void)dictID; (void)maxDictSize; /* not used when ZSTD_NODICT… in main()
|
H A D | README.md | 184 --no-dictID : don't write dictID into header (dictionary compression only) 205 --dictID=# : force dictionary ID to specified value (default: random)
|
H A D | zstd.1.md | 181 * `--no-dictID`: 338 * `--dictID=#`:
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/ |
H A D | zstd.h | 2017 unsigned dictID; member
|
/freebsd/sys/contrib/zstd/ |
H A D | CHANGELOG | 488 API : fix : ZSTD_initCStream_usingCDict() properly writes dictID into frame header, by Gregory Szor… 495 API : experimental : added : dictID retrieval functions, and ZSTD_initCStream_srcSize()
|
/freebsd/sys/contrib/zstd/doc/ |
H A D | zstd_compression_format.md | 1691 - 0.1.1 : reserved dictID ranges
|