Lines Matching defs:strm

22     z_streamp strm = &(state->strm);
42 strm->zalloc = Z_NULL;
43 strm->zfree = Z_NULL;
44 strm->opaque = Z_NULL;
45 ret = deflateInit2(strm, state->level, Z_DEFLATED,
60 strm->avail_out = state->size;
61 strm->next_out = state->out;
62 state->x.next = strm->next_out;
79 z_streamp strm = &(state->strm);
87 got = write(state->fd, strm->next_in, strm->avail_in);
88 if (got < 0 || (unsigned)got != strm->avail_in) {
92 strm->avail_in = 0;
101 if (strm->avail_out == 0 || (flush != Z_NO_FLUSH &&
103 have = (unsigned)(strm->next_out - state->x.next);
109 if (strm->avail_out == 0) {
110 strm->avail_out = state->size;
111 strm->next_out = state->out;
113 state->x.next = strm->next_out;
117 have = strm->avail_out;
118 ret = deflate(strm, flush);
124 have -= strm->avail_out;
129 deflateReset(strm);
142 z_streamp strm = &(state->strm);
145 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
157 strm->avail_in = n;
158 strm->next_in = state->in;
175 z_streamp strm;
181 strm = &(state->strm);
215 if (strm->avail_in == 0)
216 strm->next_in = state->in;
217 have = (unsigned)((strm->next_in + strm->avail_in) - state->in);
222 strm->avail_in += copy;
232 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
236 strm->avail_in = len;
237 strm->next_in = (z_const Bytef *)buf;
255 z_streamp strm;
261 strm = &(state->strm);
277 if (strm->avail_in == 0)
278 strm->next_in = state->in;
279 have = (unsigned)((strm->next_in + strm->avail_in) - state->in);
282 strm->avail_in++;
317 z_streamp strm;
323 strm = &(state->strm);
341 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
369 strm->avail_in = (unsigned)len;
370 strm->next_in = state->in;
398 z_streamp strm;
404 strm = &(state->strm);
426 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
459 strm->avail_in = (unsigned)len;
460 strm->next_in = state->in;
506 z_streamp strm;
512 strm = &(state->strm);
532 if (strm->avail_in && gz_comp(state, Z_PARTIAL_FLUSH) == -1)
534 deflateParams(strm, level, strategy);
569 (void)deflateEnd(&(state->strm));