Lines Matching refs:comprLen
60 static void test_compress(Byte *compr, uLong comprLen, Byte *uncompr,
65 err = compress(compr, &comprLen, (const Bytef*)hello, len);
70 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
166 static void test_deflate(Byte *compr, uLong comprLen) {
181 while (c_stream.total_in != len && c_stream.total_out < comprLen) {
201 static void test_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
219 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
240 static void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr,
253 c_stream.avail_out = (uInt)comprLen;
293 static void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
305 d_stream.avail_in = (uInt)comprLen;
332 static void test_flush(Byte *compr, uLong *comprLen) {
347 c_stream.avail_out = (uInt)*comprLen;
361 *comprLen = c_stream.total_out;
367 static void test_sync(Byte *compr, uLong comprLen, Byte *uncompr,
390 d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
408 static void test_dict_deflate(Byte *compr, uLong comprLen) {
425 c_stream.avail_out = (uInt)comprLen;
442 static void test_dict_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
454 d_stream.avail_in = (uInt)comprLen;
494 uLong comprLen = 3 * uncomprLen;
509 compr = (Byte*)calloc((uInt)comprLen, 1);
523 test_compress(compr, comprLen, uncompr, uncomprLen);
529 test_deflate(compr, comprLen);
530 test_inflate(compr, comprLen, uncompr, uncomprLen);
532 test_large_deflate(compr, comprLen, uncompr, uncomprLen);
533 test_large_inflate(compr, comprLen, uncompr, uncomprLen);
535 test_flush(compr, &comprLen);
536 test_sync(compr, comprLen, uncompr, uncomprLen);
537 comprLen = 3 * uncomprLen;
539 test_dict_deflate(compr, comprLen);
540 test_dict_inflate(compr, comprLen, uncompr, uncomprLen);