/linux-6.6.21/lib/zstd/decompress/ |
D | zstd_ddict.c | 36 size_t dictSize; member 52 return ddict->dictSize; in ZSTD_DDict_dictSize() 63 dctx->dictEnd = (const BYTE*)ddict->dictContent + ddict->dictSize; in ZSTD_copyDDictParameters() 94 if (ddict->dictSize < 8) { in ZSTD_loadEntropy_intoDDict() 110 &ddict->entropy, ddict->dictContent, ddict->dictSize)), in ZSTD_loadEntropy_intoDDict() 118 const void* dict, size_t dictSize, in ZSTD_initDDict_internal() argument 122 if ((dictLoadMethod == ZSTD_dlm_byRef) || (!dict) || (!dictSize)) { in ZSTD_initDDict_internal() 125 if (!dict) dictSize = 0; in ZSTD_initDDict_internal() 127 void* const internalBuffer = ZSTD_customMalloc(dictSize, ddict->cMem); in ZSTD_initDDict_internal() 131 ZSTD_memcpy(internalBuffer, dict, dictSize); in ZSTD_initDDict_internal() [all …]
|
D | zstd_decompress.c | 941 const void* dict, size_t dictSize, in ZSTD_decompressMultiFrame() argument 952 dictSize = ZSTD_DDict_dictSize(ddict); in ZSTD_decompressMultiFrame() 977 FORWARD_IF_ERROR(ZSTD_decompressBegin_usingDict(dctx, dict, dictSize), ""); in ZSTD_decompressMultiFrame() 1011 const void* dict, size_t dictSize) in ZSTD_decompress_usingDict() argument 1013 return ZSTD_decompressMultiFrame(dctx, dst, dstCapacity, src, srcSize, dict, dictSize, NULL); in ZSTD_decompress_usingDict() 1270 static size_t ZSTD_refDictContent(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) in ZSTD_refDictContent() argument 1275 dctx->previousDstEnd = (const char*)dict + dictSize; in ZSTD_refDictContent() 1288 const void* const dict, size_t const dictSize) in ZSTD_loadDEntropy() argument 1291 const BYTE* const dictEnd = dictPtr + dictSize; in ZSTD_loadDEntropy() 1293 RETURN_ERROR_IF(dictSize <= 8, dictionary_corrupted, "dict is too small"); in ZSTD_loadDEntropy() [all …]
|
D | zstd_decompress_internal.h | 218 const void* const dict, size_t const dictSize);
|
D | zstd_decompress_block.c | 1303 …size_t const dictSize = (size_t)((char const*)dctx->dictContentEndForFuzzing - (char const*)dctx->… local 1306 assert(seq.offset <= windowSize + dictSize);
|
/linux-6.6.21/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() 297 if ((checkOffset) && (unlikely(match + dictSize < lowPrefix))) { in LZ4_decompress_generic() 512 const void *dictStart, size_t dictSize) in LZ4_decompress_safe_forceExtDict() argument 518 (const BYTE *)dictStart, dictSize); in LZ4_decompress_safe_forceExtDict() 523 const void *dictStart, size_t dictSize) in LZ4_decompress_fast_extDict() argument 529 (const BYTE *)dictStart, dictSize); in LZ4_decompress_fast_extDict() 541 const void *dictStart, size_t dictSize) in LZ4_decompress_safe_doubleDict() argument 547 (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-6.6.21/include/linux/ |
D | zstd_lib.h | 817 const void* dict,size_t dictSize, 829 const void* dict,size_t dictSize); 849 ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, 873 ZSTDLIB_API ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); 897 ZSTDLIB_API unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); 951 ZSTDLIB_API size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); 1003 ZSTDLIB_API size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); 1516 ZSTDLIB_STATIC_API size_t ZSTD_estimateCDictSize(size_t dictSize, int compressionLevel); 1517 ZSTDLIB_STATIC_API size_t ZSTD_estimateCDictSize_advanced(size_t dictSize, ZSTD_compressionParamete… 1518 ZSTDLIB_STATIC_API size_t ZSTD_estimateDDictSize(size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMet… [all …]
|
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);
|
/linux-6.6.21/lib/zstd/compress/ |
D | zstd_compress.c | 156 size_t const bufferSize = dict.dictBuffer != NULL ? dict.dictSize : 0; in ZSTD_sizeof_localDict() 1020 size_t const dictSize); 1038 assert(dl->dictSize == 0); in ZSTD_initLocalDict() 1046 assert(dl->dictSize > 0); in ZSTD_initLocalDict() 1052 dl->dictSize, in ZSTD_initLocalDict() 1063 ZSTD_CCtx* cctx, const void* dict, size_t dictSize, in ZSTD_CCtx_loadDictionary_advanced() argument 1068 DEBUGLOG(4, "ZSTD_CCtx_loadDictionary_advanced (size: %u)", (U32)dictSize); in ZSTD_CCtx_loadDictionary_advanced() 1070 if (dict == NULL || dictSize == 0) /* no dictionary mode */ in ZSTD_CCtx_loadDictionary_advanced() 1078 dictBuffer = ZSTD_customMalloc(dictSize, cctx->customMem); in ZSTD_CCtx_loadDictionary_advanced() 1080 ZSTD_memcpy(dictBuffer, dict, dictSize); in ZSTD_CCtx_loadDictionary_advanced() [all …]
|
D | zstd_compress_internal.h | 47 size_t dictSize; member 54 size_t dictSize; member 1318 const void* const dict, size_t dictSize); 1333 … const ZSTD_CCtx_params* CCtxParams, U64 srcSizeHint, size_t dictSize, ZSTD_cParamMode_e mode); 1341 const void* dict, size_t dictSize, 1354 const void* dict, size_t dictSize, 1366 const void* dict,size_t dictSize,
|