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) in test_compress() argument
89 Byte *compr, *uncompr; in test_compress()
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) in test_gzio() argument
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) in test_inflate() argument
239 Byte *compr, *uncompr; in test_inflate()
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) in test_large_deflate() argument
280 Byte *compr, *uncompr; in test_large_deflate()
299 c_stream.next_in = uncompr;
317 c_stream.next_in = uncompr;
334 void test_large_inflate(compr, comprLen, uncompr, uncomprLen) in test_large_inflate() argument
335 Byte *compr, *uncompr; in test_large_inflate()
341 strcpy((char*)uncompr, "garbage");
354 d_stream.next_out = uncompr; /* discard the output */
413 void test_sync(compr, comprLen, uncompr, uncomprLen) in test_sync() argument
414 Byte *compr, *uncompr; in test_sync()
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) in test_dict_inflate() argument
495 Byte *compr, *uncompr; in test_dict_inflate()
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; local
566 uncompr = (Byte*)calloc((uInt)uncomprLen, 1);
570 if (compr == Z_NULL || uncompr == Z_NULL) {
579 test_compress(compr, comprLen, uncompr, uncomprLen);
582 uncompr, uncomprLen);
586 test_inflate(compr, comprLen, uncompr, uncomprLen);
588 test_large_deflate(compr, comprLen, uncompr, uncomprLen);
589 test_large_inflate(compr, comprLen, uncompr, uncomprLen);
592 test_sync(compr, comprLen, uncompr, uncomprLen);
596 test_dict_inflate(compr, comprLen, uncompr, uncomprLen);
599 free(uncompr);