Lines Matching defs:strm
171 z_stream strm;
204 gz->strm.zalloc = myalloc;
205 gz->strm.zfree = myfree;
206 gz->strm.opaque = Z_NULL;
208 ret = deflateInit2(&(gz->strm), -1, 8, 15 + 16, 8, 0);
210 gz->strm.next_in = 0;
211 gz->strm.avail_in = Z_NULL;
212 ret = inflateInit2(&(gz->strm), 15 + 16);
221 gz->write ? deflateEnd(&(gz->strm)) : inflateEnd(&(gz->strm));
237 z_stream *strm;
242 strm = &(gz->strm);
243 strm->next_in = (void *)buf;
244 strm->avail_in = len;
246 strm->next_out = out;
247 strm->avail_out = BUFLEN;
248 (void)deflate(strm, Z_NO_FLUSH);
249 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
250 } while (strm->avail_out == 0);
264 z_stream *strm;
270 strm = &(gz->strm);
271 strm->next_out = (void *)buf;
272 strm->avail_out = len;
277 strm->next_in = in;
278 strm->avail_in = 1;
279 ret = inflate(strm, Z_NO_FLUSH);
282 gz->msg = strm->msg;
286 inflateReset(strm);
287 } while (strm->avail_out);
288 return len - strm->avail_out;
296 z_stream *strm;
301 strm = &(gz->strm);
303 strm->next_in = Z_NULL;
304 strm->avail_in = 0;
306 strm->next_out = out;
307 strm->avail_out = BUFLEN;
308 (void)deflate(strm, Z_FINISH);
309 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
310 } while (strm->avail_out == 0);
311 deflateEnd(strm);
314 inflateEnd(strm);