Lines Matching refs:strm

60         inflateEnd(&strm); \
88 z_stream strm;
89 strm.zalloc = Z_NULL;
90 strm.zfree = Z_NULL;
91 strm.opaque = Z_NULL;
92 strm.avail_in = 0;
93 strm.next_in = Z_NULL;
94 if (inflateInit2(&strm, 15 + 16) != Z_OK)
128 strm.avail_in = fread(dat, 1, CHUNK, in);
129 if (strm.avail_in == 0)
131 more = strm.avail_in == CHUNK;
132 strm.next_in = put = dat;
136 // At this point it is assured that strm.avail_in > 0.
146 strm.avail_out = CHUNK;
147 strm.next_out = scrap;
148 int ret = inflate(&strm, Z_BLOCK);
152 BYE("input invalid: %s", strm.msg);
159 unsigned got = CHUNK - strm.avail_out;
167 } while (strm.avail_out == 0 && (strm.data_type & 0x80) == 0);
169 // Since strm.avail_in was > 0 for the inflate call, some input was
170 // just consumed. It is therefore assured that put < strm.next_in.
181 if (strm.data_type & 0x80) {
183 put = strm.next_in;
194 // put..strm.next_in-1 is the compressed data that has been
198 // available, i.e., put < strm.next_in. If prev is -1, then
209 // If strm.data_type & 0xc0 is 0x80, then the last byte of
212 // also has strm.data_type & 0x1f bits of the next deflate
213 // block, in the range 0..7. If strm.data_type & 0xc0 is
215 // end of the deflate stream, followed by strm.data_type &
225 int bits = strm.data_type & 0x1f;
252 if (put == strm.next_in)
286 if (put == strm.next_in)
301 int mix = (strm.data_type & 0x80) && bits;
309 unsigned char *end = strm.next_in - mix;
332 if (strm.data_type & 0x40) {
363 else if (strm.data_type & 0x80)
372 if ((strm.data_type & 0xc0) == 0xc0) {
406 if (inflateReset(&strm) != Z_OK)
411 } while (put < strm.next_in);
416 } while (strm.avail_in > 0);
422 inflateEnd(&strm);