Home | History | Annotate | Download | only in zlib

Lines Matching full: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) {
45 strm->zalloc = zcalloc;
46 strm->opaque = (voidpf)0;
48 if (strm->zfree == (free_func)0) strm->zfree = zcfree;
49 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
53 strm->state = (struct internal_state FAR *)state;
121 put = strm->next_out; \
122 left = strm->avail_out; \
123 next = strm->next_in; \
124 have = strm->avail_in; \
132 strm->next_out = put; \
133 strm->avail_out = left; \
134 strm->next_in = next; \
135 strm->avail_in = have; \
215 strm provides the memory allocation functions and window buffer on input,
217 returns, strm will also provide an error message.
234 Z_BUF_ERROR. strm->next_in can be checked for Z_NULL to see whether it
239 are not correct, i.e. strm is Z_NULL or the state was not initialized.
241 int ZEXPORT inflateBack(strm, in, in_desc, out, out_desc)
242 z_streamp strm;
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";
406 strm->msg = (char *)"invalid bit length repeat";
429 strm->msg = (char *)"invalid bit length repeat";
448 strm->msg = (char *)"invalid literal/lengths set";
457 strm->msg = (char *)"invalid distances set";
470 inflate_fast(strm, state->wsize);
515 strm->msg = (char *)"invalid literal/length code";
547 strm->msg = (char *)"invalid distance code";
562 strm->msg = (char *)"invalid distance too far back";
609 strm->next_in = next;
610 strm->avail_in = have;
614 int ZEXPORT inflateBackEnd(strm)
615 z_streamp strm;
617 if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
619 ZFREE(strm, strm->state);
620 strm->state = Z_NULL;