Lines Matching refs:d_stream
243 z_stream d_stream; /* decompression stream */
247 d_stream.zalloc = zalloc;
248 d_stream.zfree = zfree;
249 d_stream.opaque = (voidpf)0;
251 d_stream.next_in = compr;
252 d_stream.avail_in = 0;
253 d_stream.next_out = uncompr;
255 err = inflateInit(&d_stream);
258 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
259 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
260 err = inflate(&d_stream, Z_NO_FLUSH);
265 err = inflateEnd(&d_stream);
339 z_stream d_stream; /* decompression stream */
343 d_stream.zalloc = zalloc;
344 d_stream.zfree = zfree;
345 d_stream.opaque = (voidpf)0;
347 d_stream.next_in = compr;
348 d_stream.avail_in = (uInt)comprLen;
350 err = inflateInit(&d_stream);
354 d_stream.next_out = uncompr; /* discard the output */
355 d_stream.avail_out = (uInt)uncomprLen;
356 err = inflate(&d_stream, Z_NO_FLUSH);
361 err = inflateEnd(&d_stream);
364 if (d_stream.total_out != 2*uncomprLen + comprLen/2) {
365 fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out);
418 z_stream d_stream; /* decompression stream */
422 d_stream.zalloc = zalloc;
423 d_stream.zfree = zfree;
424 d_stream.opaque = (voidpf)0;
426 d_stream.next_in = compr;
427 d_stream.avail_in = 2; /* just read the zlib header */
429 err = inflateInit(&d_stream);
432 d_stream.next_out = uncompr;
433 d_stream.avail_out = (uInt)uncomprLen;
435 inflate(&d_stream, Z_NO_FLUSH);
438 d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
439 err = inflateSync(&d_stream); /* but skip the damaged part */
442 err = inflate(&d_stream, Z_FINISH);
448 err = inflateEnd(&d_stream);
499 z_stream d_stream; /* decompression stream */
503 d_stream.zalloc = zalloc;
504 d_stream.zfree = zfree;
505 d_stream.opaque = (voidpf)0;
507 d_stream.next_in = compr;
508 d_stream.avail_in = (uInt)comprLen;
510 err = inflateInit(&d_stream);
513 d_stream.next_out = uncompr;
514 d_stream.avail_out = (uInt)uncomprLen;
517 err = inflate(&d_stream, Z_NO_FLUSH);
520 if (d_stream.adler != dictId) {
524 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
530 err = inflateEnd(&d_stream);