Home | History | Annotate | Download | only in examples

Lines Matching refs:strm

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