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

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)
106 Byte *compr, *uncompr;
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)
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)
256 Byte *compr, *uncompr;
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)
297 Byte *compr, *uncompr;
313 /* At this point, uncompr is still mostly zeroes, so it should compress
316 c_stream.next_in = uncompr;
334 c_stream.next_in = uncompr;
351 void test_large_inflate(compr, comprLen, uncompr, uncomprLen)
352 Byte *compr, *uncompr;
358 strcpy((char*)uncompr, "garbage");
371 d_stream.next_out = uncompr; /* discard the output */
430 void test_sync(compr, comprLen, uncompr, uncomprLen)
431 Byte *compr, *uncompr;
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)
512 Byte *compr, *uncompr;
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;
583 uncompr = (Byte*)calloc((uInt)uncomprLen, 1);
584 /* compr and uncompr are cleared to avoid reading uninitialized
585 * data and to ensure that uncompr compresses well.
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);