Lines Matching +refs:val +refs:state
74 /* Compression function. Returns the block state after the call. */
279 strm->state = (struct internal_state FAR *)s;
334 if (strm == Z_NULL || strm->state == Z_NULL || dictionary == Z_NULL)
336 s = strm->state;
397 if (strm == Z_NULL || strm->state == Z_NULL ||
406 s = (deflate_state *)strm->state;
434 lm_init(strm->state);
443 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
444 if (strm->state->wrap != 2) return Z_STREAM_ERROR;
445 strm->state->gzhead = head;
455 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
457 *pending = strm->state->pending;
459 *bits = strm->state->bi_valid;
472 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
473 s = strm->state;
499 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
500 s = strm->state;
540 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
541 s = strm->state;
579 if (strm == Z_NULL || strm->state == Z_NULL)
583 s = strm->state;
625 * IN assertion: the stream state is correct and there is enough room in
646 deflate_state *s = strm->state;
672 if (strm == Z_NULL || strm->state == Z_NULL ||
676 s = strm->state;
796 int val;
806 val = 1;
810 val = s->gzhead->name[s->gzindex++];
811 put_byte(s, val);
812 } while (val != 0);
816 if (val == 0) {
827 int val;
837 val = 1;
841 val = s->gzhead->comment[s->gzindex++];
842 put_byte(s, val);
843 } while (val != 0);
847 if (val == 0)
984 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR;
986 status = strm->state->status;
998 TRY_FREE(strm, strm->state->pending_buf);
999 TRY_FREE(strm, strm->state->head);
1000 TRY_FREE(strm, strm->state->prev);
1001 TRY_FREE(strm, strm->state->window);
1003 ZFREE(strm, strm->state);
1004 strm->state = Z_NULL;
1010 * Copy the source state to the destination state.
1026 if (source == Z_NULL || dest == Z_NULL || source->state == Z_NULL) {
1030 ss = source->state;
1036 dest->state = (struct internal_state FAR *) ds;
1089 if (strm->state->wrap == 1) {
1093 else if (strm->state->wrap == 2) {
1557 * the current block state.
1623 * block state.