Lines Matching refs:strm

22    strm provides memory allocation functions in zalloc and zfree, or
28 int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size)
29 z_streamp strm;
40 if (strm == Z_NULL || window == Z_NULL ||
43 strm->msg = Z_NULL; /* in case we return an error */
44 if (strm->zalloc == (alloc_func)0) {
48 strm->zalloc = zcalloc;
49 strm->opaque = (voidpf)0;
52 if (strm->zfree == (free_func)0)
56 strm->zfree = zcfree;
58 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
62 strm->state = (struct internal_state FAR *)state;
130 put = strm->next_out; \
131 left = strm->avail_out; \
132 next = strm->next_in; \
133 have = strm->avail_in; \
141 strm->next_out = put; \
142 strm->avail_out = left; \
143 strm->next_in = next; \
144 strm->avail_in = have; \
224 strm provides the memory allocation functions and window buffer on input,
226 returns, strm will also provide an error message.
243 Z_BUF_ERROR. strm->next_in can be checked for Z_NULL to see whether it
248 are not correct, i.e. strm is Z_NULL or the state was not initialized.
250 int ZEXPORT inflateBack(strm, in, in_desc, out, out_desc)
251 z_streamp strm;
272 /* Check that the strm exists and that the state was initialized */
273 if (strm == Z_NULL || strm->state == Z_NULL)
275 state = (struct inflate_state FAR *)strm->state;
278 strm->msg = Z_NULL;
282 next = strm->next_in;
283 have = next != Z_NULL ? strm->avail_in : 0;
320 strm->msg = (char *)"invalid block type";
331 strm->msg = (char *)"invalid stored block lengths";
369 strm->msg = (char *)"too many length or distance symbols";
391 strm->msg = (char *)"invalid code lengths set";
414 strm->msg = (char *)"invalid bit length repeat";
437 strm->msg = (char *)"invalid bit length repeat";
451 strm->msg = (char *)"invalid code -- missing end-of-block";
465 strm->msg = (char *)"invalid literal/lengths set";
474 strm->msg = (char *)"invalid distances set";
487 inflate_fast(strm, state->wsize);
532 strm->msg = (char *)"invalid literal/length code";
564 strm->msg = (char *)"invalid distance code";
579 strm->msg = (char *)"invalid distance too far back";
626 strm->next_in = next;
627 strm->avail_in = have;
631 int ZEXPORT inflateBackEnd(strm)
632 z_streamp strm;
634 if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
636 ZFREE(strm, strm->state);
637 strm->state = Z_NULL;