• Home
  • Raw
  • Download

Lines Matching refs:cSize

270     size_t cSize;  in basicUnitTests()  local
320 cSize = skippableFrameSize + 8; in basicUnitTests()
325 outBuff.dst = (char*)(compressedBuffer)+cSize; in basicUnitTests()
326 assert(compressedBufferSize > cSize); in basicUnitTests()
327 outBuff.size = compressedBufferSize - cSize; in basicUnitTests()
336 cSize += outBuff.pos; in basicUnitTests()
338 (unsigned)cSize, (double)cSize/COMPRESSIBLE_NOISE_LENGTH*100); in basicUnitTests()
384 inBuff.size = cSize; in basicUnitTests()
428 size_t const gfhError = ZSTD_getFrameHeader(&fhi, cStart, cSize); in basicUnitTests()
477 … if (inBuff.pos != cSize) DISPLAYLEVEL(4, "inBuff.pos != cSize : should have real all input ! \n"); in basicUnitTests()
478 if (inBuff.pos != cSize) goto _output_error; /* should have read the entire frame */ in basicUnitTests()
496 inBuff.size = cSize; in basicUnitTests()
558 …DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (unsigned)cSize, (double)cSize/COMPRESSIBLE_NOISE_LENG… in basicUnitTests()
616 outBuff.dst = (char*)(compressedBuffer)+cSize; in basicUnitTests()
633 outBuff.dst = (char*)(compressedBuffer)+cSize; in basicUnitTests()
646 cSize = ZSTD_compress(compressedBuffer, compressedBufferSize, NULL, 0, 1); in basicUnitTests()
647 CHECK_Z(cSize); in basicUnitTests()
658 inBuff.size = cSize; in basicUnitTests()
672 cSize = ZSTD_compress(compressedBuffer, compressedBufferSize, CNBuffer, CNBufferSize, 1); in basicUnitTests()
673 CHECK_Z(cSize); in basicUnitTests()
685 inBuff.size = cSize; in basicUnitTests()
700 while (inBuff.pos < cSize) { in basicUnitTests()
701 inBuff.size += MIN(cSize - inBuff.pos, 1 + (FUZ_rand(&coreSeed) & 15)); in basicUnitTests()
714 inBuff.size = cSize; in basicUnitTests()
727 inBuff.size = cSize - 1; in basicUnitTests()
745 while (inBuff.pos < cSize) { in basicUnitTests()
746 inBuff.size += MIN(cSize - inBuff.pos, 1 + (FUZ_rand(&coreSeed) & 15)); in basicUnitTests()
769 …CHECK_Z(cSize = ZSTD_compress2(cctx, compressedBuffer, compressedBufferSize, CNBuffer, CNBufferSiz… in basicUnitTests()
770 CHECK(!(cSize < ZSTD_compressBound(CNBufferSize)), "cSize too large for test"); in basicUnitTests()
771 CHECK_Z(cSize = ZSTD_compress2(cctx, compressedBuffer, cSize + 4, CNBuffer, CNBufferSize)); in basicUnitTests()
786 CHECK(!(cSize == cSize3), "Must be same compressed size"); in basicUnitTests()
791 CHECK_Z(ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, cSize)); in basicUnitTests()
804 …CHECK_Z(cSize = ZSTD_compress2(cctx, compressedBuffer, compressedBufferSize, CNBuffer, CNBufferSiz… in basicUnitTests()
819 CHECK_Z(ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, cSize)); in basicUnitTests()
833 out.size = cSize / 4; in basicUnitTests()
839 out.size = MIN(out.size + cSize / 4, compressedBufferSize); in basicUnitTests()
841 CHECK_Z(ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, cSize)); in basicUnitTests()
846 out.size = cSize / 4; in basicUnitTests()
893 CHECK_Z(ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, cSize)); in basicUnitTests()
936 cSize = outBuff.pos; in basicUnitTests()
938 … DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (unsigned)cSize, (double)cSize/CNBufferSize*100); in basicUnitTests()
948 { unsigned const dID = ZSTD_getDictID_fromFrame(compressedBuffer, cSize); in basicUnitTests()
962 inBuff.size = cSize; in basicUnitTests()
980 inBuff.size = cSize; in basicUnitTests()
1030cSize = ZSTD_compress2(zc, compressedBuffer, compressedBufferSize, CNBuffer, MIN(CNBufferSize, 100… in basicUnitTests()
1031 CHECK_Z(cSize); in basicUnitTests()
1038 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1046 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1052 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1059 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1066 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1081 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1088 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1095 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1111 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1117 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1124 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1140 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1146 ZSTD_inBuffer in = {compressedBuffer, cSize, 0}; in basicUnitTests()
1161 … CHECK_Z( ZSTD_decompressDCtx(dctx, decodedBuffer, decodedBufferSize, compressedBuffer, cSize) ); in basicUnitTests()
1163 … CHECK_Z( ZSTD_decompressDCtx(dctx, decodedBuffer, decodedBufferSize, compressedBuffer, cSize) ); in basicUnitTests()
1166 … CHECK_Z( ZSTD_decompressDCtx(dctx, decodedBuffer, decodedBufferSize, compressedBuffer, cSize) ); in basicUnitTests()
1168 … CHECK_Z( ZSTD_decompressDCtx(dctx, decodedBuffer, decodedBufferSize, compressedBuffer, cSize) ); in basicUnitTests()
1171 ret = ZSTD_decompressDCtx(dctx, decodedBuffer, decodedBufferSize, compressedBuffer, cSize); in basicUnitTests()
1194 cSize = outBuff.pos; in basicUnitTests()
1196 … DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (unsigned)cSize, (double)cSize/CNBufferSize*100); in basicUnitTests()
1200 { U32 const did = ZSTD_getDictID_fromFrame(compressedBuffer, cSize); in basicUnitTests()
1206 { size_t const r = ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, cSize); in basicUnitTests()
1221 cSize = outBuff.pos; in basicUnitTests()
1222 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (unsigned)cSize, (double)cSize/CNBufferSize*100); in basicUnitTests()
1230 inBuff.size = cSize; in basicUnitTests()
1238 { size_t const r = ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, cSize); in basicUnitTests()
1252 cSize = outBuff.pos; in basicUnitTests()
1253 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (unsigned)cSize, (double)cSize/CNBufferSize*100); in basicUnitTests()
1256 CHECK_Z( ZSTD_decompress(decodedBuffer, CNBufferSize, compressedBuffer, cSize) ); in basicUnitTests()
1273 cSize = outBuff.pos; in basicUnitTests()
1274 if (ZSTD_findDecompressedSize(compressedBuffer, cSize) != 0) goto _output_error; in basicUnitTests()
1290 cSize = outBuff.pos; in basicUnitTests()
1291 if (ZSTD_findDecompressedSize(compressedBuffer, cSize) != 0) goto _output_error; in basicUnitTests()
1302 cSize = outBuff.pos; in basicUnitTests()
1303 …if (ZSTD_findDecompressedSize(compressedBuffer, cSize) != ZSTD_CONTENTSIZE_UNKNOWN) goto _output_e… in basicUnitTests()
1361 cSize = outBuff.pos; in basicUnitTests()
1367 ZSTD_getFrameHeader(&zfh, compressedBuffer, cSize); in basicUnitTests()
1377 inBuff.size = cSize; in basicUnitTests()
1789 size_t totalTestSize, totalGenSize, cSize; in fuzzerTests() local
1869 for (n=0, cSize=0, totalTestSize=0 ; totalTestSize < maxTestSize ; n++) { in fuzzerTests()
1875 size_t const dstBuffSize = MIN(cBufferSize - cSize, randomDstSize); in fuzzerTests()
1889 size_t const adjustedDstSize = MIN(cBufferSize - cSize, randomDstSize); in fuzzerTests()
1898 size_t const adjustedDstSize = MIN(cBufferSize - cSize, randomDstSize); in fuzzerTests()
1904 cSize = outBuff.pos; in fuzzerTests()
1914 ZSTD_inBuffer inBuff = { cBuffer, cSize, 0 }; in fuzzerTests()
1933 CHECK (inBuff.pos != cSize, "compressed data should be fully read") in fuzzerTests()
1945 size_t const noiseSize = MIN((cSize/3) , randomNoiseSize); in fuzzerTests()
1947 size_t const cStart = FUZ_rand(&lseed) % (cSize - noiseSize); in fuzzerTests()
1953 { ZSTD_inBuffer inBuff = { cBuffer, cSize, 0 }; in fuzzerTests()
1959 size_t const adjustedCSrcSize = MIN(cSize - inBuff.pos, randomCSrcSize); in fuzzerTests()
1965 if (outBuff.pos < outBuff.size && inBuff.pos == cSize) break; in fuzzerTests()
2058 size_t totalTestSize, totalGenSize, cSize; in fuzzerTests_newAPI() local
2326 cSize = outBuff.pos; in fuzzerTests_newAPI()
2327 compressedCrcs[iter] = XXH64(cBuffer, cSize, 0); in fuzzerTests_newAPI()
2328 DISPLAYLEVEL(5, "Frame completed : %zu bytes \n", cSize); in fuzzerTests_newAPI()
2345 ZSTD_inBuffer inBuff = { cBuffer, cSize, 0 }; in fuzzerTests_newAPI()
2354 (unsigned)readCSrcSize, (unsigned)inBuff.pos, (unsigned)cSize); in fuzzerTests_newAPI()
2363 …CHECK (inBuff.pos > cSize, "ZSTD_decompressStream consumes too much input : %u > %u ", (unsigned)i… in fuzzerTests_newAPI()
2365 …CHECK (inBuff.pos != cSize, "compressed data should be fully read (%u != %u)", (unsigned)inBuff.po… in fuzzerTests_newAPI()
2378 size_t const noiseSize = MIN((cSize/3) , randomNoiseSize); in fuzzerTests_newAPI()
2380 size_t const cStart = FUZ_rand(&lseed) % (cSize - noiseSize); in fuzzerTests_newAPI()
2386 { ZSTD_inBuffer inBuff = { cBuffer, cSize, 0 }; in fuzzerTests_newAPI()
2392 size_t const adjustedCSrcSize = MIN(cSize - inBuff.pos, randomCSrcSize); in fuzzerTests_newAPI()
2398 if (outBuff.pos < outBuff.size && inBuff.pos == cSize) break; in fuzzerTests_newAPI()