• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/contrib/zstd/zlibWrapper/examples/

Lines Matching refs:uncompr

61                             Byte *uncompr, uLong uncomprLen));
63 Byte *uncompr, uLong uncomprLen));
65 Byte *uncompr, uLong uncomprLen));
68 Byte *uncompr, uLong uncomprLen));
71 Byte *uncompr, uLong uncomprLen));
106 Byte *uncompr, uLong uncomprLen));
108 Byte *uncompr, uLong uncomprLen));
113 void test_compress(compr, comprLen, uncompr, uncomprLen)
114 Byte *compr, *uncompr;
123 strcpy((char*)uncompr, "garbage");
125 err = uncompress(uncompr, &uncomprLen, compr, comprLen);
128 if (strcmp((char*)uncompr, hello)) {
132 printf("uncompress(): %s\n", (char *)uncompr);
139 void test_gzio(fname, uncompr, uncomprLen)
141 Byte *uncompr;
174 strcpy((char*)uncompr, "garbage");
176 if (gzread(file, uncompr, (unsigned)uncomprLen) != len) {
180 if (strcmp((char*)uncompr, hello)) {
181 fprintf(stderr, "bad gzread: %s\n", (char*)uncompr);
184 printf("gzread(): %s\n", (char*)uncompr);
204 gzgets(file, (char*)uncompr, (int)uncomprLen);
205 if (strlen((char*)uncompr) != 7) { /* " hello!" */
209 if (strcmp((char*)uncompr, hello + 6+21)) {
213 printf("gzgets() after gzseek: %s\n", (char*)uncompr);
263 void test_inflate(compr, comprLen, uncompr, uncomprLen)
264 Byte *compr, *uncompr;
270 strcpy((char*)uncompr, "garbage");
278 d_stream.next_out = uncompr;
293 if (strcmp((char*)uncompr, hello)) {
297 printf("inflate(): %s\n", (char *)uncompr);
304 void test_large_deflate(compr, comprLen, uncompr, uncomprLen)
305 Byte *compr, *uncompr;
321 /* At this point, uncompr is still mostly zeroes, so it should compress
324 c_stream.next_in = uncompr;
342 c_stream.next_in = uncompr;
359 void test_large_inflate(compr, comprLen, uncompr, uncomprLen)
360 Byte *compr, *uncompr;
366 strcpy((char*)uncompr, "garbage");
379 d_stream.next_out = uncompr; /* discard the output */
438 void test_sync(compr, comprLen, uncompr, uncomprLen)
439 Byte *compr, *uncompr;
445 strcpy((char*)uncompr, "garbage");
457 d_stream.next_out = uncompr;
476 printf("after inflateSync(): hel%s\n", (char *)uncompr);
519 void test_dict_inflate(compr, comprLen, uncompr, uncomprLen)
520 Byte *compr, *uncompr;
526 strcpy((char*)uncompr, "garbage");
538 d_stream.next_out = uncompr;
558 if (strcmp((char*)uncompr, hello)) {
562 printf("inflate with dictionary: %s\n", (char *)uncompr);
574 Byte *compr, *uncompr;
592 uncompr = (Byte*)calloc((uInt)uncomprLen, 1);
593 /* compr and uncompr are cleared to avoid reading uninitialized
594 * data and to ensure that uncompr compresses well.
596 if (compr == Z_NULL || uncompr == Z_NULL) {
604 test_compress(compr, comprLen, uncompr, uncomprLen);
607 uncompr, uncomprLen);
611 test_inflate(compr, comprLen, uncompr, uncomprLen);
613 test_large_deflate(compr, comprLen, uncompr, uncomprLen);
614 test_large_inflate(compr, comprLen, uncompr, uncomprLen);
618 test_sync(compr, comprLen, uncompr, uncomprLen);
623 test_dict_inflate(compr, comprLen, uncompr, uncomprLen);
626 free(uncompr);