Home
last modified time | relevance | path

Searched refs:dictSize (Results 1 – 25 of 35) sorted by relevance

12

/third_party/lz4/lib/
Dlz4.c745 const void* dictStart, size_t dictSize);
748 const void* dictStart, size_t dictSize);
901 cctx->dictSize = 0; in LZ4_prepareTable()
933 const U32 dictSize = in LZ4_compress_generic_validated() local
934 dictDirective == usingDictCtx ? dictCtx->dictSize : cctx->dictSize; in LZ4_compress_generic_validated()
938 U32 const prefixIdxLimit = startIndex - dictSize; /* used when dictDirective == dictSmall */ in LZ4_compress_generic_validated()
939 const BYTE* const dictEnd = dictionary ? dictionary + dictSize : dictionary; in LZ4_compress_generic_validated()
949 dictionary + dictSize - dictCtx->currentOffset : in LZ4_compress_generic_validated()
950 dictionary + dictSize - startIndex; in LZ4_compress_generic_validated()
967 lowLimit = (const BYTE*)source - (dictDirective == withPrefix64k ? dictSize : 0); in LZ4_compress_generic_validated()
[all …]
Dlz4frame.c530 LZ4F_createCDict_advanced(LZ4F_CustomMem cmem, const void* dictBuffer, size_t dictSize) in LZ4F_createCDict_advanced() argument
537 if (dictSize > 64 KB) { in LZ4F_createCDict_advanced()
538 dictStart += dictSize - 64 KB; in LZ4F_createCDict_advanced()
539 dictSize = 64 KB; in LZ4F_createCDict_advanced()
541 cdict->dictContent = LZ4F_malloc(dictSize, cmem); in LZ4F_createCDict_advanced()
552 memcpy(cdict->dictContent, dictStart, dictSize); in LZ4F_createCDict_advanced()
553 LZ4_loadDict (cdict->fastCtx, (const char*)cdict->dictContent, (int)dictSize); in LZ4F_createCDict_advanced()
555 LZ4_loadDictHC(cdict->HCCtx, (const char*)cdict->dictContent, (int)dictSize); in LZ4F_createCDict_advanced()
565 LZ4F_CDict* LZ4F_createCDict(const void* dictBuffer, size_t dictSize) in LZ4F_createCDict() argument
568 return LZ4F_createCDict_advanced(LZ4F_defaultCMem, dictBuffer, dictSize); in LZ4F_createCDict()
[all …]
Dlz4hc.c1067 const char* dictionary, int dictSize) in LZ4_loadDictHC() argument
1070 …DEBUGLOG(4, "LZ4_loadDictHC(ctx:%p, dict:%p, dictSize:%d)", LZ4_streamHCPtr, dictionary, dictSize); in LZ4_loadDictHC()
1072 if (dictSize > 64 KB) { in LZ4_loadDictHC()
1073 dictionary += (size_t)dictSize - 64 KB; in LZ4_loadDictHC()
1074 dictSize = 64 KB; in LZ4_loadDictHC()
1082 ctxPtr->end = (const BYTE*)dictionary + dictSize; in LZ4_loadDictHC()
1083 if (dictSize >= 4) LZ4HC_Insert (ctxPtr, ctxPtr->end-3); in LZ4_loadDictHC()
1084 return dictSize; in LZ4_loadDictHC()
1126 size_t dictSize = (size_t)(ctxPtr->end - ctxPtr->prefixStart); in LZ4_compressHC_continue_generic() local
1127 if (dictSize > 64 KB) dictSize = 64 KB; in LZ4_compressHC_continue_generic()
[all …]
Dlz4.h369 LZ4LIB_API int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize);
430 …t LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize);
488 const char* dictStart, int dictSize);
494 const char* dictStart, int dictSize);
684 LZ4_u32 dictSize; member
826 …fast_usingDict (const char* src, char* dst, int originalSize, const char* dictStart, int dictSize);
Dlz4frame.h615 LZ4FLIB_STATIC_API LZ4F_CDict* LZ4F_createCDict(const void* dictBuffer, size_t dictSize);
659 const void* dict, size_t dictSize,
685 …Dict* LZ4F_createCDict_advanced(LZ4F_CustomMem customMem, const void* dictBuffer, size_t dictSize);
/third_party/lz4/programs/
Dbench.c155 int dictSize; member
189 LZ4_loadDict(pThis->LZ4_dictStream, pThis->dictBuf, pThis->dictSize); in LZ4_compressInitStream()
199 LZ4_loadDictHC(pThis->LZ4_dictStreamHC, pThis->dictBuf, pThis->dictSize); in LZ4_compressInitStreamHC()
279 const char* dictBuf, int dictSize) in LZ4_buildCompressionParameters() argument
283 pParams->dictSize = dictSize; in LZ4_buildCompressionParameters()
285 if (dictSize) { in LZ4_buildCompressionParameters()
313 const char* dictStart, int dictSize);
320 const char* dictStart, int dictSize) in LZ4F_decompress_binding() argument
336 (void)dictStart; (void)dictSize; /* not compatible with dictionary yet */ in LZ4F_decompress_binding()
359 const char* dictBuf, int dictSize) in BMK_benchMem() argument
[all …]
/third_party/lz4/ossfuzz/
Ddecompress_frame_fuzzer.c20 const void* dict, size_t dictSize, in decompress() argument
24 if (dictSize == 0) in decompress()
28 dict, dictSize, opts); in decompress()
41 size_t const dictSize = FUZZ_getRange_from_uint32( in LLVMFuzzerTestOneInput() local
45 char* const dict = (char*)malloc(dictSize); in LLVMFuzzerTestOneInput()
55 memset(dict, 0, dictSize); in LLVMFuzzerTestOneInput()
65 decompress(dctx, dst, dstCapacity, data, size, dict, dictSize, &opts); in LLVMFuzzerTestOneInput()
67 decompress(dctx, dst, dstCapacity, data, size, dict, dictSize, &opts); in LLVMFuzzerTestOneInput()
Dround_trip_stream_fuzzer.c129 size_t const dictSize = FUZZ_rand32(&state->seed, 0, maxDictSize); in state_trimDict() local
130 DEBUGLOG(2, "dictSize = %zu", dictSize); in state_trimDict()
133 memcpy(state->roundTrip.buf, state->data.buf, dictSize); in state_trimDict()
134 state->data.pos += dictSize; in state_trimDict()
135 state->roundTrip.pos += dictSize; in state_trimDict()
136 return dictSize; in state_trimDict()
191 size_t const dictSize = state_trimDict(state); in state_loadDictRoundTrip() local
192 LZ4_loadDict(state->cstream, dict, dictSize); in state_loadDictRoundTrip()
193 LZ4_setStreamDecode(state->dstream, dict, dictSize); in state_loadDictRoundTrip()
200 size_t const dictSize = state_trimDict(state); in state_attachDictRoundTrip() local
[all …]
Ddecompress_fuzzer.c24 size_t const dictSize = MAX(smallDictSize, largeDictSize); in LLVMFuzzerTestOneInput() local
26 char* const dict = (char*)malloc(dictSize + size); in LLVMFuzzerTestOneInput()
28 char* const dataAfterDict = dict + dictSize; in LLVMFuzzerTestOneInput()
35 memset(dict, 0, dictSize); in LLVMFuzzerTestOneInput()
/third_party/lz4/tests/
Dfuzzer.c380 int const dictSize = MIN(dictSizeRand, blockStart - 1); in FUZ_test() local
383 const char* dict = block - dictSize; in FUZ_test()
661 …singDict(compressedBuffer, decodedBuffer, inCSize, targetSize, blockSize, decodedBuffer, dictSize); in FUZ_test()
674 …partial_usingDict(compressedBuffer, decodedBuffer, inCSize, targetSize, blockSize, dict, dictSize); in FUZ_test()
733 FUZ_DISPLAYTEST("test LZ4_compress_fast_continue() with dictionary of size %i", dictSize); in FUZ_test()
736 …LZ4_compress_fast_continue (&LZ4_stream, dict, compressedBuffer, dictSize, (int)compressedBufferSi… in FUZ_test()
743 memcpy(decodedBuffer, dict, dictSize); in FUZ_test()
744 …mpress_fast_usingDict(compressedBuffer, decodedBuffer+dictSize, blockSize, decodedBuffer, dictSize in FUZ_test()
746 { U32 const crcCheck = XXH32(decodedBuffer+dictSize, (size_t)blockSize, 0); in FUZ_test()
749 … EXIT_MSG("LZ4_decompress_fast_usingDict corrupted decoded data (dict %i)", dictSize); in FUZ_test()
[all …]
Dframetest.c588 { size_t const dictSize = 7 KB; /* small enough for LZ4_MEMORY_USAGE == 10 */ in basicTests() local
592 LZ4F_CDict* const cdict = LZ4F_createCDict(CNBuffer, dictSize); in basicTests()
597 { LZ4F_CDict* const cda = LZ4F_createCDict_advanced(lz4f_cmem_test, CNBuffer, dictSize); in basicTests()
633 CNBuffer, dictSize, in basicTests()
650 CNBuffer, dictSize, in basicTests()
662 CNBuffer, dictSize, in basicTests()
669 size_t const inSize = dictSize * 3; in basicTests()
690 CNBuffer, dictSize, in basicTests()
705 size_t const inSize = dictSize * 3; in basicTests()
726 CNBuffer, dictSize, in basicTests()
/third_party/lz4/examples/
DdictionaryRandomAccess.c56 void test_compress(FILE* outFp, FILE* inpFp, void *dict, int dictSize) in test_compress() argument
81 LZ4_loadDict(lz4Stream, (const char*) dict, dictSize); in test_compress()
105 void test_decompress(FILE* outFp, FILE* inpFp, void *dict, int dictSize, int offset, int length) in test_decompress() argument
156 LZ4_setStreamDecode(lz4StreamDecode, (const char*) dict, dictSize); in test_decompress()
207 int dictSize; in main() local
231 dictSize = (int)read_bin(dictFp, dict, DICTIONARY_BYTES); in main()
241 test_compress(outFp, inpFp, dict, dictSize); in main()
/third_party/lzma/CPP/7zip/Compress/
DLzma2Decoder.cpp61 static UInt64 Get_ExpectedBlockSize_From_Dict(UInt32 dictSize) in Get_ExpectedBlockSize_From_Dict() argument
65 UInt64 blockSize = (UInt64)dictSize << 2; in Get_ExpectedBlockSize_From_Dict()
68 if (blockSize < dictSize) blockSize = dictSize; in Get_ExpectedBlockSize_From_Dict()
113 const UInt32 dictSize = LZMA2_DIC_SIZE_FROM_PROP_FULL(_prop); in Z7_COM7F_IMF() local
114 const UInt64 expectedBlockSize64 = Get_ExpectedBlockSize_From_Dict(dictSize); in Z7_COM7F_IMF()
DLzmaEncoder.cpp138 ep.dictSize = dict; in SetLzmaProp()
151 ep.dictSize = (v == 32) ? (UInt32)(Int32)-1 : (UInt32)1 << (unsigned)v; in SetLzmaProp()
157 SET_PROP_32U(kDictionarySize, dictSize) in SetLzmaProp()
/third_party/lzma/CPP/7zip/Bundles/LzmaSpec/
DLzmaSpec.cpp78 void Create(UInt32 dictSize) in Create() argument
80 Buf = new Byte[dictSize]; in Create()
82 Size = dictSize; in Create()
325 UInt32 dictSize; member in CLzmaDecoder
340 dictSize = dictSizeInProperties; in DecodeProperties()
341 if (dictSize < LZMA_DIC_MIN) in DecodeProperties()
342 dictSize = LZMA_DIC_MIN; in DecodeProperties()
350 OutWindow.Create(dictSize); in Create()
550 if (rep0 >= dictSize || !OutWindow.CheckDistance(rep0)) in Decode()
638 printf("\nDictionary Size for decoding = %u", lzmaDecoder.dictSize); in main2()
/third_party/lzma/C/
DLzmaLib.c14 unsigned dictSize, /* use (1 << N) or (3 << N). 4 KB < dictSize <= 128 MB */ in LzmaCompress() argument
25 props.dictSize = dictSize; in LzmaCompress()
DLzma86Enc.c15 int level, UInt32 dictSize, int filterMode) in Lzma86_Encode() argument
24 props.dictSize = dictSize; in Lzma86_Encode()
DLzmaEnc.c60 p->dictSize = p->mc = 0; in LzmaEncProps_Init()
74 if (p->dictSize == 0) in LzmaEncProps_Normalize()
75 p->dictSize = in LzmaEncProps_Normalize()
81 if (p->dictSize > p->reduceSize) in LzmaEncProps_Normalize()
87 if (p->dictSize > v) in LzmaEncProps_Normalize()
88 p->dictSize = v; in LzmaEncProps_Normalize()
114 return props.dictSize; in LzmaEncProps_GetDictSize()
427 UInt32 dictSize; member
545 if (props.dictSize > kLzmaMaxHistorySize) in LzmaEnc_SetProps()
546 props.dictSize = kLzmaMaxHistorySize; in LzmaEnc_SetProps()
[all …]
DLzma2Enc.c316 const UInt32 dictSize = p->lzmaProps.dictSize; in Lzma2EncProps_Normalize() local
317 UInt64 blockSize = (UInt64)dictSize << 2; in Lzma2EncProps_Normalize()
320 if (blockSize < dictSize) blockSize = dictSize; in Lzma2EncProps_Normalize()
DLzmaLib.h106 unsigned dictSize, /* default = (1 << 24) */
DLzma86.h72 int level, UInt32 dictSize, int filterMode);
DLzmaDec.c1316 UInt32 dictSize = propNew.dicSize; in LzmaDec_Allocate() local
1318 if (dictSize >= ((UInt32)1 << 30)) mask = ((UInt32)1 << 22) - 1; in LzmaDec_Allocate()
1319 else if (dictSize >= ((UInt32)1 << 22)) mask = ((UInt32)1 << 20) - 1; in LzmaDec_Allocate()
1320 dicBufSize = ((SizeT)dictSize + mask) & ~mask; in LzmaDec_Allocate()
1321 if (dicBufSize < dictSize) in LzmaDec_Allocate()
1322 dicBufSize = dictSize; in LzmaDec_Allocate()
DLzmaEnc.h16 UInt32 dictSize; /* (1 << 12) <= dictSize <= (1 << 27) for 32-bit version member
/third_party/lzma/CPP/7zip/Common/
DMethodProps.h144 const UInt32 dictSize = in Get_Lzma_DicSize() local
149 return dictSize; in Get_Lzma_DicSize()
234 const UInt64 dictSize = Get_Lzma_DicSize(); in Get_Xz_BlockSize() local
236 UInt64 blockSize = (UInt64)dictSize << 2; in Get_Xz_BlockSize()
239 if (blockSize < dictSize) blockSize = dictSize; in Get_Xz_BlockSize()
/third_party/lzma/DOC/
Dlzma-specification.txt46 dictSize [0, 2^32 - 1] the dictionary size
53 Set_UInt32_LittleEndian(properties + 1, dictSize);
62 UInt32 dictSize;
77 dictSize = dictSizeInProperties;
78 if (dictSize < LZMA_DIC_MIN)
79 dictSize = LZMA_DIC_MIN;
109 dictSize = (p == 40) ? 0xFFFFFFFF : (((UInt32)2 | ((p) & 1)) << ((p) / 2 + 11));
257 void Create(UInt32 dictSize)
259 Buf = new Byte[dictSize];
261 Size = dictSize;
[all …]

12