Lines Matching defs:strm
19 z_streamp strm = &(state->strm);
39 strm->zalloc = Z_NULL;
40 strm->zfree = Z_NULL;
41 strm->opaque = Z_NULL;
42 ret = deflateInit2(strm, state->level, Z_DEFLATED,
57 strm->avail_out = state->size;
58 strm->next_out = state->out;
59 state->x.next = strm->next_out;
76 z_streamp strm = &(state->strm);
84 got = write(state->fd, strm->next_in, strm->avail_in);
85 if (got < 0 || (unsigned)got != strm->avail_in) {
89 strm->avail_in = 0;
98 if (strm->avail_out == 0 || (flush != Z_NO_FLUSH &&
100 have = (unsigned)(strm->next_out - state->x.next);
106 if (strm->avail_out == 0) {
107 strm->avail_out = state->size;
108 strm->next_out = state->out;
110 state->x.next = strm->next_out;
114 have = strm->avail_out;
115 ret = deflate(strm, flush);
121 have -= strm->avail_out;
126 deflateReset(strm);
139 z_streamp strm = &(state->strm);
142 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
154 strm->avail_in = n;
155 strm->next_in = state->in;
173 z_streamp strm;
179 strm = &(state->strm);
211 if (strm->avail_in == 0)
212 strm->next_in = state->in;
213 n = state->size - strm->avail_in;
216 memcpy(strm->next_in + strm->avail_in, buf, n);
217 strm->avail_in += n;
227 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
231 strm->avail_in = len;
232 strm->next_in = (voidp)buf;
249 z_streamp strm;
255 strm = &(state->strm);
270 if (strm->avail_in < state->size) {
271 if (strm->avail_in == 0)
272 strm->next_in = state->in;
273 strm->next_in[strm->avail_in++] = c;
307 z_streamp strm;
314 strm = &(state->strm);
332 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
365 strm->avail_in = (unsigned)len;
366 strm->next_in = state->in;
383 z_streamp strm;
389 strm = &(state->strm);
411 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
443 strm->avail_in = (unsigned)len;
444 strm->next_in = state->in;
490 z_streamp strm;
496 strm = &(state->strm);
516 if (strm->avail_in && gz_comp(state, Z_PARTIAL_FLUSH) == -1)
518 deflateParams(strm, level, strategy);
552 (void)deflateEnd(&(state->strm));