/external/zstd/contrib/single_file_libs/examples/ |
D | roundtrip.c | 36 size_t ZSTD_compressBound(size_t maxSrc) { in ZSTD_compressBound() function 60 size_t bounds = ZSTD_compressBound(sizeof rawData); in main()
|
/external/zstd/tests/ |
D | longmatch.c | 66 char *dstBuffer = (char*) malloc(ZSTD_compressBound(1 << windowLog)); in main() 67 ZSTD_outBuffer out = { dstBuffer, ZSTD_compressBound(1 << windowLog), 0 }; in main()
|
D | fuzzer.c | 279 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 …]
|
D | bigdict.c | 68 const size_t outSize = ZSTD_compressBound(dataSize); in main()
|
D | roundTripCrash.c | 127 size_t const cBuffSize = ZSTD_compressBound(srcBuffSize); in roundTripCheck()
|
D | zbufftest.c | 127 …size_t const compressedBufferSize = (8 + skippableFrameSize) + ZSTD_compressBound(COMPRESSIBLE_NOI… in basicUnitTests() 276 size_t const cBufferSize = ZSTD_compressBound(srcBufferSize); in fuzzerTests()
|
D | zstreamtest.c | 266 …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/ |
D | simple_compress.c | 35 size_t const maxSize = ZSTD_compressBound(size); in LLVMFuzzerTestOneInput()
|
D | decompress_dstSize_tooSmall.c | 40 size_t const cBufSize = ZSTD_compressBound(size); in LLVMFuzzerTestOneInput()
|
D | dictionary_loader.c | 83 size_t const cBufSize = ZSTD_compressBound(size); in LLVMFuzzerTestOneInput()
|
D | simple_round_trip.c | 78 size_t cBufSize = ZSTD_compressBound(size); in LLVMFuzzerTestOneInput()
|
D | raw_dictionary_round_trip.c | 82 size_t compSize = ZSTD_compressBound(srcSize); in LLVMFuzzerTestOneInput()
|
D | dictionary_round_trip.c | 88 size_t cBufSize = ZSTD_compressBound(size); in LLVMFuzzerTestOneInput()
|
D | stream_round_trip.c | 143 neededBufSize = ZSTD_compressBound(size) * 15; in LLVMFuzzerTestOneInput()
|
D | dictionary_stream_round_trip.c | 157 neededBufSize = ZSTD_compressBound(size) * 15; in LLVMFuzzerTestOneInput()
|
D | sequence_compression_api.c | 264 cBufSize = ZSTD_compressBound(generatedSrcSize); in LLVMFuzzerTestOneInput()
|
/external/zstd/contrib/seekable_format/examples/ |
D | parallel_compression.c | 131 …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/ |
D | simple_compression.c | 21 size_t const cBuffSize = ZSTD_compressBound(fSize); in compress_orDie()
|
D | dictionary_compression.c | 34 size_t const cBuffSize = ZSTD_compressBound(fSize); in compress()
|
D | multiple_simple_compression.c | 46 ress.cBufferSize = ZSTD_compressBound(maxFileSize); in createResources_orDie()
|
/external/zstd/contrib/linux-kernel/ |
D | zstd_compress_module.c | 76 return ZSTD_compressBound(src_size); in zstd_compress_bound()
|
/external/zstd/tests/regression/ |
D | method.c | 63 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/ |
D | benchzstd.c | 370 …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/ |
D | zwrapbench.c | 160 …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/ |
D | Pzstd.cpp | 284 auto outBuffer = Buffer(ZSTD_compressBound(maxInputSize)); in compress()
|