Lines Matching refs:uncompr
56 Byte *uncompr, uLong uncomprLen));
58 Byte *uncompr, uLong uncomprLen));
60 Byte *uncompr, uLong uncomprLen));
63 Byte *uncompr, uLong uncomprLen));
66 Byte *uncompr, uLong uncomprLen));
98 Byte *uncompr, uLong uncomprLen));
100 Byte *uncompr, uLong uncomprLen));
105 void test_compress(compr, comprLen, uncompr, uncomprLen) in test_compress() argument
106 Byte *compr, *uncompr; in test_compress()
115 strcpy((char*)uncompr, "garbage");
117 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
120 if (strcmp((char*)uncompr, hello)) {
124 printf("uncompress(): %s\n", (char *)uncompr);
131 void test_gzio(fname, uncompr, uncomprLen) in test_gzio() argument
133 Byte *uncompr;
166 strcpy((char*)uncompr, "garbage");
168 if (gzread(file, uncompr, (unsigned)uncomprLen) != len) {
172 if (strcmp((char*)uncompr, hello)) {
173 fprintf(stderr, "bad gzread: %s\n", (char*)uncompr);
176 printf("gzread(): %s\n", (char*)uncompr);
196 gzgets(file, (char*)uncompr, (int)uncomprLen);
197 if (strlen((char*)uncompr) != 7) { /* " hello!" */
201 if (strcmp((char*)uncompr, hello + 6)) {
205 printf("gzgets() after gzseek: %s\n", (char*)uncompr);
255 void test_inflate(compr, comprLen, uncompr, uncomprLen) in test_inflate() argument
256 Byte *compr, *uncompr; in test_inflate()
262 strcpy((char*)uncompr, "garbage");
270 d_stream.next_out = uncompr;
285 if (strcmp((char*)uncompr, hello)) {
289 printf("inflate(): %s\n", (char *)uncompr);
296 void test_large_deflate(compr, comprLen, uncompr, uncomprLen) in test_large_deflate() argument
297 Byte *compr, *uncompr; in test_large_deflate()
316 c_stream.next_in = uncompr;
334 c_stream.next_in = uncompr;
351 void test_large_inflate(compr, comprLen, uncompr, uncomprLen) in test_large_inflate() argument
352 Byte *compr, *uncompr; in test_large_inflate()
358 strcpy((char*)uncompr, "garbage");
371 d_stream.next_out = uncompr; /* discard the output */
430 void test_sync(compr, comprLen, uncompr, uncomprLen) in test_sync() argument
431 Byte *compr, *uncompr; in test_sync()
437 strcpy((char*)uncompr, "garbage");
449 d_stream.next_out = uncompr;
468 printf("after inflateSync(): hel%s\n", (char *)uncompr);
511 void test_dict_inflate(compr, comprLen, uncompr, uncomprLen) in test_dict_inflate() argument
512 Byte *compr, *uncompr; in test_dict_inflate()
518 strcpy((char*)uncompr, "garbage");
530 d_stream.next_out = uncompr;
550 if (strcmp((char*)uncompr, hello)) {
554 printf("inflate with dictionary: %s\n", (char *)uncompr);
566 Byte *compr, *uncompr; local
583 uncompr = (Byte*)calloc((uInt)uncomprLen, 1);
587 if (compr == Z_NULL || uncompr == Z_NULL) {
595 test_compress(compr, comprLen, uncompr, uncomprLen);
598 uncompr, uncomprLen);
602 test_inflate(compr, comprLen, uncompr, uncomprLen);
604 test_large_deflate(compr, comprLen, uncompr, uncomprLen);
605 test_large_inflate(compr, comprLen, uncompr, uncomprLen);
608 test_sync(compr, comprLen, uncompr, uncomprLen);
612 test_dict_inflate(compr, comprLen, uncompr, uncomprLen);
615 free(uncompr);