Lines Matching refs:uncompr

38                             Byte *uncompr, uLong uncomprLen));
40 Byte *uncompr, uLong uncomprLen));
43 Byte *uncompr, uLong uncomprLen));
45 Byte *uncompr, uLong uncomprLen));
47 Byte *uncompr, uLong uncomprLen));
50 Byte *uncompr, uLong uncomprLen));
53 Byte *uncompr, uLong uncomprLen));
59 void test_compress(compr, comprLen, uncompr, uncomprLen) in test_compress() argument
60 Byte *compr, *uncompr; in test_compress()
69 strcpy((char*)uncompr, "garbage");
71 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
74 if (strcmp((char*)uncompr, hello)) {
78 printf("uncompress(): %s\n", (char *)uncompr);
85 void test_gzio(fname, uncompr, uncomprLen) in test_gzio() argument
87 Byte *uncompr;
120 strcpy((char*)uncompr, "garbage");
122 if (gzread(file, uncompr, (unsigned)uncomprLen) != len) {
126 if (strcmp((char*)uncompr, hello)) {
127 fprintf(stderr, "bad gzread: %s\n", (char*)uncompr);
130 printf("gzread(): %s\n", (char*)uncompr);
150 gzgets(file, (char*)uncompr, (int)uncomprLen);
151 if (strlen((char*)uncompr) != 7) { /* " hello!" */
155 if (strcmp((char*)uncompr, hello + 6)) {
159 printf("gzgets() after gzseek: %s\n", (char*)uncompr);
207 void test_inflate(compr, comprLen, uncompr, uncomprLen) in test_inflate() argument
208 Byte *compr, *uncompr; in test_inflate()
214 strcpy((char*)uncompr, "garbage");
222 d_stream.next_out = uncompr;
237 if (strcmp((char*)uncompr, hello)) {
241 printf("inflate(): %s\n", (char *)uncompr);
248 void test_large_deflate(compr, comprLen, uncompr, uncomprLen) in test_large_deflate() argument
249 Byte *compr, *uncompr; in test_large_deflate()
268 c_stream.next_in = uncompr;
286 c_stream.next_in = uncompr;
303 void test_large_inflate(compr, comprLen, uncompr, uncomprLen) in test_large_inflate() argument
304 Byte *compr, *uncompr; in test_large_inflate()
310 strcpy((char*)uncompr, "garbage");
323 d_stream.next_out = uncompr; /* discard the output */
382 void test_sync(compr, comprLen, uncompr, uncomprLen) in test_sync() argument
383 Byte *compr, *uncompr; in test_sync()
389 strcpy((char*)uncompr, "garbage");
401 d_stream.next_out = uncompr;
420 printf("after inflateSync(): hel%s\n", (char *)uncompr);
463 void test_dict_inflate(compr, comprLen, uncompr, uncomprLen) in test_dict_inflate() argument
464 Byte *compr, *uncompr; in test_dict_inflate()
470 strcpy((char*)uncompr, "garbage");
482 d_stream.next_out = uncompr;
502 if (strcmp((char*)uncompr, hello)) {
506 printf("inflate with dictionary: %s\n", (char *)uncompr);
518 Byte *compr, *uncompr; local
535 uncompr = (Byte*)calloc((uInt)uncomprLen, 1);
539 if (compr == Z_NULL || uncompr == Z_NULL) {
543 test_compress(compr, comprLen, uncompr, uncomprLen);
546 uncompr, uncomprLen);
549 test_inflate(compr, comprLen, uncompr, uncomprLen);
551 test_large_deflate(compr, comprLen, uncompr, uncomprLen);
552 test_large_inflate(compr, comprLen, uncompr, uncomprLen);
555 test_sync(compr, comprLen, uncompr, uncomprLen);
559 test_dict_inflate(compr, comprLen, uncompr, uncomprLen);
562 free(uncompr);