• Home
  • Raw
  • Download

Lines Matching refs:cSize

131     size_t cSize, readSize, readSkipSize, genSize;  in basicUnitTests()  local
146 cSize = skippableFrameSize + 8; in basicUnitTests()
153 …{ size_t const r = ZBUFF_compressContinue(zc, ((char*)compressedBuffer)+cSize, &genSize, CNBuffer,… in basicUnitTests()
156 cSize += genSize; in basicUnitTests()
157 genSize = compressedBufferSize - cSize; in basicUnitTests()
158 { size_t const r = ZBUFF_compressEnd(zc, ((char*)compressedBuffer)+cSize, &genSize); in basicUnitTests()
160 cSize += genSize; in basicUnitTests()
161 …DISPLAYLEVEL(4, "OK (%u bytes : %.2f%%)\n", (U32)cSize, (double)cSize/COMPRESSIBLE_NOISE_LENGTH*10… in basicUnitTests()
166 readSkipSize = cSize; in basicUnitTests()
176 readSize = cSize - readSkipSize; in basicUnitTests()
181 … if (readSize+readSkipSize != cSize) goto _output_error; /* should have read the entire frame */ in basicUnitTests()
215 if (readSize != cSize) goto _output_error; /* should have read the entire frame */ in basicUnitTests()
319 size_t cSize, totalTestSize, totalCSize, totalGenSize; in fuzzerTests() local
370 for (n=0, cSize=0, totalTestSize=0 ; (n<nbChunks) && (totalTestSize < maxTestSize) ; n++) { in fuzzerTests()
374 size_t dstBuffSize = MIN(cBufferSize - cSize, randomDstSize); in fuzzerTests()
377 …size_t const compressionError = ZBUFF_compressContinue(zc, cBuffer+cSize, &dstBuffSize, srcBuffer+… in fuzzerTests()
382 cSize += dstBuffSize; in fuzzerTests()
389 size_t dstBuffSize = MIN(cBufferSize - cSize, randomDstSize); in fuzzerTests()
390 size_t const flushError = ZBUFF_compressFlush(zc, cBuffer+cSize, &dstBuffSize); in fuzzerTests()
392 cSize += dstBuffSize; in fuzzerTests()
399 size_t dstBuffSize = MIN(cBufferSize - cSize, randomDstSize); in fuzzerTests()
401 remainingToFlush = ZBUFF_compressEnd(zc, cBuffer+cSize, &dstBuffSize); in fuzzerTests()
404 cSize += dstBuffSize; in fuzzerTests()
422 CHECK (totalCSize != cSize, "compressed data should be fully read") in fuzzerTests()
433 size_t const noiseSize = MIN((cSize/3) , randomNoiseSize); in fuzzerTests()
435 size_t const cStart = FUZ_rand(&lseed) % (cSize - noiseSize); in fuzzerTests()
443 while ( (totalCSize < cSize) && (totalGenSize < dstBufferSize) ) { in fuzzerTests()