Lines Matching refs:strm

150     z_stream strm;  in build_index()  local
155 strm.zalloc = Z_NULL; in build_index()
156 strm.zfree = Z_NULL; in build_index()
157 strm.opaque = Z_NULL; in build_index()
158 strm.avail_in = 0; in build_index()
159 strm.next_in = Z_NULL; in build_index()
160 ret = inflateInit2(&strm, 47); /* automatic zlib or gzip decoding */ in build_index()
169 strm.avail_out = 0; in build_index()
172 strm.avail_in = fread(input, 1, CHUNK, in); in build_index()
177 if (strm.avail_in == 0) { in build_index()
181 strm.next_in = input; in build_index()
186 if (strm.avail_out == 0) { in build_index()
187 strm.avail_out = WINSIZE; in build_index()
188 strm.next_out = window; in build_index()
193 totin += strm.avail_in; in build_index()
194 totout += strm.avail_out; in build_index()
195 ret = inflate(&strm, Z_BLOCK); /* return at end of block */ in build_index()
196 totin -= strm.avail_in; in build_index()
197 totout -= strm.avail_out; in build_index()
214 if ((strm.data_type & 128) && !(strm.data_type & 64) && in build_index()
216 index = addpoint(index, strm.data_type & 7, totin, in build_index()
217 totout, strm.avail_out, window); in build_index()
224 } while (strm.avail_in != 0); in build_index()
228 (void)inflateEnd(&strm); in build_index()
236 (void)inflateEnd(&strm); in build_index()
253 z_stream strm; in extract() local
269 strm.zalloc = Z_NULL; in extract()
270 strm.zfree = Z_NULL; in extract()
271 strm.opaque = Z_NULL; in extract()
272 strm.avail_in = 0; in extract()
273 strm.next_in = Z_NULL; in extract()
274 ret = inflateInit2(&strm, -15); /* raw inflate */ in extract()
286 (void)inflatePrime(&strm, here->bits, ret >> (8 - here->bits)); in extract()
288 (void)inflateSetDictionary(&strm, here->window, WINSIZE); in extract()
292 strm.avail_in = 0; in extract()
297 strm.avail_out = len; in extract()
298 strm.next_out = buf; in extract()
302 strm.avail_out = WINSIZE; in extract()
303 strm.next_out = discard; in extract()
307 strm.avail_out = (unsigned)offset; in extract()
308 strm.next_out = discard; in extract()
314 if (strm.avail_in == 0) { in extract()
315 strm.avail_in = fread(input, 1, CHUNK, in); in extract()
320 if (strm.avail_in == 0) { in extract()
324 strm.next_in = input; in extract()
326 ret = inflate(&strm, Z_NO_FLUSH); /* normal inflate */ in extract()
333 } while (strm.avail_out != 0); in extract()
343 ret = skip ? 0 : len - strm.avail_out; in extract()
347 (void)inflateEnd(&strm); in extract()