/third_party/lz4/tests/ |
H A D | frametest.c | 228 size_t cSize, testSize; in basicTests() local 271 CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuffer, testSize, NULL)); in basicTests() 272 DISPLAYLEVEL(3, "null content encoded into a %u bytes frame \n", (unsigned)cSize); in basicTests() 278 assert(cSize >= LZ4F_MIN_SIZE_TO_KNOW_HEADER_LENGTH); in basicTests() 298 CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuffer, testSize, &fastCompressPrefs)); in basicTests() 299 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize); in basicTests() 303 CHECK_V(cSize, LZ4F_compressFrame(compressedBuffer, LZ4F_compressFrameBound(testSize, NULL), CNBuffer, testSize, NULL)); in basicTests() 304 DISPLAYLEVEL(3, "Compressed %u bytes into a %u bytes frame \n", (U32)testSize, (U32)cSize); in basicTests() 308 size_t compressedBufferSize = cSize; in basicTests() 385 assert(cSize > 4 in basicTests() 871 test_lz4f_decompression_wBuffers( const void* cSrc, size_t cSize, void* dst, size_t dstCapacity, o_scenario_e o_scenario, const void* srcRef, size_t decompressedSize, U64 crcOrig, U32* const randState, LZ4F_dctx* const dCtx, U32 seed, U32 testNb, int findErrorPos) test_lz4f_decompression_wBuffers() argument 960 test_lz4f_decompression(const void* cSrc, size_t cSize, const void* srcRef, size_t decompressedSize, U64 crcOrig, U32* const randState, LZ4F_dctx* const dCtx, U32 seed, U32 testNb, int findErrorPos) test_lz4f_decompression() argument 1034 size_t cSize; fuzzerTests() local [all...] |
H A D | fuzzer.c | 400 { int cSize, srcSize = blockSize; in FUZ_test() local 404 cSize = LZ4_compress_destSize(block, compressedBuffer, &srcSize, targetSize); in FUZ_test() 405 FUZ_CHECKTEST(cSize > targetSize, "LZ4_compress_destSize() result larger than dst buffer !"); in FUZ_test() 408 DISPLAYLEVEL(5, "destSize : %7i/%7i; content%7i/%7i ", cSize, targetSize, srcSize, blockSize); in FUZ_test() 413 FUZ_CHECKTEST((cSize==0), "LZ4_compress_destSize() compression failed"); in FUZ_test() 416 { int const dSize = LZ4_decompress_safe(compressedBuffer, decodedBuffer, cSize, srcSize); in FUZ_test() 429 { int cSize, srcSize = blockSize; in FUZ_test() local 435 cSize = LZ4_compress_HC_destSize(ctx, block, compressedBuffer, &srcSize, targetSize, compressionLevel); in FUZ_test() 437 compressionLevel, cSize, targetSize, srcSize, blockSize); in FUZ_test() 439 FUZ_CHECKTEST(cSize > targetSiz in FUZ_test() 709 { int const cSize = LZ4_compress_default(block, compressedBuffer, blockSize, compressedSize-missingBytes); FUZ_test() local 1112 int const cSize = LZ4_compress_default(NULL, testCompressed, 0, maxCSize); FUZ_unitTests() local 1121 { int const cSize = LZ4_compress_default(NULL, NULL, 0, 0); FUZ_unitTests() local 1136 int cSize; FUZ_unitTests() local 1160 int const cSize = LZ4_compress_default(testInput, testCompressed, sampleSize, testCompressedSize); FUZ_unitTests() local 1390 { int const cSize = LZ4_compress_HC_continue(&sHC, testInput + 64 KB, testCompressed, testCompressedSize, testCompressedSize-1); FUZ_unitTests() local [all...] |
H A D | abiTest.c | 81 { int const cSize = LZ4_compress_fast_continue(&LZ4_cState, (const char*)srcBuff, (char*)compressedBuff, (int)srcSize, (int)compressedBuffCapacity, acceleration); in roundTripTest() local 82 CONTROL_MSG(cSize == 0, "Compression error !"); in roundTripTest() 86 { int const dSize = LZ4_decompress_safe_continue (&LZ4_dState, (const char*)compressedBuff, (char*)resultBuff, cSize, (int)resultBuffCapacity); in roundTripTest()
|
H A D | roundTripTest.c | 109 int const cSize = compress((const char*)srcBuff, (char*)compressedBuff, (int)srcSize, (int)compressedBuffCapacity, selected_clevel); 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, (int)resultBuffCapacity); in roundTripTest()
|
H A D | fullbench.c | 529 size_t cSize=0; in fullSpeedBench() local 627 cSize=0; for (chunkNb=0; chunkNb<nbChunks; chunkNb++) cSize += (size_t)chunkP[chunkNb].compressedSize; in fullSpeedBench() 628 ratio = (double)cSize/(double)benchedSize*100.; in fullSpeedBench() 629 PROGRESS("%2i-%-34.34s :%10i ->%9i (%5.2f%%),%7.1f MB/s\r", loopNb, compressorName, (int)benchedSize, (int)cSize, ratio, (double)benchedSize / bestTime / 1000000); in fullSpeedBench() 633 DISPLAY("%2i-%-34.34s :%10i ->%9i (%5.2f%%),%7.1f MB/s\n", cAlgNb, compressorName, (int)benchedSize, (int)cSize, ratio, (double)benchedSize / bestTime / 1000000); in fullSpeedBench() 635 DISPLAY("%2i-%-34.34s :%10i ->%9i (%5.1f%%),%7.1f MB/s\n", cAlgNb, compressorName, (int)benchedSize, (int)cSize, ratio, (double)benchedSize / bestTime / 100000); in fullSpeedBench()
|
/third_party/lz4/ossfuzz/ |
H A 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 > in state_prefixHCRoundTrip() 239 int const cSize = LZ4_compress_HC_continue(state->cstreamHC, src, dst, state_extDictHCRoundTrip() local [all...] |
/third_party/lz4/programs/ |
H A D | bench.c | 348 size_t cSize; member 420 blockTable[blockNb].cSize = blockTable[blockNb].srcSize; in BMK_benchMem() 435 size_t cSize = srcSize; in BMK_benchMem() local 467 blockTable[blockNb].cSize = rSize; in BMK_benchMem() 483 cSize = 0; in BMK_benchMem() 484 { U32 blockNb; for (blockNb=0; blockNb<nbBlocks; blockNb++) cSize += blockTable[blockNb].cSize; } in BMK_benchMem() 485 cSize += !cSize; /* avoid div by 0 */ in BMK_benchMem() 486 ratio = (double)totalRSize / (double)cSize; in BMK_benchMem() [all...] |
H A D | lz4io.c | 707 size_t const cSize = LZ4F_compressFrame_usingCDict(ctx, dstBuffer, dstBufferSize, srcBuffer, readSize, ress.cdict, &prefs); in LZ4IO_compressFilename_extRess() local 708 if (LZ4F_isError(cSize)) in LZ4IO_compressFilename_extRess() 709 END_PROCESS(41, "Compression failed : %s", LZ4F_getErrorName(cSize)); in LZ4IO_compressFilename_extRess() 710 compressedfilesize = cSize; in LZ4IO_compressFilename_extRess() 715 if (fwrite(dstBuffer, 1, cSize, dstFile) != cSize) { in LZ4IO_compressFilename_extRess()
|
/third_party/lz4/lib/ |
H A D | lz4frame.c | 454 { size_t const cSize = LZ4F_compressUpdate(cctx, dstPtr, (size_t)(dstEnd-dstPtr), srcBuffer, srcSize, &options); in LZ4F_compressFrame_usingCDict() local 455 FORWARD_IF_ERROR(cSize); in LZ4F_compressFrame_usingCDict() 456 dstPtr += cSize; } in LZ4F_compressFrame_usingCDict() 832 U32 cSize; in LZ4F_makeBlock() local 834 cSize = (U32)compress(lz4ctx, (const char*)src, (char*)(cSizePtr+BHSize), in LZ4F_makeBlock() 838 if (cSize == 0 || cSize >= srcSize) { in LZ4F_makeBlock() 839 cSize = (U32)srcSize; in LZ4F_makeBlock() 840 LZ4F_writeLE32(cSizePtr, cSize | LZ4F_BLOCKUNCOMPRESSED_FLAG); in LZ4F_makeBlock() 843 LZ4F_writeLE32(cSizePtr, cSize); in LZ4F_makeBlock() [all...] |
H A D | lz4hc.c | 960 int cSize; in LZ4_compress_HC() local 968 cSize = LZ4_compress_HC_extStateHC(statePtr, src, dst, srcSize, dstCapacity, compressionLevel); in LZ4_compress_HC() 972 return cSize; in LZ4_compress_HC()
|
/third_party/icu/tools/unicode/c/genuca/ |
H A D | genuca.cpp | 741 int32_t cSize = in readAnElement() local 752 s.releaseBuffer(cSize); in readAnElement()
|
/third_party/skia/third_party/externals/sfntly/java/lib/ |
H A D | icu4j-4_8_1_1.jar | META-INF/
META-INF/MANIFEST.MF
com/
com/ibm/
com/ibm/icu/
com/ibm/icu/impl/
... |