Lines Matching defs:strm

48    If strm->avail_in != 0, then the current data is moved to the beginning of
55 z_streamp strm = &(state->strm);
60 if (strm->avail_in) { /* copy what's there to the start */
62 unsigned const char *q = strm->next_in;
63 unsigned n = strm->avail_in;
68 if (gz_load(state, state->in + strm->avail_in,
69 state->size - strm->avail_in, &got) == -1)
71 strm->avail_in += got;
72 strm->next_in = state->in;
89 z_streamp strm = &(state->strm);
107 state->strm.zalloc = Z_NULL;
108 state->strm.zfree = Z_NULL;
109 state->strm.opaque = Z_NULL;
110 state->strm.avail_in = 0;
111 state->strm.next_in = Z_NULL;
112 if (inflateInit2(&(state->strm), 15 + 16) != Z_OK) { /* gunzip */
122 if (strm->avail_in < 2) {
125 if (strm->avail_in == 0)
136 if (strm->avail_in > 1 &&
137 strm->next_in[0] == 31 && strm->next_in[1] == 139) {
138 inflateReset(strm);
147 strm->avail_in = 0;
157 if (strm->avail_in) {
158 memcpy(state->x.next, strm->next_in, strm->avail_in);
159 state->x.have = strm->avail_in;
160 strm->avail_in = 0;
177 z_streamp strm = &(state->strm);
180 had = strm->avail_out;
183 if (strm->avail_in == 0 && gz_avail(state) == -1)
185 if (strm->avail_in == 0) {
191 ret = inflate(strm, Z_NO_FLUSH);
203 strm->msg == NULL ? "compressed data error" : strm->msg);
206 } while (strm->avail_out && ret != Z_STREAM_END);
209 state->x.have = had - strm->avail_out;
210 state->x.next = strm->next_out - state->x.have;
229 z_streamp strm = &(state->strm);
246 strm->avail_out = state->size << 1;
247 strm->next_out = state->out;
251 } while (state->x.have == 0 && (!state->eof || strm->avail_in));
275 else if (state->eof && state->strm.avail_in == 0)
295 z_streamp strm;
301 strm = &(state->strm);
338 else if (state->eof && strm->avail_in == 0) {
362 strm->avail_out = len;
363 strm->next_out = (unsigned char *)buf;
584 inflateEnd(&(state->strm));