/Linux-v5.10/lib/lz4/ |
D | lz4_compress.c | 191 const BYTE * const lowRefLimit = ip - dictPtr->dictSize; in LZ4_compress_generic() 193 const BYTE * const dictEnd = dictionary + dictPtr->dictSize; in LZ4_compress_generic() 220 lowLimit = (const BYTE *)source - dictPtr->dictSize; in LZ4_compress_generic() 776 const char *dictionary, int dictSize) in LZ4_loadDict() argument 780 const BYTE * const dictEnd = p + dictSize; in LZ4_loadDict() 789 if (dictSize < (int)HASH_UNIT) { in LZ4_loadDict() 791 dict->dictSize = 0; in LZ4_loadDict() 800 dict->dictSize = (U32)(dictEnd - p); in LZ4_loadDict() 801 dict->currentOffset += dict->dictSize; in LZ4_loadDict() 808 return dict->dictSize; in LZ4_loadDict() [all …]
|
D | lz4_decompress.c | 80 const size_t dictSize in LZ4_decompress_generic() argument 90 const BYTE * const dictEnd = (const BYTE *)dictStart + dictSize; in LZ4_decompress_generic() 95 const int checkOffset = ((safeDecode) && (dictSize < (int)(64 * KB))); in LZ4_decompress_generic() 289 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) { in LZ4_decompress_generic() 504 const void *dictStart, size_t dictSize) in LZ4_decompress_safe_forceExtDict() argument 510 (const BYTE *)dictStart, dictSize); in LZ4_decompress_safe_forceExtDict() 515 const void *dictStart, size_t dictSize) in LZ4_decompress_fast_extDict() argument 521 (const BYTE *)dictStart, dictSize); in LZ4_decompress_fast_extDict() 533 const void *dictStart, size_t dictSize) in LZ4_decompress_safe_doubleDict() argument 539 (const BYTE *)dictStart, dictSize); in LZ4_decompress_safe_doubleDict() [all …]
|
D | lz4hc_compress.c | 627 int dictSize) in LZ4_loadDictHC() argument 631 if (dictSize > 64 * KB) { in LZ4_loadDictHC() 632 dictionary += dictSize - 64 * KB; in LZ4_loadDictHC() 633 dictSize = 64 * KB; in LZ4_loadDictHC() 636 if (dictSize >= 4) in LZ4_loadDictHC() 637 LZ4HC_Insert(ctxPtr, (const BYTE *)dictionary + (dictSize - 3)); in LZ4_loadDictHC() 638 ctxPtr->end = (const BYTE *)dictionary + dictSize; in LZ4_loadDictHC() 639 return dictSize; in LZ4_loadDictHC() 683 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->base) in LZ4_compressHC_continue_generic() local 685 if (dictSize > 64 * KB) in LZ4_compressHC_continue_generic() [all …]
|
/Linux-v5.10/include/linux/ |
D | lz4.h | 104 uint32_t dictSize; member 377 int dictSize); 466 int dictSize); 484 int LZ4_saveDict(LZ4_stream_t *streamPtr, char *safeBuffer, int dictSize); 522 const char *dictionary, int dictSize); 624 int dictSize); 646 int originalSize, const char *dictStart, int dictSize);
|
D | zstd.h | 191 unsigned long long estimatedSrcSize, size_t dictSize); 205 unsigned long long estimatedSrcSize, size_t dictSize); 326 const void *src, size_t srcSize, const void *dict, size_t dictSize, 347 const void *src, size_t srcSize, const void *dict, size_t dictSize); 383 ZSTD_CDict *ZSTD_initCDict(const void *dictBuffer, size_t dictSize, 438 ZSTD_DDict *ZSTD_initDDict(const void *dictBuffer, size_t dictSize, 875 size_t dictSize); 897 unsigned int ZSTD_getDictID_fromDict(const void *dict, size_t dictSize); 1007 size_t dictSize, int compressionLevel); 1009 size_t dictSize, ZSTD_parameters params, [all …]
|
/Linux-v5.10/lib/zstd/ |
D | decompress.c | 1643 … void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, in ZSTD_decompressMultiFrame() argument 1655 dictSize = ZSTD_DDictDictSize(ddict); in ZSTD_decompressMultiFrame() 1686 CHECK_F(ZSTD_decompressBegin_usingDict(dctx, dict, dictSize)); in ZSTD_decompressMultiFrame() 1707 … void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize) in ZSTD_decompress_usingDict() argument 1709 return ZSTD_decompressMultiFrame(dctx, dst, dstCapacity, src, srcSize, dict, dictSize, NULL); in ZSTD_decompress_usingDict() 1862 static size_t ZSTD_refDictContent(ZSTD_DCtx *dctx, const void *dict, size_t dictSize) in ZSTD_refDictContent() argument 1867 dctx->previousDstEnd = (const char *)dict + dictSize; in ZSTD_refDictContent() 1874 …ze_t ZSTD_loadEntropy(ZSTD_entropyTables_t *entropy, const void *const dict, size_t const dictSize) in ZSTD_loadEntropy() argument 1877 const BYTE *const dictEnd = dictPtr + dictSize; in ZSTD_loadEntropy() 1879 if (dictSize <= 8) in ZSTD_loadEntropy() [all …]
|
D | compress.c | 180 …rs ZSTD_adjustCParams(ZSTD_compressionParameters cPar, unsigned long long srcSize, size_t dictSize) in ZSTD_adjustCParams() argument 182 if (srcSize + dictSize == 0) in ZSTD_adjustCParams() 188 U64 const rSize = srcSize + dictSize + minSrcSize; in ZSTD_adjustCParams() 2626 static size_t ZSTD_loadZstdDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize) in ZSTD_loadZstdDictionary() argument 2629 const BYTE *const dictEnd = dictPtr + dictSize; in ZSTD_loadZstdDictionary() 2723 static size_t ZSTD_compress_insertDictionary(ZSTD_CCtx *cctx, const void *dict, size_t dictSize) in ZSTD_compress_insertDictionary() argument 2725 if ((dict == NULL) || (dictSize <= 8)) in ZSTD_compress_insertDictionary() 2730 return ZSTD_loadDictionaryContent(cctx, dict, dictSize); in ZSTD_compress_insertDictionary() 2733 return ZSTD_loadZstdDictionary(cctx, dict, dictSize); in ZSTD_compress_insertDictionary() 2738 static size_t ZSTD_compressBegin_internal(ZSTD_CCtx *cctx, const void *dict, size_t dictSize, ZSTD_… in ZSTD_compressBegin_internal() argument [all …]
|