Lines Matching refs:comprLen
37 void test_compress OF((Byte *compr, uLong comprLen,
41 void test_deflate OF((Byte *compr, uLong comprLen));
42 void test_inflate OF((Byte *compr, uLong comprLen,
44 void test_large_deflate OF((Byte *compr, uLong comprLen,
46 void test_large_inflate OF((Byte *compr, uLong comprLen,
48 void test_flush OF((Byte *compr, uLong *comprLen));
49 void test_sync OF((Byte *compr, uLong comprLen,
51 void test_dict_deflate OF((Byte *compr, uLong comprLen));
52 void test_dict_inflate OF((Byte *compr, uLong comprLen,
59 void test_compress(compr, comprLen, uncompr, uncomprLen)
61 uLong comprLen, uncomprLen;
66 err = compress(compr, &comprLen, (const Bytef*)hello, len);
71 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
169 void test_deflate(compr, comprLen)
171 uLong comprLen;
187 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
207 void test_inflate(compr, comprLen, uncompr, uncomprLen)
209 uLong comprLen, uncomprLen;
227 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
248 void test_large_deflate(compr, comprLen, uncompr, uncomprLen)
250 uLong comprLen, uncomprLen;
263 c_stream.avail_out = (uInt)comprLen;
280 c_stream.avail_in = (uInt)comprLen/2;
303 void test_large_inflate(compr, comprLen, uncompr, uncomprLen)
305 uLong comprLen, uncomprLen;
317 d_stream.avail_in = (uInt)comprLen;
333 if (d_stream.total_out != 2*uncomprLen + comprLen/2) {
344 void test_flush(compr, comprLen)
346 uLong *comprLen;
362 c_stream.avail_out = (uInt)*comprLen;
376 *comprLen = c_stream.total_out;
382 void test_sync(compr, comprLen, uncompr, uncomprLen)
384 uLong comprLen, uncomprLen;
407 d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
426 void test_dict_deflate(compr, comprLen)
428 uLong comprLen;
446 c_stream.avail_out = (uInt)comprLen;
463 void test_dict_inflate(compr, comprLen, uncompr, uncomprLen)
465 uLong comprLen, uncomprLen;
477 d_stream.avail_in = (uInt)comprLen;
519 uLong comprLen = 10000*sizeof(int); /* don't overflow on ZLIB_MSDOS */
520 uLong uncomprLen = comprLen;
534 compr = (Byte*)calloc((uInt)comprLen, 1);
543 test_compress(compr, comprLen, uncompr, uncomprLen);
548 test_deflate(compr, comprLen);
549 test_inflate(compr, comprLen, uncompr, uncomprLen);
551 test_large_deflate(compr, comprLen, uncompr, uncomprLen);
552 test_large_inflate(compr, comprLen, uncompr, uncomprLen);
554 test_flush(compr, &comprLen);
555 test_sync(compr, comprLen, uncompr, uncomprLen);
556 comprLen = uncomprLen;
558 test_dict_deflate(compr, comprLen);
559 test_dict_inflate(compr, comprLen, uncompr, uncomprLen);