Home
last modified time | relevance | path

Searched refs:compressedBufferSize (Results 1 – 6 of 6) sorted by relevance

/external/zstd/tests/
Dfuzzer.c346 size_t const compressedBufferSize = ZSTD_compressBound(CNBuffSize); in basicUnitTests() local
347 void* const compressedBuffer = malloc(compressedBufferSize); in basicUnitTests()
399 compressedBuffer, compressedBufferSize, in basicUnitTests()
465 ZSTD_outBuffer outb = { compressedBuffer, compressedBufferSize, 0 }; in basicUnitTests()
567 …ize_t const r = ZSTD_decompress(decodedBuffer, CNBuffSize, compressedBuffer, compressedBufferSize); in basicUnitTests()
573 { size_t const r = ZSTD_decompress(NULL, 0, compressedBuffer, compressedBufferSize); in basicUnitTests()
588 compressedBuffer, compressedBufferSize, in basicUnitTests()
622 compressedBuffer, compressedBufferSize, in basicUnitTests()
628 size_t const ret = ZSTD_getFrameHeader(&zfh, compressedBuffer, compressedBufferSize); in basicUnitTests()
632 … unsigned long long const bound = ZSTD_decompressBound(compressedBuffer, compressedBufferSize); in basicUnitTests()
[all …]
Dzstreamtest.c266 …size_t const compressedBufferSize = (8 + skippableFrameSize) + ZSTD_compressBound(COMPRESSIBLE_NOI… in basicUnitTests() local
267 void* compressedBuffer = malloc(compressedBufferSize); in basicUnitTests()
306 outBuff.size = compressedBufferSize; in basicUnitTests()
326 assert(compressedBufferSize > cSize); in basicUnitTests()
327 outBuff.size = compressedBufferSize - cSize; in basicUnitTests()
524 outBuff.size = compressedBufferSize; in basicUnitTests()
544 outBuff.size = compressedBufferSize; in basicUnitTests()
564 outBuff.size = compressedBufferSize; in basicUnitTests()
579 outBuff.size = compressedBufferSize; in basicUnitTests()
594 outBuff.size = compressedBufferSize; in basicUnitTests()
[all …]
Dzbufftest.c127 …size_t const compressedBufferSize = (8 + skippableFrameSize) + ZSTD_compressBound(COMPRESSIBLE_NOI… in basicUnitTests() local
128 void* compressedBuffer = malloc(compressedBufferSize); in basicUnitTests()
152 genSize = compressedBufferSize; in basicUnitTests()
157 genSize = compressedBufferSize - cSize; in basicUnitTests()
/external/lz4/tests/
Dfuzzer.c323 size_t const compressedBufferSize = (size_t)LZ4_compressBound(FUZ_MAX_BLOCK_SIZE); in FUZ_test() local
324 char* const compressedBuffer = (char*)malloc(compressedBufferSize); in FUZ_test()
461 …edSize = LZ4_compress_HC(block, compressedBuffer, blockSize, (int)compressedBufferSize, compressio… in FUZ_test()
466 …C_extStateHC(stateLZ4HC, block, compressedBuffer, blockSize, (int)compressedBufferSize, compressio… in FUZ_test()
472 …HC_fastReset(stateLZ4HC, block, compressedBuffer, blockSize, (int)compressedBufferSize, compressio… in FUZ_test()
478 …compress_fast_extState(stateLZ4, block, compressedBuffer, blockSize, (int)compressedBufferSize, 8); in FUZ_test()
483 …ast_extState_fastReset(stateLZ4, block, compressedBuffer, blockSize, (int)compressedBufferSize, 8); in FUZ_test()
488 …mpressedSize = LZ4_compress_default(block, compressedBuffer, blockSize, (int)compressedBufferSize); in FUZ_test()
496 assert(compressedSize <= (int)compressedBufferSize); in FUZ_test()
685 …ast_continue (&LZ4_stream, dict, compressedBuffer, dictSize, (int)compressedBufferSize, 1); /* J… in FUZ_test()
[all …]
Dframetest.c243 size_t compressedBufferSize = cSize; in basicTests() local
248 …compress(dCtx, decodedBuffer, &decodedBufferSize, compressedBuffer, &compressedBufferSize, NULL) ); in basicTests()
255 size_t iSize = compressedBufferSize - missingBytes; in basicTests()
909 …size_t const compressedBufferSize = LZ4F_compressFrameBound(CNBufferLength, NULL) + 4 MB; /* need… in fuzzerTests() local
928 compressedBuffer = malloc(compressedBufferSize); in fuzzerTests()
978 …= op + (neverFlush ? LZ4F_compressFrameBound(srcSize, prefsPtr) : compressedBufferSize); /* when … in fuzzerTests()
1020 (unsigned)compressedBufferSize); in fuzzerTests()
1021 assert(op + dstEndSize < (BYTE*)compressedBuffer + compressedBufferSize); in fuzzerTests()
/external/python/cpython2/Modules/
Dclmodule.c103 int frameBufferSize, compressedBufferSize; in cl_CompressImage() local
118 compressedBufferSize = frameBufferSize; in cl_CompressImage()
122 &compressedBufferSize, in cl_CompressImage()
131 if (compressedBufferSize > frameBufferSize) { in cl_CompressImage()
132 frameBufferSize = compressedBufferSize; in cl_CompressImage()
137 if (compressedBufferSize < frameBufferSize) in cl_CompressImage()
138 _PyString_Resize(&compressedBuffer, compressedBufferSize); in cl_CompressImage()
148 int compressedBufferSize, frameBufferSize; in cl_DecompressImage() local
153 &compressedBufferSize)) in cl_DecompressImage()
164 compressedBufferSize, compressedBuffer, in cl_DecompressImage()
[all …]