Home
last modified time | relevance | path

Searched refs:ZSTD_compressBound (Results 1 – 25 of 34) sorted by relevance

12

/external/zstd/contrib/single_file_libs/examples/
Droundtrip.c36 size_t ZSTD_compressBound(size_t maxSrc) { in ZSTD_compressBound() function
60 size_t bounds = ZSTD_compressBound(sizeof rawData); in main()
/external/zstd/tests/
Dlongmatch.c66 char *dstBuffer = (char*) malloc(ZSTD_compressBound(1 << windowLog)); in main()
67 ZSTD_outBuffer out = { dstBuffer, ZSTD_compressBound(1 << windowLog), 0 }; in main()
Dfuzzer.c279 size_t const outSize = ZSTD_compressBound(inSize); in FUZ_mallocTests()
346 size_t const compressedBufferSize = ZSTD_compressBound(CNBuffSize); in basicUnitTests()
683 size_t const dstCapacity = ZSTD_compressBound(size); in basicUnitTests()
733 size_t const dstSize = ZSTD_compressBound(srcSize); in basicUnitTests()
851 size_t const dstSize = ZSTD_compressBound(size); in basicUnitTests()
917 size_t srcSize = 321656; size_t dstCapacity = ZSTD_compressBound(srcSize); in basicUnitTests()
1075 size_t const outSize = ZSTD_compressBound(inSize); in basicUnitTests()
1105 …size2 = ZSTD_compress2(cctx, compressedBuffer, ZSTD_compressBound(sampleSize) - 1, CNBuffer, sampl… in basicUnitTests()
1116 …outb.size = ZSTD_compressBound(sampleSize) - 1; /* force streaming, as output buffer is not large… in basicUnitTests()
1690 … CHECK_VAR(cSize, ZSTD_compressEnd(ctxDuplicated, compressedBuffer, ZSTD_compressBound(testSize), in basicUnitTests()
[all …]
Dbigdict.c68 const size_t outSize = ZSTD_compressBound(dataSize); in main()
DroundTripCrash.c127 size_t const cBuffSize = ZSTD_compressBound(srcBuffSize); in roundTripCheck()
Dzbufftest.c127 …size_t const compressedBufferSize = (8 + skippableFrameSize) + ZSTD_compressBound(COMPRESSIBLE_NOI… in basicUnitTests()
276 size_t const cBufferSize = ZSTD_compressBound(srcBufferSize); in fuzzerTests()
Dzstreamtest.c266 …size_t const compressedBufferSize = (8 + skippableFrameSize) + ZSTD_compressBound(COMPRESSIBLE_NOI… in basicUnitTests()
617 outBuff.size = ZSTD_compressBound(inSize); in basicUnitTests()
634 outBuff.size = ZSTD_compressBound(inSize); in basicUnitTests()
770 CHECK(!(cSize < ZSTD_compressBound(CNBufferSize)), "cSize too large for test"); in basicUnitTests()
1549 size_t const compCapacity = ZSTD_compressBound(inputSize); in basicUnitTests()
1591 const size_t outbufsize = ZSTD_compressBound(inbufsize); in basicUnitTests()
1746 size_t const cBufferSize = ZSTD_compressBound(srcBufferSize); in fuzzerTests()
2011 size_t const cBufferSize = ZSTD_compressBound(srcBufferSize); in fuzzerTests_newAPI()
/external/zstd/tests/fuzz/
Dsimple_compress.c35 size_t const maxSize = ZSTD_compressBound(size); in LLVMFuzzerTestOneInput()
Ddecompress_dstSize_tooSmall.c40 size_t const cBufSize = ZSTD_compressBound(size); in LLVMFuzzerTestOneInput()
Ddictionary_loader.c83 size_t const cBufSize = ZSTD_compressBound(size); in LLVMFuzzerTestOneInput()
Dsimple_round_trip.c78 size_t cBufSize = ZSTD_compressBound(size); in LLVMFuzzerTestOneInput()
Draw_dictionary_round_trip.c82 size_t compSize = ZSTD_compressBound(srcSize); in LLVMFuzzerTestOneInput()
Ddictionary_round_trip.c88 size_t cBufSize = ZSTD_compressBound(size); in LLVMFuzzerTestOneInput()
Dstream_round_trip.c143 neededBufSize = ZSTD_compressBound(size) * 15; in LLVMFuzzerTestOneInput()
Ddictionary_stream_round_trip.c157 neededBufSize = ZSTD_compressBound(size) * 15; in LLVMFuzzerTestOneInput()
Dsequence_compression_api.c264 cBufSize = ZSTD_compressBound(generatedSrcSize); in LLVMFuzzerTestOneInput()
/external/zstd/contrib/seekable_format/examples/
Dparallel_compression.c131 …if (ZSTD_compressBound(frameSize) > 0xFFFFFFFFU) { fprintf(stderr, "Frame size too large \n"); exi… in compressFile_orDie()
132 unsigned dstSize = ZSTD_compressBound(frameSize); in compressFile_orDie()
/external/zstd/examples/
Dsimple_compression.c21 size_t const cBuffSize = ZSTD_compressBound(fSize); in compress_orDie()
Ddictionary_compression.c34 size_t const cBuffSize = ZSTD_compressBound(fSize); in compress()
Dmultiple_simple_compression.c46 ress.cBufferSize = ZSTD_compressBound(maxFileSize); in createResources_orDie()
/external/zstd/contrib/linux-kernel/
Dzstd_compress_module.c76 return ZSTD_compressBound(src_size); in zstd_compress_bound()
/external/zstd/tests/regression/
Dmethod.c63 state->compressed = data_buffer_create(ZSTD_compressBound(max_size)); in buffer_state_create()
354 ZSTD_compressBound(input.size) - subtract, in advanced_one_pass_compress_output_adjustment()
/external/zstd/programs/
Dbenchzstd.c370 …cities[nbBlocks] = (adv->mode == BMK_decodeOnly) ? thisBlockSize : ZSTD_compressBound(thisBlockSiz… in BMK_benchMemAdvancedNoAlloc()
588 …const size_t maxCompressedSize = dstCapacity ? dstCapacity : ZSTD_compressBound(srcSize) + (maxNbB… in BMK_benchMemAdvanced()
/external/zstd/zlibWrapper/examples/
Dzwrapbench.c160 …size_t const maxCompressedSize = ZSTD_compressBound(srcSize) + (maxNbBlocks * 1024); /* add some… in BMK_benchMem()
189 blockTable[nbBlocks].cRoom = ZSTD_compressBound(thisBlockSize); in BMK_benchMem()
/external/zstd/contrib/pzstd/
DPzstd.cpp284 auto outBuffer = Buffer(ZSTD_compressBound(maxInputSize)); in compress()

12