Home
last modified time | relevance | path

Searched refs:LZ4_compressBound (Results 1 – 16 of 16) sorted by relevance

/third_party/lz4/tests/
Dfullbench.c190 return LZ4_compress_default(in, out, inSize, LZ4_compressBound(inSize)); in local_LZ4_compress_default_large()
195 return LZ4_compress_default(in, out, inSize, LZ4_compressBound(inSize)-1); in local_LZ4_compress_default_small()
200 return LZ4_compress_destSize(in, out, &inSize, LZ4_compressBound(inSize)-1); in local_LZ4_compress_destSize()
205 return LZ4_compress_fast(in, out, inSize, LZ4_compressBound(inSize), 0); in local_LZ4_compress_fast0()
210 return LZ4_compress_fast(in, out, inSize, LZ4_compressBound(inSize), 1); in local_LZ4_compress_fast1()
215 return LZ4_compress_fast(in, out, inSize, LZ4_compressBound(inSize), 2); in local_LZ4_compress_fast2()
220 return LZ4_compress_fast(in, out, inSize, LZ4_compressBound(inSize), 17); in local_LZ4_compress_fast17()
225 return LZ4_compress_fast_extState(&LZ4_stream, in, out, inSize, LZ4_compressBound(inSize), 0); in local_LZ4_compress_fast_extState0()
230 return LZ4_compress_fast_continue(&LZ4_stream, in, out, inSize, LZ4_compressBound(inSize), 0); in local_LZ4_compress_fast_continue0()
267 return LZ4_compress_HC(in, out, inSize, LZ4_compressBound(inSize), 9); in local_LZ4_compress_HC()
[all …]
Dfuzzer.c324 size_t const compressedBufferSize = (size_t)LZ4_compressBound(FUZ_MAX_BLOCK_SIZE); in FUZ_test()
1111 { int const maxCSize = LZ4_compressBound(0); in FUZ_unitTests()
1459 …_continue(&sHC, testInput + segStart, testCompressed, (int)segSize, LZ4_compressBound((int)segSize… in FUZ_unitTests()
/third_party/lz4/ossfuzz/
Dround_trip_hc_fuzzer.c23 size_t const dstCapacity = LZ4_compressBound(size); in LLVMFuzzerTestOneInput()
Dround_trip_frame_fuzzer.c23 size_t const dstCapacity = LZ4F_compressFrameBound(LZ4_compressBound(size), &prefs); in LLVMFuzzerTestOneInput()
Dcompress_fuzzer.c22 size_t const compressBound = LZ4_compressBound(size); in LLVMFuzzerTestOneInput()
Dround_trip_fuzzer.c22 size_t const dstCapacity = LZ4_compressBound(size); in LLVMFuzzerTestOneInput()
Dround_trip_frame_uncompressed_fuzzer.c61 LZ4F_compressFrameBound(LZ4_compressBound(size), &prefs) + in compress_round_trip()
Dround_trip_stream_fuzzer.c69 state.compressed = cursor_create(1024 + 2 * LZ4_compressBound(size)); in state_create()
/third_party/lz4/examples/
Dsimple_buffer.c45 const int max_dst_size = LZ4_compressBound(src_size); in main()
Dcompress_functions.c249 const size_t max_dst_size = LZ4_compressBound(src_size); in main()
/third_party/lz4/lib/
Dlz4hc.c945 if (dstCapacity < LZ4_compressBound(srcSize)) in LZ4_compress_HC_extStateHC_fastReset()
1153 if (dstCapacity < LZ4_compressBound(srcSize)) in LZ4_compress_HC_continue()
1203 …har* dst, int srcSize) { return LZ4_compress_HC (src, dst, srcSize, LZ4_compressBound(srcSize), 0)… in LZ4_compressHC()
1205 …t srcSize, int cLevel) { return LZ4_compress_HC (src, dst, srcSize, LZ4_compressBound(srcSize), cL… in LZ4_compressHC2()
1207 …ize) { return LZ4_compress_HC_extStateHC (state, src, dst, srcSize, LZ4_compressBound(srcSize), 0)… in LZ4_compressHC_withStateHC()
1209 …evel) { return LZ4_compress_HC_extStateHC(state, src, dst, srcSize, LZ4_compressBound(srcSize), cL… in LZ4_compressHC2_withStateHC()
1211 … srcSize) { return LZ4_compress_HC_continue (ctx, src, dst, srcSize, LZ4_compressBound(srcSize)); } in LZ4_compressHC_continue()
Dlz4.c730 int LZ4_compressBound(int isize) { return LZ4_COMPRESSBOUND(isize); } in LZ4_compressBound() function
1352 if (maxOutputSize >= LZ4_compressBound(inputSize)) { in LZ4_compress_fast_extState()
1384 if (dstCapacity >= LZ4_compressBound(srcSize)) { in LZ4_compress_fast_extState_fastReset()
1449 if (targetDstSize >= LZ4_compressBound(*srcSizePtr)) { /* compression success is guaranteed */ in LZ4_compress_destSize_extState()
2663 return LZ4_compress_default(src, dest, srcSize, LZ4_compressBound(srcSize)); in LZ4_compress()
2671 return LZ4_compress_fast_extState(state, src, dst, srcSize, LZ4_compressBound(srcSize), 1); in LZ4_compress_withState()
2679 …return LZ4_compress_fast_continue(LZ4_stream, source, dest, inputSize, LZ4_compressBound(inputSize… in LZ4_compress_continue()
Dlz4.h223 LZ4LIB_API int LZ4_compressBound(int inputSize);
/third_party/lz4/programs/
Dbench.c364 …size_t const maxCompressedSize = (size_t)LZ4_compressBound((int)srcSize) + (maxNbBlocks * 1024); … in BMK_benchMem()
405 blockTable[nbBlocks].cRoom = (size_t)LZ4_compressBound((int)thisBlockSize); in BMK_benchMem()
Dlz4io.c421 const int outBuffSize = LZ4_compressBound(LEGACY_BLOCKSIZE); in LZ4IO_compressFilename_Legacy()
968 char* const in_buff = (char*)malloc((size_t)LZ4_compressBound(LEGACY_BLOCKSIZE)); in LZ4IO_decodeLegacyStream()
/third_party/lz4/
DNEWS46 …ough input and when providing an output smaller than recommended (< LZ4_compressBound(inputSize)),…
325 lz4.h : LZ4_compressBound() : unified macro and inline definitions (Shay Green)