Lines Matching refs:d_stream
206 z_stream d_stream; /* decompression stream */
210 d_stream.zalloc = (alloc_func)0;
211 d_stream.zfree = (free_func)0;
212 d_stream.opaque = (voidpf)0;
214 d_stream.next_in = compr;
215 d_stream.avail_in = 0;
216 d_stream.next_out = uncompr;
218 err = inflateInit(&d_stream);
221 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
222 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
223 err = inflate(&d_stream, Z_NO_FLUSH);
228 err = inflateEnd(&d_stream);
302 z_stream d_stream; /* decompression stream */
306 d_stream.zalloc = (alloc_func)0;
307 d_stream.zfree = (free_func)0;
308 d_stream.opaque = (voidpf)0;
310 d_stream.next_in = compr;
311 d_stream.avail_in = (uInt)comprLen;
313 err = inflateInit(&d_stream);
317 d_stream.next_out = uncompr; /* discard the output */
318 d_stream.avail_out = (uInt)uncomprLen;
319 err = inflate(&d_stream, Z_NO_FLUSH);
324 err = inflateEnd(&d_stream);
327 if (d_stream.total_out != 2*uncomprLen + comprLen/2) {
328 fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out);
381 z_stream d_stream; /* decompression stream */
385 d_stream.zalloc = (alloc_func)0;
386 d_stream.zfree = (free_func)0;
387 d_stream.opaque = (voidpf)0;
389 d_stream.next_in = compr;
390 d_stream.avail_in = 2; /* just read the zlib header */
392 err = inflateInit(&d_stream);
395 d_stream.next_out = uncompr;
396 d_stream.avail_out = (uInt)uncomprLen;
398 inflate(&d_stream, Z_NO_FLUSH);
401 d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
402 err = inflateSync(&d_stream); /* but skip the damaged part */
405 err = inflate(&d_stream, Z_FINISH);
411 err = inflateEnd(&d_stream);
462 z_stream d_stream; /* decompression stream */
466 d_stream.zalloc = (alloc_func)0;
467 d_stream.zfree = (free_func)0;
468 d_stream.opaque = (voidpf)0;
470 d_stream.next_in = compr;
471 d_stream.avail_in = (uInt)comprLen;
473 err = inflateInit(&d_stream);
476 d_stream.next_out = uncompr;
477 d_stream.avail_out = (uInt)uncomprLen;
480 err = inflate(&d_stream, Z_NO_FLUSH);
483 if (d_stream.adler != dictId) {
487 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
493 err = inflateEnd(&d_stream);