Lines Matching defs:strm
22 strm provides memory allocation functions in zalloc and zfree, or
28 int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits,
36 if (strm == Z_NULL || window == Z_NULL ||
39 strm->msg = Z_NULL; /* in case we return an error */
40 if (strm->zalloc == (alloc_func)0) {
44 strm->zalloc = zcalloc;
45 strm->opaque = (voidpf)0;
48 if (strm->zfree == (free_func)0)
52 strm->zfree = zcfree;
54 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
58 strm->state = (struct internal_state FAR *)state;
125 put = strm->next_out; \
126 left = strm->avail_out; \
127 next = strm->next_in; \
128 have = strm->avail_in; \
136 strm->next_out = put; \
137 strm->avail_out = left; \
138 strm->next_in = next; \
139 strm->avail_in = have; \
219 strm provides the memory allocation functions and window buffer on input,
221 returns, strm will also provide an error message.
238 Z_BUF_ERROR. strm->next_in can be checked for Z_NULL to see whether it
243 are not correct, i.e. strm is Z_NULL or the state was not initialized.
245 int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc,
263 /* Check that the strm exists and that the state was initialized */
264 if (strm == Z_NULL || strm->state == Z_NULL)
266 state = (struct inflate_state FAR *)strm->state;
269 strm->msg = Z_NULL;
273 next = strm->next_in;
274 have = next != Z_NULL ? strm->avail_in : 0;
311 strm->msg = (char *)"invalid block type";
322 strm->msg = (char *)"invalid stored block lengths";
360 strm->msg = (char *)"too many length or distance symbols";
382 strm->msg = (char *)"invalid code lengths set";
405 strm->msg = (char *)"invalid bit length repeat";
428 strm->msg = (char *)"invalid bit length repeat";
442 strm->msg = (char *)"invalid code -- missing end-of-block";
456 strm->msg = (char *)"invalid literal/lengths set";
465 strm->msg = (char *)"invalid distances set";
478 inflate_fast(strm, state->wsize);
523 strm->msg = (char *)"invalid literal/length code";
555 strm->msg = (char *)"invalid distance code";
570 strm->msg = (char *)"invalid distance too far back";
617 strm->next_in = next;
618 strm->avail_in = have;
622 int ZEXPORT inflateBackEnd(z_streamp strm)
624 if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
626 ZFREE(strm, strm->state);
627 strm->state = Z_NULL;