Lines Matching defs:strm
49 struct z_stream_s *strm;
76 strm = malloc(sizeof(*strm));
77 if (strm == NULL) {
82 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() :
89 if (strm->workspace == NULL) {
112 strm->next_in = zbuf + 10;
113 strm->avail_in = len - 10;
122 if (strm->avail_in == 0) {
126 --strm->avail_in;
127 } while (*strm->next_in++);
130 strm->next_out = out_buf;
131 strm->avail_out = out_len;
133 rc = zlib_inflateInit2(strm, -MAX_WBITS);
139 WS(strm)->inflate_state.wsize = 0;
140 WS(strm)->inflate_state.window = NULL;
145 if (strm->avail_in == 0) {
153 strm->next_in = zbuf;
154 strm->avail_in = len;
156 rc = zlib_inflate(strm, 0);
159 if (flush && strm->next_out > out_buf) {
160 long l = strm->next_out - out_buf;
166 strm->next_out = out_buf;
167 strm->avail_out = out_len;
180 zlib_inflateEnd(strm);
183 *pos = strm->next_in - zbuf+8;
186 free(strm->workspace);
188 free(strm);