Lines Matching defs:strm
253 local void zpull(z_streamp strm, bin *in)
259 strm->avail_in = in->left;
260 strm->next_in = in->next;
288 z_stream strm; /* zlib inflate stream */
299 strm.zalloc = Z_NULL;
300 strm.zfree = Z_NULL;
301 strm.opaque = Z_NULL;
302 strm.avail_in = 0;
303 strm.next_in = Z_NULL;
304 ret = inflateInit2(&strm, -15);
310 zpull(&strm, in);
311 start = strm.next_in;
315 strm.avail_out = 0;
318 if (strm.avail_in == 0 && strm.avail_out != 0) {
319 fwrite(start, 1, strm.next_in - start, out);
322 zpull(&strm, in);
326 strm.avail_out = CHUNK;
327 strm.next_out = junk;
328 ret = inflate(&strm, Z_BLOCK);
337 len += CHUNK - strm.avail_out;
340 if (strm.data_type & 128) {
346 pos = strm.data_type & 7;
352 last = strm.next_in[-1] & pos;
354 strm.next_in[-1] &= ~pos;
358 if (strm.avail_in == 0) {
360 fwrite(start, 1, strm.next_in - start, out);
363 zpull(&strm, in);
365 last = strm.next_in[0] & 1;
367 strm.next_in[0] &= ~1;
373 in->left = strm.avail_in;
374 in->next = strm.next_in;
377 pos = strm.data_type & 7;
414 inflateEnd(&strm);