Home | History | Annotate | Download | only in infback9

Lines Matching full:state

25     struct inflate_state FAR *state;
38 state = (struct inflate_state FAR *)ZALLOC(strm, 1,
40 if (state == Z_NULL) return Z_MEM_ERROR;
42 strm->state = (voidpf)state;
43 state->window = window;
58 struct inflate_state state;
63 while (sym < 144) state.lens[sym++] = 8;
64 while (sym < 256) state.lens[sym++] = 9;
65 while (sym < 280) state.lens[sym++] = 7;
66 while (sym < 288) state.lens[sym++] = 8;
70 inflate_table9(LENS, state.lens, 288, &(next), &(bits), state.work);
74 while (sym < 32) state.lens[sym++] = 5;
77 inflate_table9(DISTS, state.lens, 32, &(next), &(bits), state.work);
213 error, or Z_MEM_ERROR if it could not allocate memory for the state.
215 are not correct, i.e. strm is Z_NULL or the state was not initialized.
224 struct inflate_state FAR *state;
253 /* Check that the strm exists and that the state was initialized */
254 if (strm == Z_NULL || strm->state == Z_NULL)
256 state = (struct inflate_state FAR *)strm->state;
258 /* Reset the state */
264 window = state->window;
349 state->nlen = BITS(5) + 257;
351 state->ndist = BITS(5) + 1;
353 state->ncode = BITS(4) + 4;
355 if (state->nlen > 286) {
363 state->have = 0;
364 while (state->have < state->ncode) {
366 state->lens[order[state->have++]] = (unsigned short)BITS(3);
369 while (state->have < 19)
370 state->lens[order[state->have++]] = 0;
371 state->next = state->codes;
372 lencode = (code const FAR *)(state->next);
374 ret = inflate_table9(CODES, state->lens, 19, &(state->next),
375 &(lenbits), state->work);
384 state->have = 0;
385 while (state->have < state->nlen + state->ndist) {
394 state->lens[state->have++] = here.val;
400 if (state->have == 0) {
405 len = (unsigned)(state->lens[state->have - 1]);
423 if (state->have + copy > state->nlen + state->ndist) {
429 state->lens[state->have++] = (unsigned short)len;
437 if (state->lens[256] == 0) {
446 state->next = state->codes;
447 lencode = (code const FAR *)(state->next);
449 ret = inflate_table9(LENS, state->lens, state->nlen,
450 &(state->next), &(lenbits), state->work);
456 distcode = (code const FAR *)(state->next);
458 ret = inflate_table9(DISTS, state->lens + state->nlen,
459 state->ndist, &(state->next), &(distbits),
460 state->work);
611 if (strm == Z_NULL || strm->state == Z_NULL || strm->zfree == (free_func)0)
613 ZFREE(strm, strm->state);
614 strm->state = Z_NULL;