Lines Matching refs:d_stream

212     z_stream d_stream; /* decompression stream */
216 d_stream.zalloc = (alloc_func)0;
217 d_stream.zfree = (free_func)0;
218 d_stream.opaque = (voidpf)0;
220 d_stream.next_in = compr;
221 d_stream.avail_in = 0;
222 d_stream.next_out = uncompr;
224 err = inflateInit(&d_stream);
227 while (d_stream.total_out < uncomprLen && d_stream.total_in < comprLen) {
228 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
229 err = inflate(&d_stream, Z_NO_FLUSH);
234 err = inflateEnd(&d_stream);
308 z_stream d_stream; /* decompression stream */
312 d_stream.zalloc = (alloc_func)0;
313 d_stream.zfree = (free_func)0;
314 d_stream.opaque = (voidpf)0;
316 d_stream.next_in = compr;
317 d_stream.avail_in = (uInt)comprLen;
319 err = inflateInit(&d_stream);
323 d_stream.next_out = uncompr; /* discard the output */
324 d_stream.avail_out = (uInt)uncomprLen;
325 err = inflate(&d_stream, Z_NO_FLUSH);
330 err = inflateEnd(&d_stream);
333 if (d_stream.total_out != 2*uncomprLen + comprLen/2) {
334 fprintf(stderr, "bad large inflate: %ld\n", d_stream.total_out);
387 z_stream d_stream; /* decompression stream */
391 d_stream.zalloc = (alloc_func)0;
392 d_stream.zfree = (free_func)0;
393 d_stream.opaque = (voidpf)0;
395 d_stream.next_in = compr;
396 d_stream.avail_in = 2; /* just read the zlib header */
398 err = inflateInit(&d_stream);
401 d_stream.next_out = uncompr;
402 d_stream.avail_out = (uInt)uncomprLen;
404 inflate(&d_stream, Z_NO_FLUSH);
407 d_stream.avail_in = (uInt)comprLen-2; /* read all compressed data */
408 err = inflateSync(&d_stream); /* but skip the damaged part */
411 err = inflate(&d_stream, Z_FINISH);
417 err = inflateEnd(&d_stream);
468 z_stream d_stream; /* decompression stream */
472 d_stream.zalloc = (alloc_func)0;
473 d_stream.zfree = (free_func)0;
474 d_stream.opaque = (voidpf)0;
476 d_stream.next_in = compr;
477 d_stream.avail_in = (uInt)comprLen;
479 err = inflateInit(&d_stream);
482 d_stream.next_out = uncompr;
483 d_stream.avail_out = (uInt)uncomprLen;
486 err = inflate(&d_stream, Z_NO_FLUSH);
489 if (d_stream.adler != dictId) {
493 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
499 err = inflateEnd(&d_stream);