Lines Matching refs:strm
44 struct z_stream_s *strm; in __gunzip() local
71 strm = malloc(sizeof(*strm)); in __gunzip()
72 if (strm == NULL) { in __gunzip()
77 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in __gunzip()
79 if (strm->workspace == NULL) { in __gunzip()
102 strm->next_in = zbuf + 10; in __gunzip()
103 strm->avail_in = len - 10; in __gunzip()
112 if (strm->avail_in == 0) { in __gunzip()
116 --strm->avail_in; in __gunzip()
117 } while (*strm->next_in++); in __gunzip()
120 strm->next_out = out_buf; in __gunzip()
121 strm->avail_out = out_len; in __gunzip()
123 rc = zlib_inflateInit2(strm, -MAX_WBITS); in __gunzip()
126 WS(strm)->inflate_state.wsize = 0; in __gunzip()
127 WS(strm)->inflate_state.window = NULL; in __gunzip()
131 if (strm->avail_in == 0) { in __gunzip()
139 strm->next_in = zbuf; in __gunzip()
140 strm->avail_in = len; in __gunzip()
142 rc = zlib_inflate(strm, 0); in __gunzip()
145 if (flush && strm->next_out > out_buf) { in __gunzip()
146 long l = strm->next_out - out_buf; in __gunzip()
152 strm->next_out = out_buf; in __gunzip()
153 strm->avail_out = out_len; in __gunzip()
166 zlib_inflateEnd(strm); in __gunzip()
169 *pos = strm->next_in - zbuf+8; in __gunzip()
172 free(strm->workspace); in __gunzip()
174 free(strm); in __gunzip()