Lines Matching refs:d_stream

260     z_stream d_stream; /* decompression stream */  local
264 d_stream.zalloc = zalloc;
265 d_stream.zfree = zfree;
266 d_stream.opaque = (voidpf)0;
268 d_stream.next_in = compr;
269 d_stream.avail_in = 0;
270 d_stream.next_out = uncompr;
272 err = inflateInit(&d_stream);
275 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
276 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
277 err = inflate(&d_stream, Z_NO_FLUSH);
282 err = inflateEnd(&d_stream);
356 z_stream d_stream; /* decompression stream */ local
360 d_stream.zalloc = zalloc;
361 d_stream.zfree = zfree;
362 d_stream.opaque = (voidpf)0;
364 d_stream.next_in = compr;
365 d_stream.avail_in = (uInt)comprLen;
367 err = inflateInit(&d_stream);
371 d_stream.next_out = uncompr; /* discard the output */
372 d_stream.avail_out = (uInt)uncomprLen;
373 err = inflate(&d_stream, Z_NO_FLUSH);
378 err = inflateEnd(&d_stream);
381 if (d_stream.total_out != 2*uncomprLen + comprLen/2) {
382 fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out);
435 z_stream d_stream; /* decompression stream */ local
439 d_stream.zalloc = zalloc;
440 d_stream.zfree = zfree;
441 d_stream.opaque = (voidpf)0;
443 d_stream.next_in = compr;
444 d_stream.avail_in = 2; /* just read the zlib header */
446 err = inflateInit(&d_stream);
449 d_stream.next_out = uncompr;
450 d_stream.avail_out = (uInt)uncomprLen;
452 inflate(&d_stream, Z_NO_FLUSH);
455 d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
456 err = inflateSync(&d_stream); /* but skip the damaged part */
459 err = inflate(&d_stream, Z_FINISH);
465 err = inflateEnd(&d_stream);
516 z_stream d_stream; /* decompression stream */ local
520 d_stream.zalloc = zalloc;
521 d_stream.zfree = zfree;
522 d_stream.opaque = (voidpf)0;
524 d_stream.next_in = compr;
525 d_stream.avail_in = (uInt)comprLen;
527 err = inflateInit(&d_stream);
530 d_stream.next_out = uncompr;
531 d_stream.avail_out = (uInt)uncomprLen;
534 err = inflate(&d_stream, Z_NO_FLUSH);
537 if (d_stream.adler != dictId) {
541 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
547 err = inflateEnd(&d_stream);