Lines Matching refs:uncompr
39 Byte *uncompr, uLong uncomprLen));
41 Byte *uncompr, uLong uncomprLen));
43 Byte *uncompr, uLong uncomprLen));
46 Byte *uncompr, uLong uncomprLen));
49 Byte *uncompr, uLong uncomprLen));
81 Byte *uncompr, uLong uncomprLen));
83 Byte *uncompr, uLong uncomprLen));
88 void test_compress(compr, comprLen, uncompr, uncomprLen)
89 Byte *compr, *uncompr;
98 strcpy((char*)uncompr, "garbage");
100 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
103 if (strcmp((char*)uncompr, hello)) {
107 printf("uncompress(): %s\n", (char *)uncompr);
114 void test_gzio(fname, uncompr, uncomprLen)
116 Byte *uncompr;
149 strcpy((char*)uncompr, "garbage");
151 if (gzread(file, uncompr, (unsigned)uncomprLen) != len) {
155 if (strcmp((char*)uncompr, hello)) {
156 fprintf(stderr, "bad gzread: %s\n", (char*)uncompr);
159 printf("gzread(): %s\n", (char*)uncompr);
179 gzgets(file, (char*)uncompr, (int)uncomprLen);
180 if (strlen((char*)uncompr) != 7) { /* " hello!" */
184 if (strcmp((char*)uncompr, hello + 6)) {
188 printf("gzgets() after gzseek: %s\n", (char*)uncompr);
238 void test_inflate(compr, comprLen, uncompr, uncomprLen)
239 Byte *compr, *uncompr;
245 strcpy((char*)uncompr, "garbage");
253 d_stream.next_out = uncompr;
268 if (strcmp((char*)uncompr, hello)) {
272 printf("inflate(): %s\n", (char *)uncompr);
279 void test_large_deflate(compr, comprLen, uncompr, uncomprLen)
280 Byte *compr, *uncompr;
296 /* At this point, uncompr is still mostly zeroes, so it should compress
299 c_stream.next_in = uncompr;
317 c_stream.next_in = uncompr;
334 void test_large_inflate(compr, comprLen, uncompr, uncomprLen)
335 Byte *compr, *uncompr;
341 strcpy((char*)uncompr, "garbage");
354 d_stream.next_out = uncompr; /* discard the output */
413 void test_sync(compr, comprLen, uncompr, uncomprLen)
414 Byte *compr, *uncompr;
420 strcpy((char*)uncompr, "garbage");
432 d_stream.next_out = uncompr;
451 printf("after inflateSync(): hel%s\n", (char *)uncompr);
494 void test_dict_inflate(compr, comprLen, uncompr, uncomprLen)
495 Byte *compr, *uncompr;
501 strcpy((char*)uncompr, "garbage");
513 d_stream.next_out = uncompr;
533 if (strcmp((char*)uncompr, hello)) {
537 printf("inflate with dictionary: %s\n", (char *)uncompr);
549 Byte *compr, *uncompr;
566 uncompr = (Byte*)calloc((uInt)uncomprLen, 1);
567 /* compr and uncompr are cleared to avoid reading uninitialized
568 * data and to ensure that uncompr compresses well.
570 if (compr == Z_NULL || uncompr == Z_NULL) {
578 test_compress(compr, comprLen, uncompr, uncomprLen);
581 uncompr, uncomprLen);
585 test_inflate(compr, comprLen, uncompr, uncomprLen);
587 test_large_deflate(compr, comprLen, uncompr, uncomprLen);
588 test_large_inflate(compr, comprLen, uncompr, uncomprLen);
591 test_sync(compr, comprLen, uncompr, uncomprLen);
595 test_dict_inflate(compr, comprLen, uncompr, uncomprLen);
598 free(uncompr);