Lines Matching refs:d_stream
268 z_stream d_stream; /* decompression stream */ local
272 d_stream.zalloc = zalloc;
273 d_stream.zfree = zfree;
274 d_stream.opaque = (voidpf)0;
276 d_stream.next_in = compr;
277 d_stream.avail_in = 0;
278 d_stream.next_out = uncompr;
280 err = inflateInit(&d_stream);
283 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
284 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
285 err = inflate(&d_stream, Z_NO_FLUSH);
290 err = inflateEnd(&d_stream);
364 z_stream d_stream; /* decompression stream */ local
368 d_stream.zalloc = zalloc;
369 d_stream.zfree = zfree;
370 d_stream.opaque = (voidpf)0;
372 d_stream.next_in = compr;
373 d_stream.avail_in = (uInt)comprLen;
375 err = inflateInit(&d_stream);
379 d_stream.next_out = uncompr; /* discard the output */
380 d_stream.avail_out = (uInt)uncomprLen;
381 err = inflate(&d_stream, Z_NO_FLUSH);
386 err = inflateEnd(&d_stream);
389 if (d_stream.total_out != 2*uncomprLen + comprLen/2) {
390 fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out);
443 z_stream d_stream; /* decompression stream */ local
447 d_stream.zalloc = zalloc;
448 d_stream.zfree = zfree;
449 d_stream.opaque = (voidpf)0;
451 d_stream.next_in = compr;
452 d_stream.avail_in = 2; /* just read the zlib header */
454 err = inflateInit(&d_stream);
457 d_stream.next_out = uncompr;
458 d_stream.avail_out = (uInt)uncomprLen;
460 inflate(&d_stream, Z_NO_FLUSH);
463 d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
464 err = inflateSync(&d_stream); /* but skip the damaged part */
467 err = inflate(&d_stream, Z_FINISH);
473 err = inflateEnd(&d_stream);
524 z_stream d_stream; /* decompression stream */ local
528 d_stream.zalloc = zalloc;
529 d_stream.zfree = zfree;
530 d_stream.opaque = (voidpf)0;
532 d_stream.next_in = compr;
533 d_stream.avail_in = (uInt)comprLen;
535 err = inflateInit(&d_stream);
538 d_stream.next_out = uncompr;
539 d_stream.avail_out = (uInt)uncomprLen;
542 err = inflate(&d_stream, Z_NO_FLUSH);
545 if (d_stream.adler != dictId) {
549 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
555 err = inflateEnd(&d_stream);