Home | History | Annotate | Download | only in zlib

Lines Matching refs:strm

21    strm provides memory allocation functions in zalloc and zfree, or
27 int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits,
35 if (strm == Z_NULL || window == Z_NULL ||
38 strm->msg = Z_NULL; /* in case we return an error */
39 if (strm->zalloc == (alloc_func)0) {
43 strm->zalloc = zcalloc;
44 strm->opaque = (voidpf)0;
47 if (strm->zfree == (free_func)0)
51 strm->zfree = zcfree;
53 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
57 strm->state = (struct internal_state FAR *)state;
124 put = strm->next_out; \
125 left = strm->avail_out; \
126 next = strm->next_in; \
127 have = strm->avail_in; \
135 strm->next_out = put; \
136 strm->avail_out = left; \
137 strm->next_in = next; \
138 strm->avail_in = have; \
218 strm provides the memory allocation functions and window buffer on input,
220 returns, strm will also provide an error message.
237 Z_BUF_ERROR. strm->next_in can be checked for Z_NULL to see whether it
242 are not correct, i.e. strm is Z_NULL or the state was not initialized.
244 int ZEXPORT inflateBack(z_streamp strm, in_func in, void FAR *in_desc,
261 /* Check that the strm exists and that the state was initialized */
262 if (strm == Z_NULL || strm->state == Z_NULL)
264 state = (struct inflate_state FAR *)strm->state;
267 strm->msg = Z_NULL;
271 next = strm->next_in;
272 have = next != Z_NULL ? strm->avail_in : 0;
309 strm->msg = __UNCONST("invalid block type");
320 strm->msg = __UNCONST("invalid stored block lengths");
358 strm->msg = __UNCONST("too many length or distance symbols");
380 strm->msg = __UNCONST("invalid code lengths set");
403 strm->msg = __UNCONST("invalid bit length repeat");
426 strm->msg = __UNCONST("invalid bit length repeat");
440 strm->msg = __UNCONST("invalid code -- missing end-of-block");
454 strm->msg = __UNCONST("invalid literal/lengths set");
463 strm->msg = __UNCONST("invalid distances set");
477 inflate_fast(strm, state->wsize);
522 strm->msg = __UNCONST("invalid literal/length code");
554 strm->msg = __UNCONST("invalid distance code");
569 strm->msg = __UNCONST("invalid distance too far back");
618 strm->next_in = next;
619 strm->avail_in = have;
623 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;