Lines Matching defs:strm

51    If strm->avail_in != 0, then the current data is moved to the beginning of
58 z_streamp strm = &(state->strm);
63 if (strm->avail_in) { /* copy what's there to the start */
65 unsigned const char *q = strm->next_in;
66 unsigned n = strm->avail_in;
71 if (gz_load(state, state->in + strm->avail_in,
72 state->size - strm->avail_in, &got) == -1)
74 strm->avail_in += got;
75 strm->next_in = state->in;
92 z_streamp strm = &(state->strm);
110 state->strm.zalloc = Z_NULL;
111 state->strm.zfree = Z_NULL;
112 state->strm.opaque = Z_NULL;
113 state->strm.avail_in = 0;
114 state->strm.next_in = Z_NULL;
115 if (inflateInit2(&(state->strm), 15 + 16) != Z_OK) { /* gunzip */
125 if (strm->avail_in < 2) {
128 if (strm->avail_in == 0)
139 if (strm->avail_in > 1 &&
140 strm->next_in[0] == 31 && strm->next_in[1] == 139) {
141 inflateReset(strm);
150 strm->avail_in = 0;
160 if (strm->avail_in) {
161 memcpy(state->x.next, strm->next_in, strm->avail_in);
162 state->x.have = strm->avail_in;
163 strm->avail_in = 0;
180 z_streamp strm = &(state->strm);
183 had = strm->avail_out;
186 if (strm->avail_in == 0 && gz_avail(state) == -1)
188 if (strm->avail_in == 0) {
194 ret = inflate(strm, Z_NO_FLUSH);
206 strm->msg == NULL ? "compressed data error" : strm->msg);
209 } while (strm->avail_out && ret != Z_STREAM_END);
212 state->x.have = had - strm->avail_out;
213 state->x.next = strm->next_out - state->x.have;
232 z_streamp strm = &(state->strm);
249 strm->avail_out = state->size << 1;
250 strm->next_out = state->out;
254 } while (state->x.have == 0 && (!state->eof || strm->avail_in));
278 else if (state->eof && state->strm.avail_in == 0)
298 z_streamp strm;
304 strm = &(state->strm);
341 else if (state->eof && strm->avail_in == 0) {
365 strm->avail_out = len;
366 strm->next_out = (unsigned char *)buf;
587 inflateEnd(&(state->strm));