Home | History | Annotate | Download | only in zlib

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)
60 Byte *compr, *uncompr;
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)
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)
208 Byte *compr, *uncompr;
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)
249 Byte *compr, *uncompr;
265 /* At this point, uncompr is still mostly zeroes, so it should compress
268 c_stream.next_in = uncompr;
286 c_stream.next_in = uncompr;
303 void test_large_inflate(compr, comprLen, uncompr, uncomprLen)
304 Byte *compr, *uncompr;
310 strcpy((char*)uncompr, "garbage");
323 d_stream.next_out = uncompr; /* discard the output */
382 void test_sync(compr, comprLen, uncompr, uncomprLen)
383 Byte *compr, *uncompr;
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)
464 Byte *compr, *uncompr;
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;
535 uncompr = (Byte*)calloc((uInt)uncomprLen, 1);
536 /* compr and uncompr are cleared to avoid reading uninitialized
537 * data and to ensure that uncompr compresses well.
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);