Lines Matching defs:d_stream
204 z_stream d_stream; /* decompression stream */
208 d_stream.zalloc = zalloc;
209 d_stream.zfree = zfree;
210 d_stream.opaque = (voidpf)0;
212 d_stream.next_in = compr;
213 d_stream.avail_in = 0;
214 d_stream.next_out = uncompr;
216 err = inflateInit(&d_stream);
219 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
220 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
221 err = inflate(&d_stream, Z_NO_FLUSH);
226 err = inflateEnd(&d_stream);
296 z_stream d_stream; /* decompression stream */
300 d_stream.zalloc = zalloc;
301 d_stream.zfree = zfree;
302 d_stream.opaque = (voidpf)0;
304 d_stream.next_in = compr;
305 d_stream.avail_in = (uInt)comprLen;
307 err = inflateInit(&d_stream);
311 d_stream.next_out = uncompr; /* discard the output */
312 d_stream.avail_out = (uInt)uncomprLen;
313 err = inflate(&d_stream, Z_NO_FLUSH);
318 err = inflateEnd(&d_stream);
321 if (d_stream.total_out != 2*uncomprLen + uncomprLen/2) {
322 fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out);
370 z_stream d_stream; /* decompression stream */
374 d_stream.zalloc = zalloc;
375 d_stream.zfree = zfree;
376 d_stream.opaque = (voidpf)0;
378 d_stream.next_in = compr;
379 d_stream.avail_in = 2; /* just read the zlib header */
381 err = inflateInit(&d_stream);
384 d_stream.next_out = uncompr;
385 d_stream.avail_out = (uInt)uncomprLen;
387 err = inflate(&d_stream, Z_NO_FLUSH);
390 d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
391 err = inflateSync(&d_stream); /* but skip the damaged part */
394 err = inflate(&d_stream, Z_FINISH);
399 err = inflateEnd(&d_stream);
445 z_stream d_stream; /* decompression stream */
449 d_stream.zalloc = zalloc;
450 d_stream.zfree = zfree;
451 d_stream.opaque = (voidpf)0;
453 d_stream.next_in = compr;
454 d_stream.avail_in = (uInt)comprLen;
456 err = inflateInit(&d_stream);
459 d_stream.next_out = uncompr;
460 d_stream.avail_out = (uInt)uncomprLen;
463 err = inflate(&d_stream, Z_NO_FLUSH);
466 if (d_stream.adler != dictId) {
470 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
476 err = inflateEnd(&d_stream);