Lines Matching defs:d_stream

213     z_stream d_stream; /* decompression stream */
217 d_stream.zalloc = zalloc;
218 d_stream.zfree = zfree;
219 d_stream.opaque = (voidpf)0;
221 d_stream.next_in = compr;
222 d_stream.avail_in = 0;
223 d_stream.next_out = uncompr;
225 err = inflateInit(&d_stream);
228 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
229 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
230 err = inflate(&d_stream, Z_NO_FLUSH);
238 err = inflateEnd(&d_stream);
310 z_stream d_stream; /* decompression stream */
314 d_stream.zalloc = zalloc;
315 d_stream.zfree = zfree;
316 d_stream.opaque = (voidpf)0;
318 d_stream.next_in = compr;
319 d_stream.avail_in = (uInt)comprLen;
321 err = inflateInit(&d_stream);
325 d_stream.next_out = uncompr; /* discard the output */
326 d_stream.avail_out = (uInt)uncomprLen;
327 err = inflate(&d_stream, Z_NO_FLUSH);
335 err = inflateEnd(&d_stream);
338 if (d_stream.total_out != 2*uncomprLen + uncomprLen/2) {
339 fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out);
389 z_stream d_stream; /* decompression stream */
393 d_stream.zalloc = zalloc;
394 d_stream.zfree = zfree;
395 d_stream.opaque = (voidpf)0;
397 d_stream.next_in = compr;
398 d_stream.avail_in = 2; /* just read the zlib header */
400 err = inflateInit(&d_stream);
403 d_stream.next_out = uncompr;
404 d_stream.avail_out = (uInt)uncomprLen;
406 err = inflate(&d_stream, Z_NO_FLUSH);
409 d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
410 err = inflateSync(&d_stream); /* but skip the damaged part */
413 err = inflate(&d_stream, Z_FINISH);
418 err = inflateEnd(&d_stream);
466 z_stream d_stream; /* decompression stream */
470 d_stream.zalloc = zalloc;
471 d_stream.zfree = zfree;
472 d_stream.opaque = (voidpf)0;
474 d_stream.next_in = compr;
475 d_stream.avail_in = (uInt)comprLen;
477 err = inflateInit(&d_stream);
480 d_stream.next_out = uncompr;
481 d_stream.avail_out = (uInt)uncomprLen;
484 err = inflate(&d_stream, Z_NO_FLUSH);
490 if (d_stream.adler != dictId) {
494 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
500 err = inflateEnd(&d_stream);