Lines Matching refs:cSize
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()
445 FUZ_CHECKTEST((cSize==0), "LZ4_compress_HC_destSize() compression failed"); in FUZ_test()
448 … { int const dSize = LZ4_decompress_safe(compressedBuffer, decodedBuffer, cSize, srcSize); in FUZ_test()
661 …{ int const cSize = LZ4_compress_default(block, compressedBuffer, blockSize, compressedSize-miss… in FUZ_test() local
662 …FUZ_CHECKTEST(cSize, "LZ4_compress_default should have failed (output buffer too small by %i byte)… in FUZ_test()
1064 int const cSize = LZ4_compress_default(NULL, testCompressed, 0, maxCSize); in FUZ_unitTests() local
1065 FUZ_CHECKTEST(!(cSize==1 && testCompressed[0]==0), in FUZ_unitTests()
1068 maxCSize, cSize, testCompressed[0]); in FUZ_unitTests()
1073 { int const cSize = LZ4_compress_default(NULL, NULL, 0, 0); in FUZ_unitTests() local
1074 FUZ_CHECKTEST(cSize != 0, in FUZ_unitTests()
1076 " (cSize == %i != 0)", cSize); in FUZ_unitTests()
1088 int cSize; in FUZ_unitTests() local
1092 cSize = LZ4_compress_default(startInput, testCompressed, sampleSize, maxCSize); in FUZ_unitTests()
1093 assert(cSize != 0); /* ensure compression is successful */ in FUZ_unitTests()
1095 assert(cSize <= maxCSize); in FUZ_unitTests()
1097 { int const dSize = LZ4_decompress_safe(testCompressed, testVerify, cSize, testInputSize); in FUZ_unitTests()
1112 … int const cSize = LZ4_compress_default(testInput, testCompressed, sampleSize, testCompressedSize); in FUZ_unitTests() local
1113 assert(cSize == sampleSize - 1); /* worst case for in-place decompression */ in FUZ_unitTests()
1116 int const startInputIndex = bufferSize - cSize; in FUZ_unitTests()
1118 memcpy(startInput, testCompressed, cSize); in FUZ_unitTests()
1121 … { int const dSize = LZ4_decompress_safe(startInput, testVerify, cSize, sampleSize); in FUZ_unitTests()
1341 …{ int const cSize = LZ4_compress_HC_continue(&sHC, testInput + 64 KB, testCompressed, testCompre… in FUZ_unitTests() local
1342 …FUZ_CHECKTEST(cSize==0, "LZ4_compressHC_limitedOutput_continue() dictionary compression failed : @… in FUZ_unitTests()
1344 …t const dSize = LZ4_decompress_safe_usingDict(testCompressed, testVerify, cSize, testCompressedSiz… in FUZ_unitTests()