Lines Matching refs:strm
46 z_streamp strm = &(state->strm); in gz_avail() local
51 if (strm->avail_in) { /* copy what's there to the start */ in gz_avail()
53 unsigned const char *q = strm->next_in; in gz_avail()
54 unsigned n = strm->avail_in; in gz_avail()
59 if (gz_load(state, state->in + strm->avail_in, in gz_avail()
60 state->size - strm->avail_in, &got) == -1) in gz_avail()
62 strm->avail_in += got; in gz_avail()
63 strm->next_in = state->in; in gz_avail()
78 z_streamp strm = &(state->strm); in gz_look() local
94 state->strm.zalloc = Z_NULL; in gz_look()
95 state->strm.zfree = Z_NULL; in gz_look()
96 state->strm.opaque = Z_NULL; in gz_look()
97 state->strm.avail_in = 0; in gz_look()
98 state->strm.next_in = Z_NULL; in gz_look()
99 if (inflateInit2(&(state->strm), 15 + 16) != Z_OK) { /* gunzip */ in gz_look()
109 if (strm->avail_in < 2) { in gz_look()
112 if (strm->avail_in == 0) in gz_look()
123 if (strm->avail_in > 1 && in gz_look()
124 strm->next_in[0] == 31 && strm->next_in[1] == 139) { in gz_look()
125 inflateReset(strm); in gz_look()
134 strm->avail_in = 0; in gz_look()
144 memcpy(state->x.next, strm->next_in, strm->avail_in); in gz_look()
145 state->x.have = strm->avail_in; in gz_look()
146 strm->avail_in = 0; in gz_look()
160 z_streamp strm = &(state->strm); in gz_decomp() local
163 had = strm->avail_out; in gz_decomp()
166 if (strm->avail_in == 0 && gz_avail(state) == -1) in gz_decomp()
168 if (strm->avail_in == 0) { in gz_decomp()
174 ret = inflate(strm, Z_NO_FLUSH); in gz_decomp()
186 strm->msg == NULL ? "compressed data error" : strm->msg); in gz_decomp()
189 } while (strm->avail_out && ret != Z_STREAM_END); in gz_decomp()
192 state->x.have = had - strm->avail_out; in gz_decomp()
193 state->x.next = strm->next_out - state->x.have; in gz_decomp()
210 z_streamp strm = &(state->strm); in gz_fetch() local
227 strm->avail_out = state->size << 1; in gz_fetch()
228 strm->next_out = state->out; in gz_fetch()
232 } while (state->x.have == 0 && (!state->eof || strm->avail_in)); in gz_fetch()
253 else if (state->eof && state->strm.avail_in == 0) in gz_skip()
302 else if (state->eof && state->strm.avail_in == 0) { in gz_read()
326 state->strm.avail_out = n; in gz_read()
327 state->strm.next_out = (unsigned char *)buf; in gz_read()
593 inflateEnd(&(state->strm)); in gzclose_r()