Lines Matching refs:uncompr
60 static void test_compress(Byte *compr, uLong comprLen, Byte *uncompr, in test_compress() argument
68 strcpy((char*)uncompr, "garbage"); in test_compress()
70 err = uncompress(uncompr, &uncomprLen, compr, comprLen); in test_compress()
73 if (strcmp((char*)uncompr, hello)) { in test_compress()
77 printf("uncompress(): %s\n", (char *)uncompr); in test_compress()
84 static void test_gzio(const char *fname, Byte *uncompr, uLong uncomprLen) { in test_gzio() argument
115 strcpy((char*)uncompr, "garbage"); in test_gzio()
117 if (gzread(file, uncompr, (unsigned)uncomprLen) != len) { in test_gzio()
121 if (strcmp((char*)uncompr, hello)) { in test_gzio()
122 fprintf(stderr, "bad gzread: %s\n", (char*)uncompr); in test_gzio()
125 printf("gzread(): %s\n", (char*)uncompr); in test_gzio()
145 gzgets(file, (char*)uncompr, (int)uncomprLen); in test_gzio()
146 if (strlen((char*)uncompr) != 7) { /* " hello!" */ in test_gzio()
150 if (strcmp((char*)uncompr, hello + 6)) { in test_gzio()
154 printf("gzgets() after gzseek: %s\n", (char*)uncompr); in test_gzio()
201 static void test_inflate(Byte *compr, uLong comprLen, Byte *uncompr, in test_inflate() argument
206 strcpy((char*)uncompr, "garbage"); in test_inflate()
214 d_stream.next_out = uncompr; in test_inflate()
229 if (strcmp((char*)uncompr, hello)) { in test_inflate()
233 printf("inflate(): %s\n", (char *)uncompr); in test_inflate()
240 static void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr, in test_large_deflate() argument
258 c_stream.next_in = uncompr; in test_large_deflate()
276 c_stream.next_in = uncompr; in test_large_deflate()
293 static void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr, in test_large_inflate() argument
298 strcpy((char*)uncompr, "garbage"); in test_large_inflate()
311 d_stream.next_out = uncompr; /* discard the output */ in test_large_inflate()
367 static void test_sync(Byte *compr, uLong comprLen, Byte *uncompr, in test_sync() argument
372 strcpy((char*)uncompr, "garbage"); in test_sync()
384 d_stream.next_out = uncompr; in test_sync()
402 printf("after inflateSync(): hel%s\n", (char *)uncompr); in test_sync()
442 static void test_dict_inflate(Byte *compr, uLong comprLen, Byte *uncompr, in test_dict_inflate() argument
447 strcpy((char*)uncompr, "garbage"); in test_dict_inflate()
459 d_stream.next_out = uncompr; in test_dict_inflate()
479 if (strcmp((char*)uncompr, hello)) { in test_dict_inflate()
483 printf("inflate with dictionary: %s\n", (char *)uncompr); in test_dict_inflate()
492 Byte *compr, *uncompr; in main() local
510 uncompr = (Byte*)calloc((uInt)uncomprLen, 1); in main()
514 if (compr == Z_NULL || uncompr == Z_NULL) { in main()
523 test_compress(compr, comprLen, uncompr, uncomprLen); in main()
526 uncompr, uncomprLen); in main()
530 test_inflate(compr, comprLen, uncompr, uncomprLen); in main()
532 test_large_deflate(compr, comprLen, uncompr, uncomprLen); in main()
533 test_large_inflate(compr, comprLen, uncompr, uncomprLen); in main()
536 test_sync(compr, comprLen, uncompr, uncomprLen); in main()
540 test_dict_inflate(compr, comprLen, uncompr, uncomprLen); in main()
543 free(uncompr); in main()