Lines Matching refs:strm
175 z_stream strm;
208 gz->strm.zalloc = myalloc;
209 gz->strm.zfree = myfree;
210 gz->strm.opaque = Z_NULL;
212 ret = deflateInit2(&(gz->strm), -1, 8, 15 + 16, 8, 0);
214 gz->strm.next_in = 0;
215 gz->strm.avail_in = Z_NULL;
216 ret = inflateInit2(&(gz->strm), 15 + 16);
225 gz->write ? deflateEnd(&(gz->strm)) : inflateEnd(&(gz->strm));
241 z_stream *strm;
246 strm = &(gz->strm);
247 strm->next_in = (void *)buf;
248 strm->avail_in = len;
250 strm->next_out = out;
251 strm->avail_out = BUFLEN;
252 (void)deflate(strm, Z_NO_FLUSH);
253 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
254 } while (strm->avail_out == 0);
268 z_stream *strm;
274 strm = &(gz->strm);
275 strm->next_out = (void *)buf;
276 strm->avail_out = len;
281 strm->next_in = in;
282 strm->avail_in = 1;
283 ret = inflate(strm, Z_NO_FLUSH);
286 gz->msg = strm->msg;
290 inflateReset(strm);
291 } while (strm->avail_out);
292 return len - strm->avail_out;
300 z_stream *strm;
305 strm = &(gz->strm);
307 strm->next_in = Z_NULL;
308 strm->avail_in = 0;
310 strm->next_out = out;
311 strm->avail_out = BUFLEN;
312 (void)deflate(strm, Z_FINISH);
313 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
314 } while (strm->avail_out == 0);
315 deflateEnd(strm);
318 inflateEnd(strm);