Lines Matching refs:strm

49    strm provides memory allocation functions in zalloc and zfree, or
55 int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size)
56 z_streamp strm;
67 if (strm == Z_NULL || window == Z_NULL ||
70 strm->msg = Z_NULL; /* in case we return an error */
72 if (strm->zalloc == (alloc_func)0) {
73 strm->zalloc = zcalloc;
74 strm->opaque = (voidpf)0;
76 if (strm->zfree == (free_func)0) strm->zfree = zcfree;
78 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
82 strm->state = (struct internal_state FAR *)state;
150 put = strm->next_out; \
151 left = strm->avail_out; \
152 next = strm->next_in; \
153 have = strm->avail_in; \
161 strm->next_out = put; \
162 strm->avail_out = left; \
163 strm->next_in = next; \
164 strm->avail_in = have; \
244 strm provides the memory allocation functions and window buffer on input,
246 returns, strm will also provide an error message.
263 Z_BUF_ERROR. strm->next_in can be checked for Z_NULL to see whether it
268 are not correct, i.e. strm is Z_NULL or the state was not initialized.
270 int ZEXPORT inflateBack(strm, in, in_desc, out, out_desc)
271 z_streamp strm;
292 /* Check that the strm exists and that the state was initialized */
293 if (strm == Z_NULL || strm->state == Z_NULL)
295 state = (struct inflate_state FAR *)strm->state;
298 strm->msg = Z_NULL;
302 next = strm->next_in;
303 have = next != Z_NULL ? strm->avail_in : 0;
340 strm->msg = (char *)"invalid block type";
351 strm->msg = (char *)"invalid stored block lengths";
389 strm->msg = (char *)"too many length or distance symbols";
411 strm->msg = (char *)"invalid code lengths set";
435 strm->msg = (char *)"invalid bit length repeat";
458 strm->msg = (char *)"invalid bit length repeat";
477 strm->msg = (char *)"invalid literal/lengths set";
486 strm->msg = (char *)"invalid distances set";
499 inflate_fast(strm, state->wsize);
544 strm->msg = (char *)"invalid literal/length code";
576 strm->msg = (char *)"invalid distance code";
591 strm->msg = (char *)"invalid distance too far back";
638 strm->next_in = next;
639 strm->avail_in = have;
643 int ZEXPORT inflateBackEnd(strm)
644 z_streamp strm;
646 if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
648 ZFREE(strm, strm->state);
649 strm->state = Z_NULL;