Lines Matching refs:strm
145 z_stream strm;
150 strm.zalloc = Z_NULL;
151 strm.zfree = Z_NULL;
152 strm.opaque = Z_NULL;
153 strm.avail_in = 0;
154 strm.next_in = Z_NULL;
155 ret = inflateInit2(&strm, 47); /* automatic zlib or gzip decoding */
164 strm.avail_out = 0;
167 strm.avail_in = fread(input, 1, CHUNK, in);
172 if (strm.avail_in == 0) {
176 strm.next_in = input;
181 if (strm.avail_out == 0) {
182 strm.avail_out = WINSIZE;
183 strm.next_out = window;
188 totin += strm.avail_in;
189 totout += strm.avail_out;
190 ret = inflate(&strm, Z_BLOCK); /* return at end of block */
191 totin -= strm.avail_in;
192 totout -= strm.avail_out;
209 if ((strm.data_type & 128) && !(strm.data_type & 64) &&
211 index = addpoint(index, strm.data_type & 7, totin,
212 totout, strm.avail_out, window);
219 } while (strm.avail_in != 0);
223 (void)inflateEnd(&strm);
231 (void)inflateEnd(&strm);
248 z_stream strm;
264 strm.zalloc = Z_NULL;
265 strm.zfree = Z_NULL;
266 strm.opaque = Z_NULL;
267 strm.avail_in = 0;
268 strm.next_in = Z_NULL;
269 ret = inflateInit2(&strm, -15); /* raw inflate */
281 (void)inflatePrime(&strm, here->bits, ret >> (8 - here->bits));
283 (void)inflateSetDictionary(&strm, here->window, WINSIZE);
287 strm.avail_in = 0;
292 strm.avail_out = len;
293 strm.next_out = buf;
297 strm.avail_out = WINSIZE;
298 strm.next_out = discard;
302 strm.avail_out = (unsigned)offset;
303 strm.next_out = discard;
309 if (strm.avail_in == 0) {
310 strm.avail_in = fread(input, 1, CHUNK, in);
315 if (strm.avail_in == 0) {
319 strm.next_in = input;
321 ret = inflate(&strm, Z_NO_FLUSH); /* normal inflate */
328 } while (strm.avail_out != 0);
338 ret = skip ? 0 : len - strm.avail_out;
342 (void)inflateEnd(&strm);