Lines Matching defs:strm
19 strm provides memory allocation functions in zalloc and zfree, or
25 int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits,
33 if (strm == Z_NULL || window == Z_NULL ||
36 strm->msg = Z_NULL; /* in case we return an error */
37 if (strm->zalloc == (alloc_func)0) {
41 strm->zalloc = zcalloc;
42 strm->opaque = (voidpf)0;
45 if (strm->zfree == (free_func)0)
49 strm->zfree = zcfree;
51 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
55 strm->state = (struct internal_state FAR *)state;
122 put = strm->next_out; \
123 left = strm->avail_out; \
124 next = strm->next_in; \
125 have = strm->avail_in; \
133 strm->next_out = put; \
134 strm->avail_out = left; \
135 strm->next_in = next; \
136 strm->avail_in = have; \
216 strm provides the memory allocation functions and window buffer on input,
218 returns, strm will also provide an error message.
235 Z_BUF_ERROR. strm->next_in can be checked for Z_NULL to see whether it
240 are not correct, i.e. strm is Z_NULL or the state was not initialized.
242 int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc,
259 /* Check that the strm exists and that the state was initialized */
260 if (strm == Z_NULL || strm->state == Z_NULL)
262 state = (struct inflate_state FAR *)strm->state;
265 strm->msg = Z_NULL;
269 next = strm->next_in;
270 have = next != Z_NULL ? strm->avail_in : 0;
307 strm->msg = (char *)"invalid block type";
318 strm->msg = (char *)"invalid stored block lengths";
356 strm->msg = (char *)"too many length or distance symbols";
378 strm->msg = (char *)"invalid code lengths set";
401 strm->msg = (char *)"invalid bit length repeat";
424 strm->msg = (char *)"invalid bit length repeat";
438 strm->msg = (char *)"invalid code -- missing end-of-block";
452 strm->msg = (char *)"invalid literal/lengths set";
461 strm->msg = (char *)"invalid distances set";
475 inflate_fast(strm, state->wsize);
520 strm->msg = (char *)"invalid literal/length code";
552 strm->msg = (char *)"invalid distance code";
567 strm->msg = (char *)"invalid distance too far back";
616 strm->next_in = next;
617 strm->avail_in = have;
621 int ZEXPORT inflateBackEnd(z_streamp strm) {
622 if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
624 ZFREE(strm, strm->state);
625 strm->state = Z_NULL;