/third_party/lz4/tests/ |
D | frametest.c | 180 size_t cSize, testSize; in basicTests() local 223 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuf… in basicTests() 224 DISPLAYLEVEL(3, "null content encoded into a %u bytes frame \n", (unsigned)cSize); in basicTests() 230 assert(cSize >= LZ4F_MIN_SIZE_TO_KNOW_HEADER_LENGTH); in basicTests() 250 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuf… in basicTests() 251 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize); in basicTests() 255 …CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuf… in basicTests() 256 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize); in basicTests() 260 size_t compressedBufferSize = cSize; in basicTests() 337 assert(cSize > 48); in basicTests() [all …]
|
D | fuzzer.c | 399 { int cSize, srcSize = blockSize; in FUZ_test() local 403 cSize = LZ4_compress_destSize(block, compressedBuffer, &srcSize, targetSize); in FUZ_test() 404 … FUZ_CHECKTEST(cSize > targetSize, "LZ4_compress_destSize() result larger than dst buffer !"); in FUZ_test() 407 … DISPLAYLEVEL(5, "destSize : %7i/%7i; content%7i/%7i ", cSize, targetSize, srcSize, blockSize); in FUZ_test() 412 FUZ_CHECKTEST((cSize==0), "LZ4_compress_destSize() compression failed"); in FUZ_test() 415 … { int const dSize = LZ4_decompress_safe(compressedBuffer, decodedBuffer, cSize, srcSize); in FUZ_test() 428 { int cSize, srcSize = blockSize; in FUZ_test() local 434 …cSize = LZ4_compress_HC_destSize(ctx, block, compressedBuffer, &srcSize, targetSize, compressionLe… in FUZ_test() 436 compressionLevel, cSize, targetSize, srcSize, blockSize); in FUZ_test() 438 … FUZ_CHECKTEST(cSize > targetSize, "LZ4_compress_HC_destSize() result larger than dst buffer !"); in FUZ_test() [all …]
|
D | roundTripTest.c | 109 …int const cSize = compress((const char*)srcBuff, (char*)compressedBuff, (int)srcSize, (int)compres… in roundTripTest() local 110 CONTROL_MSG(cSize == 0, "Compression error !"); in roundTripTest() 112 …{ int const dSize = LZ4_decompress_safe((const char*)compressedBuff, (char*)resultBuff, cSize, (… in roundTripTest()
|
D | fullbench.c | 503 size_t cSize=0; in fullSpeedBench() local 601 …cSize=0; for (chunkNb=0; chunkNb<nbChunks; chunkNb++) cSize += (size_t)chunkP[chunkNb].compressedS… in fullSpeedBench() 602 ratio = (double)cSize/(double)benchedSize*100.; in fullSpeedBench() 603 …i (%5.2f%%),%7.1f MB/s\r", loopNb, compressorName, (int)benchedSize, (int)cSize, ratio, (double)be… in fullSpeedBench() 607 …i (%5.2f%%),%7.1f MB/s\n", cAlgNb, compressorName, (int)benchedSize, (int)cSize, ratio, (double)be… in fullSpeedBench() 609 …i (%5.1f%%),%7.1f MB/s\n", cAlgNb, compressorName, (int)benchedSize, (int)cSize, ratio, (double)be… in fullSpeedBench()
|
/third_party/lz4/ossfuzz/ |
D | round_trip_stream_fuzzer.c | 147 int const cSize = LZ4_compress_fast_continue(state->cstream, src, dst, in state_prefixRoundTrip() local 149 FUZZ_ASSERT(cSize > 0); in state_prefixRoundTrip() 151 state->compressed.pos += cSize; in state_prefixRoundTrip() 152 state_decompress(state, dst, cSize); in state_prefixRoundTrip() 168 int const cSize = LZ4_compress_fast_continue(state->cstream, src, dst, in state_extDictRoundTrip() local 170 FUZZ_ASSERT(cSize > 0); in state_extDictRoundTrip() 172 state->compressed.pos += cSize; in state_extDictRoundTrip() 173 state_decompress(state, dst, cSize); in state_extDictRoundTrip() 217 int const cSize = LZ4_compress_HC_continue(state->cstreamHC, src, dst, in state_prefixHCRoundTrip() local 219 FUZZ_ASSERT(cSize > 0); in state_prefixHCRoundTrip() [all …]
|
/third_party/lz4/programs/ |
D | bench.c | 311 size_t cSize; member 380 size_t cSize = 0; in BMK_benchMem() local 412 blockTable[blockNb].cSize = rSize; in BMK_benchMem() 428 cSize = 0; in BMK_benchMem() 429 … { U32 blockNb; for (blockNb=0; blockNb<nbBlocks; blockNb++) cSize += blockTable[blockNb].cSize; } in BMK_benchMem() 430 cSize += !cSize; /* avoid div by 0 */ in BMK_benchMem() 431 ratio = (double)srcSize / (double)cSize; in BMK_benchMem() 434 marks[markNb], displayName, (U32)srcSize, (U32)cSize, ratio, in BMK_benchMem() 453 (int)blockTable[blockNb].cSize, (int)blockTable[blockNb].srcSize, in BMK_benchMem() 477 marks[markNb], displayName, (U32)srcSize, (U32)cSize, ratio, in BMK_benchMem() [all …]
|
D | lz4io.c | 695 …size_t const cSize = LZ4F_compressFrame_usingCDict(ctx, dstBuffer, dstBufferSize, srcBuffer, readS… in LZ4IO_compressFilename_extRess() local 696 if (LZ4F_isError(cSize)) in LZ4IO_compressFilename_extRess() 697 EXM_THROW(31, "Compression failed : %s", LZ4F_getErrorName(cSize)); in LZ4IO_compressFilename_extRess() 698 compressedfilesize = cSize; in LZ4IO_compressFilename_extRess() 703 if (fwrite(dstBuffer, 1, cSize, dstFile) != cSize) { in LZ4IO_compressFilename_extRess()
|
/third_party/lz4/lib/ |
D | lz4frame.c | 408 …{ size_t const cSize = LZ4F_compressUpdate(cctx, dstPtr, (size_t)(dstEnd-dstPtr), srcBuffer, srcSi… in LZ4F_compressFrame_usingCDict() local 409 if (LZ4F_isError(cSize)) return cSize; in LZ4F_compressFrame_usingCDict() 410 dstPtr += cSize; } in LZ4F_compressFrame_usingCDict() 747 U32 cSize = (U32)compress(lz4ctx, (const char*)src, (char*)(cSizePtr+BHSize), in LZ4F_makeBlock() local 750 if (cSize == 0) { /* compression failed */ in LZ4F_makeBlock() 752 cSize = (U32)srcSize; in LZ4F_makeBlock() 753 LZ4F_writeLE32(cSizePtr, cSize | LZ4F_BLOCKUNCOMPRESSED_FLAG); in LZ4F_makeBlock() 756 LZ4F_writeLE32(cSizePtr, cSize); in LZ4F_makeBlock() 759 U32 const crc32 = XXH32(cSizePtr+BHSize, cSize, 0); /* checksum of compressed data */ in LZ4F_makeBlock() 760 LZ4F_writeLE32(cSizePtr+BHSize+cSize, crc32); in LZ4F_makeBlock() [all …]
|
D | lz4hc.c | 962 …int const cSize = LZ4_compress_HC_extStateHC(statePtr, src, dst, srcSize, dstCapacity, compression… in LZ4_compress_HC() local 966 return cSize; in LZ4_compress_HC()
|
/third_party/flutter/flutter/packages/flutter/test/widgets/ |
D | slivers_appbar_floating_pinned_test.dart | 283 final Size cSize = tester.getSize(find.text('C')); 298 // initial position of E was 200 + 56 + cSize.height + cSize.height + 500 300 …expect(tester.getTopLeft(find.text('E')), Offset(0.0, 200.0 + 56.0 + cSize.height * 2.0 + 500.0 - …
|
/third_party/icu/tools/unicode/c/genuca/ |
D | genuca.cpp | 741 int32_t cSize = in readAnElement() local 752 s.releaseBuffer(cSize); in readAnElement()
|