Lines Matching refs:state

97     struct inflate_state FAR *state;  in inflateStateCheck()  local
101 state = (struct inflate_state FAR *)strm->state; in inflateStateCheck()
102 if (state == Z_NULL || state->strm != strm || in inflateStateCheck()
103 state->mode < HEAD || state->mode > SYNC) in inflateStateCheck()
109 struct inflate_state FAR *state; in inflateResetKeep() local
112 state = (struct inflate_state FAR *)strm->state; in inflateResetKeep()
113 strm->total_in = strm->total_out = state->total = 0; in inflateResetKeep()
115 if (state->wrap) /* to support ill-conceived Java test suite */ in inflateResetKeep()
116 strm->adler = state->wrap & 1; in inflateResetKeep()
117 state->mode = HEAD; in inflateResetKeep()
118 state->last = 0; in inflateResetKeep()
119 state->havedict = 0; in inflateResetKeep()
120 state->flags = -1; in inflateResetKeep()
121 state->dmax = 32768U; in inflateResetKeep()
122 state->head = Z_NULL; in inflateResetKeep()
123 state->hold = 0; in inflateResetKeep()
124 state->bits = 0; in inflateResetKeep()
125 state->lencode = state->distcode = state->next = state->codes; in inflateResetKeep()
126 state->sane = 1; in inflateResetKeep()
127 state->back = -1; in inflateResetKeep()
133 struct inflate_state FAR *state; in inflateReset() local
136 state = (struct inflate_state FAR *)strm->state; in inflateReset()
137 state->wsize = 0; in inflateReset()
138 state->whave = 0; in inflateReset()
139 state->wnext = 0; in inflateReset()
145 struct inflate_state FAR *state; in inflateReset2() local
149 state = (struct inflate_state FAR *)strm->state; in inflateReset2()
169 if (state->window != Z_NULL && state->wbits != (unsigned)windowBits) { in inflateReset2()
170 ZFREE(strm, state->window); in inflateReset2()
171 state->window = Z_NULL; in inflateReset2()
175 state->wrap = wrap; in inflateReset2()
176 state->wbits = (unsigned)windowBits; in inflateReset2()
183 struct inflate_state FAR *state; in inflateInit2_() local
204 state = (struct inflate_state FAR *) in inflateInit2_()
206 if (state == Z_NULL) return Z_MEM_ERROR; in inflateInit2_()
208 strm->state = (struct internal_state FAR *)state; in inflateInit2_()
209 state->strm = strm; in inflateInit2_()
210 state->window = Z_NULL; in inflateInit2_()
211 state->mode = HEAD; /* to pass state test in inflateReset2() */ in inflateInit2_()
214 ZFREE(strm, state); in inflateInit2_()
215 strm->state = Z_NULL; in inflateInit2_()
226 struct inflate_state FAR *state; in inflatePrime() local
231 state = (struct inflate_state FAR *)strm->state; in inflatePrime()
233 state->hold = 0; in inflatePrime()
234 state->bits = 0; in inflatePrime()
237 if (bits > 16 || state->bits + (uInt)bits > 32) return Z_STREAM_ERROR; in inflatePrime()
239 state->hold += (unsigned)value << state->bits; in inflatePrime()
240 state->bits += (uInt)bits; in inflatePrime()
254 local void fixedtables(struct inflate_state FAR *state) { in fixedtables() argument
267 while (sym < 144) state->lens[sym++] = 8; in fixedtables()
268 while (sym < 256) state->lens[sym++] = 9; in fixedtables()
269 while (sym < 280) state->lens[sym++] = 7; in fixedtables()
270 while (sym < 288) state->lens[sym++] = 8; in fixedtables()
274 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work); in fixedtables()
278 while (sym < 32) state->lens[sym++] = 5; in fixedtables()
281 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work); in fixedtables()
289 state->lencode = lenfix; in fixedtables()
290 state->lenbits = 9; in fixedtables()
291 state->distcode = distfix; in fixedtables()
292 state->distbits = 5; in fixedtables()
319 struct inflate_state state; in makefixed() local
321 fixedtables(&state); in makefixed()
336 printf("{%u,%u,%d}", (low & 127) == 99 ? 64 : state.lencode[low].op, in makefixed()
337 state.lencode[low].bits, state.lencode[low].val); in makefixed()
347 printf("{%u,%u,%d}", state.distcode[low].op, state.distcode[low].bits, in makefixed()
348 state.distcode[low].val); in makefixed()
371 struct inflate_state FAR *state; in updatewindow() local
374 state = (struct inflate_state FAR *)strm->state; in updatewindow()
377 if (state->window == Z_NULL) { in updatewindow()
378 state->window = (unsigned char FAR *) in updatewindow()
379 ZALLOC(strm, 1U << state->wbits, in updatewindow()
381 if (state->window == Z_NULL) return 1; in updatewindow()
385 if (state->wsize == 0) { in updatewindow()
386 state->wsize = 1U << state->wbits; in updatewindow()
387 state->wnext = 0; in updatewindow()
388 state->whave = 0; in updatewindow()
392 if (copy >= state->wsize) { in updatewindow()
393 zmemcpy(state->window, end - state->wsize, state->wsize); in updatewindow()
394 state->wnext = 0; in updatewindow()
395 state->whave = state->wsize; in updatewindow()
398 dist = state->wsize - state->wnext; in updatewindow()
400 zmemcpy(state->window + state->wnext, end - copy, dist); in updatewindow()
403 zmemcpy(state->window, end - copy, copy); in updatewindow()
404 state->wnext = copy; in updatewindow()
405 state->whave = state->wsize; in updatewindow()
408 state->wnext += dist; in updatewindow()
409 if (state->wnext == state->wsize) state->wnext = 0; in updatewindow()
410 if (state->whave < state->wsize) state->whave += dist; in updatewindow()
421 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
452 hold = state->hold; \
453 bits = state->bits; \
463 state->hold = hold; \
464 state->bits = bits; \
593 struct inflate_state FAR *state; in inflate() local
623 state = (struct inflate_state FAR *)strm->state; in inflate()
624 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */ in inflate()
630 switch (state->mode) { in inflate()
632 if (state->wrap == 0) { in inflate()
633 state->mode = TYPEDO; in inflate()
638 if ((state->wrap & 2) && hold == 0x8b1f) { /* gzip header */ in inflate()
639 if (state->wbits == 0) in inflate()
640 state->wbits = 15; in inflate()
641 state->check = crc32(0L, Z_NULL, 0); in inflate()
642 CRC2(state->check, hold); in inflate()
644 state->mode = FLAGS; in inflate()
647 if (state->head != Z_NULL) in inflate()
648 state->head->done = -1; in inflate()
649 if (!(state->wrap & 1) || /* check if zlib header allowed */ in inflate()
655 state->mode = BAD; in inflate()
660 state->mode = BAD; in inflate()
665 if (state->wbits == 0) in inflate()
666 state->wbits = len; in inflate()
667 if (len > 15 || len > state->wbits) { in inflate()
669 state->mode = BAD; in inflate()
672 state->dmax = 1U << len; in inflate()
673 state->flags = 0; /* indicate zlib header */ in inflate()
675 strm->adler = state->check = adler32(0L, Z_NULL, 0); in inflate()
676 state->mode = hold & 0x200 ? DICTID : TYPE; in inflate()
682 state->flags = (int)(hold); in inflate()
683 if ((state->flags & 0xff) != Z_DEFLATED) { in inflate()
685 state->mode = BAD; in inflate()
688 if (state->flags & 0xe000) { in inflate()
690 state->mode = BAD; in inflate()
693 if (state->head != Z_NULL) in inflate()
694 state->head->text = (int)((hold >> 8) & 1); in inflate()
695 if ((state->flags & 0x0200) && (state->wrap & 4)) in inflate()
696 CRC2(state->check, hold); in inflate()
698 state->mode = TIME; in inflate()
702 if (state->head != Z_NULL) in inflate()
703 state->head->time = hold; in inflate()
704 if ((state->flags & 0x0200) && (state->wrap & 4)) in inflate()
705 CRC4(state->check, hold); in inflate()
707 state->mode = OS; in inflate()
711 if (state->head != Z_NULL) { in inflate()
712 state->head->xflags = (int)(hold & 0xff); in inflate()
713 state->head->os = (int)(hold >> 8); in inflate()
715 if ((state->flags & 0x0200) && (state->wrap & 4)) in inflate()
716 CRC2(state->check, hold); in inflate()
718 state->mode = EXLEN; in inflate()
721 if (state->flags & 0x0400) { in inflate()
723 state->length = (unsigned)(hold); in inflate()
724 if (state->head != Z_NULL) in inflate()
725 state->head->extra_len = (unsigned)hold; in inflate()
726 if ((state->flags & 0x0200) && (state->wrap & 4)) in inflate()
727 CRC2(state->check, hold); in inflate()
730 else if (state->head != Z_NULL) in inflate()
731 state->head->extra = Z_NULL; in inflate()
732 state->mode = EXTRA; in inflate()
735 if (state->flags & 0x0400) { in inflate()
736 copy = state->length; in inflate()
739 if (state->head != Z_NULL && in inflate()
740 state->head->extra != Z_NULL && in inflate()
741 (len = state->head->extra_len - state->length) < in inflate()
742 state->head->extra_max) { in inflate()
743 zmemcpy(state->head->extra + len, next, in inflate()
744 len + copy > state->head->extra_max ? in inflate()
745 state->head->extra_max - len : copy); in inflate()
747 if ((state->flags & 0x0200) && (state->wrap & 4)) in inflate()
748 state->check = crc32(state->check, next, copy); in inflate()
751 state->length -= copy; in inflate()
753 if (state->length) goto inf_leave; in inflate()
755 state->length = 0; in inflate()
756 state->mode = NAME; in inflate()
759 if (state->flags & 0x0800) { in inflate()
764 if (state->head != Z_NULL && in inflate()
765 state->head->name != Z_NULL && in inflate()
766 state->length < state->head->name_max) in inflate()
767 state->head->name[state->length++] = (Bytef)len; in inflate()
769 if ((state->flags & 0x0200) && (state->wrap & 4)) in inflate()
770 state->check = crc32(state->check, next, copy); in inflate()
775 else if (state->head != Z_NULL) in inflate()
776 state->head->name = Z_NULL; in inflate()
777 state->length = 0; in inflate()
778 state->mode = COMMENT; in inflate()
781 if (state->flags & 0x1000) { in inflate()
786 if (state->head != Z_NULL && in inflate()
787 state->head->comment != Z_NULL && in inflate()
788 state->length < state->head->comm_max) in inflate()
789 state->head->comment[state->length++] = (Bytef)len; in inflate()
791 if ((state->flags & 0x0200) && (state->wrap & 4)) in inflate()
792 state->check = crc32(state->check, next, copy); in inflate()
797 else if (state->head != Z_NULL) in inflate()
798 state->head->comment = Z_NULL; in inflate()
799 state->mode = HCRC; in inflate()
802 if (state->flags & 0x0200) { in inflate()
804 if ((state->wrap & 4) && hold != (state->check & 0xffff)) { in inflate()
806 state->mode = BAD; in inflate()
811 if (state->head != Z_NULL) { in inflate()
812 state->head->hcrc = (int)((state->flags >> 9) & 1); in inflate()
813 state->head->done = 1; in inflate()
815 strm->adler = state->check = crc32(0L, Z_NULL, 0); in inflate()
816 state->mode = TYPE; in inflate()
821 strm->adler = state->check = ZSWAP32(hold); in inflate()
823 state->mode = DICT; in inflate()
826 if (state->havedict == 0) { in inflate()
830 strm->adler = state->check = adler32(0L, Z_NULL, 0); in inflate()
831 state->mode = TYPE; in inflate()
837 if (state->last) { in inflate()
839 state->mode = CHECK; in inflate()
843 state->last = BITS(1); in inflate()
848 state->last ? " (last)" : "")); in inflate()
849 state->mode = STORED; in inflate()
852 fixedtables(state); in inflate()
854 state->last ? " (last)" : "")); in inflate()
855 state->mode = LEN_; /* decode codes */ in inflate()
863 state->last ? " (last)" : "")); in inflate()
864 state->mode = TABLE; in inflate()
868 state->mode = BAD; in inflate()
877 state->mode = BAD; in inflate()
880 state->length = (unsigned)hold & 0xffff; in inflate()
882 state->length)); in inflate()
884 state->mode = COPY_; in inflate()
888 state->mode = COPY; in inflate()
891 copy = state->length; in inflate()
901 state->length -= copy; in inflate()
905 state->mode = TYPE; in inflate()
909 state->nlen = BITS(5) + 257; in inflate()
911 state->ndist = BITS(5) + 1; in inflate()
913 state->ncode = BITS(4) + 4; in inflate()
916 if (state->nlen > 286 || state->ndist > 30) { in inflate()
918 state->mode = BAD; in inflate()
923 state->have = 0; in inflate()
924 state->mode = LENLENS; in inflate()
927 while (state->have < state->ncode) { in inflate()
929 state->lens[order[state->have++]] = (unsigned short)BITS(3); in inflate()
932 while (state->have < 19) in inflate()
933 state->lens[order[state->have++]] = 0; in inflate()
934 state->next = state->codes; in inflate()
935 state->lencode = (const code FAR *)(state->next); in inflate()
936 state->lenbits = 7; in inflate()
937 ret = inflate_table(CODES, state->lens, 19, &(state->next), in inflate()
938 &(state->lenbits), state->work); in inflate()
941 state->mode = BAD; in inflate()
945 state->have = 0; in inflate()
946 state->mode = CODELENS; in inflate()
949 while (state->have < state->nlen + state->ndist) { in inflate()
951 here = state->lencode[BITS(state->lenbits)]; in inflate()
957 state->lens[state->have++] = here.val; in inflate()
963 if (state->have == 0) { in inflate()
965 state->mode = BAD; in inflate()
968 len = state->lens[state->have - 1]; in inflate()
986 if (state->have + copy > state->nlen + state->ndist) { in inflate()
988 state->mode = BAD; in inflate()
992 state->lens[state->have++] = (unsigned short)len; in inflate()
997 if (state->mode == BAD) break; in inflate()
1000 if (state->lens[256] == 0) { in inflate()
1002 state->mode = BAD; in inflate()
1009 state->next = state->codes; in inflate()
1010 state->lencode = (const code FAR *)(state->next); in inflate()
1011 state->lenbits = 9; in inflate()
1012 ret = inflate_table(LENS, state->lens, state->nlen, &(state->next), in inflate()
1013 &(state->lenbits), state->work); in inflate()
1016 state->mode = BAD; in inflate()
1019 state->distcode = (const code FAR *)(state->next); in inflate()
1020 state->distbits = 6; in inflate()
1021 ret = inflate_table(DISTS, state->lens + state->nlen, state->ndist, in inflate()
1022 &(state->next), &(state->distbits), state->work); in inflate()
1025 state->mode = BAD; in inflate()
1029 state->mode = LEN_; in inflate()
1033 state->mode = LEN; in inflate()
1040 if (state->mode == TYPE) in inflate()
1041 state->back = -1; in inflate()
1044 state->back = 0; in inflate()
1046 here = state->lencode[BITS(state->lenbits)]; in inflate()
1053 here = state->lencode[last.val + in inflate()
1059 state->back += last.bits; in inflate()
1062 state->back += here.bits; in inflate()
1063 state->length = (unsigned)here.val; in inflate()
1068 state->mode = LIT; in inflate()
1073 state->back = -1; in inflate()
1074 state->mode = TYPE; in inflate()
1079 state->mode = BAD; in inflate()
1082 state->extra = (unsigned)(here.op) & 15; in inflate()
1083 state->mode = LENEXT; in inflate()
1086 if (state->extra) { in inflate()
1087 NEEDBITS(state->extra); in inflate()
1088 state->length += BITS(state->extra); in inflate()
1089 DROPBITS(state->extra); in inflate()
1090 state->back += state->extra; in inflate()
1092 Tracevv((stderr, "inflate: length %u\n", state->length)); in inflate()
1093 state->was = state->length; in inflate()
1094 state->mode = DIST; in inflate()
1098 here = state->distcode[BITS(state->distbits)]; in inflate()
1105 here = state->distcode[last.val + in inflate()
1111 state->back += last.bits; in inflate()
1114 state->back += here.bits; in inflate()
1117 state->mode = BAD; in inflate()
1120 state->offset = (unsigned)here.val; in inflate()
1121 state->extra = (unsigned)(here.op) & 15; in inflate()
1122 state->mode = DISTEXT; in inflate()
1125 if (state->extra) { in inflate()
1126 NEEDBITS(state->extra); in inflate()
1127 state->offset += BITS(state->extra); in inflate()
1128 DROPBITS(state->extra); in inflate()
1129 state->back += state->extra; in inflate()
1132 if (state->offset > state->dmax) { in inflate()
1134 state->mode = BAD; in inflate()
1138 Tracevv((stderr, "inflate: distance %u\n", state->offset)); in inflate()
1139 state->mode = MATCH; in inflate()
1144 if (state->offset > copy) { /* copy from window */ in inflate()
1145 copy = state->offset - copy; in inflate()
1146 if (copy > state->whave) { in inflate()
1147 if (state->sane) { in inflate()
1149 state->mode = BAD; in inflate()
1154 copy -= state->whave; in inflate()
1155 if (copy > state->length) copy = state->length; in inflate()
1158 state->length -= copy; in inflate()
1162 if (state->length == 0) state->mode = LEN; in inflate()
1166 if (copy > state->wnext) { in inflate()
1167 copy -= state->wnext; in inflate()
1168 from = state->window + (state->wsize - copy); in inflate()
1171 from = state->window + (state->wnext - copy); in inflate()
1172 if (copy > state->length) copy = state->length; in inflate()
1175 from = put - state->offset; in inflate()
1176 copy = state->length; in inflate()
1180 state->length -= copy; in inflate()
1184 if (state->length == 0) state->mode = LEN; in inflate()
1188 *put++ = (unsigned char)(state->length); in inflate()
1190 state->mode = LEN; in inflate()
1193 if (state->wrap) { in inflate()
1197 state->total += out; in inflate()
1198 if ((state->wrap & 4) && out) in inflate()
1199 strm->adler = state->check = in inflate()
1200 UPDATE_CHECK(state->check, put - out, out); in inflate()
1202 if ((state->wrap & 4) && ( in inflate()
1204 state->flags ? hold : in inflate()
1206 ZSWAP32(hold)) != state->check) { in inflate()
1208 state->mode = BAD; in inflate()
1215 state->mode = LENGTH; in inflate()
1218 if (state->wrap && state->flags) { in inflate()
1220 if ((state->wrap & 4) && hold != (state->total & 0xffffffff)) { in inflate()
1222 state->mode = BAD; in inflate()
1229 state->mode = DONE; in inflate()
1253 if (state->wsize || (out != strm->avail_out && state->mode < BAD && in inflate()
1254 (state->mode < CHECK || flush != Z_FINISH))) in inflate()
1256 state->mode = MEM; in inflate()
1263 state->total += out; in inflate()
1264 if ((state->wrap & 4) && out) in inflate()
1265 strm->adler = state->check = in inflate()
1266 UPDATE_CHECK(state->check, strm->next_out - out, out); in inflate()
1267 strm->data_type = (int)state->bits + (state->last ? 64 : 0) + in inflate()
1268 (state->mode == TYPE ? 128 : 0) + in inflate()
1269 (state->mode == LEN_ || state->mode == COPY_ ? 256 : 0); in inflate()
1276 struct inflate_state FAR *state; in inflateEnd() local
1279 state = (struct inflate_state FAR *)strm->state; in inflateEnd()
1280 if (state->window != Z_NULL) ZFREE(strm, state->window); in inflateEnd()
1281 ZFREE(strm, strm->state); in inflateEnd()
1282 strm->state = Z_NULL; in inflateEnd()
1289 struct inflate_state FAR *state; in inflateGetDictionary() local
1293 state = (struct inflate_state FAR *)strm->state; in inflateGetDictionary()
1296 if (state->whave && dictionary != Z_NULL) { in inflateGetDictionary()
1297 zmemcpy(dictionary, state->window + state->wnext, in inflateGetDictionary()
1298 state->whave - state->wnext); in inflateGetDictionary()
1299 zmemcpy(dictionary + state->whave - state->wnext, in inflateGetDictionary()
1300 state->window, state->wnext); in inflateGetDictionary()
1303 *dictLength = state->whave; in inflateGetDictionary()
1309 struct inflate_state FAR *state; in inflateSetDictionary() local
1315 state = (struct inflate_state FAR *)strm->state; in inflateSetDictionary()
1316 if (state->wrap != 0 && state->mode != DICT) in inflateSetDictionary()
1320 if (state->mode == DICT) { in inflateSetDictionary()
1323 if (dictid != state->check) in inflateSetDictionary()
1331 state->mode = MEM; in inflateSetDictionary()
1334 state->havedict = 1; in inflateSetDictionary()
1340 struct inflate_state FAR *state; in inflateGetHeader() local
1344 state = (struct inflate_state FAR *)strm->state; in inflateGetHeader()
1345 if ((state->wrap & 2) == 0) return Z_STREAM_ERROR; in inflateGetHeader()
1348 state->head = head; in inflateGetHeader()
1389 struct inflate_state FAR *state; in inflateSync() local
1393 state = (struct inflate_state FAR *)strm->state; in inflateSync()
1394 if (strm->avail_in == 0 && state->bits < 8) return Z_BUF_ERROR; in inflateSync()
1397 if (state->mode != SYNC) { in inflateSync()
1398 state->mode = SYNC; in inflateSync()
1399 state->hold >>= state->bits & 7; in inflateSync()
1400 state->bits -= state->bits & 7; in inflateSync()
1402 while (state->bits >= 8) { in inflateSync()
1403 buf[len++] = (unsigned char)(state->hold); in inflateSync()
1404 state->hold >>= 8; in inflateSync()
1405 state->bits -= 8; in inflateSync()
1407 state->have = 0; in inflateSync()
1408 syncsearch(&(state->have), buf, len); in inflateSync()
1412 len = syncsearch(&(state->have), strm->next_in, strm->avail_in); in inflateSync()
1418 if (state->have != 4) return Z_DATA_ERROR; in inflateSync()
1419 if (state->flags == -1) in inflateSync()
1420 state->wrap = 0; /* if no header yet, treat as raw */ in inflateSync()
1422 state->wrap &= ~4; /* no point in computing a check value now */ in inflateSync()
1423 flags = state->flags; in inflateSync()
1427 state->flags = flags; in inflateSync()
1428 state->mode = TYPE; in inflateSync()
1441 struct inflate_state FAR *state; in inflateSyncPoint() local
1444 state = (struct inflate_state FAR *)strm->state; in inflateSyncPoint()
1445 return state->mode == STORED && state->bits == 0; in inflateSyncPoint()
1449 struct inflate_state FAR *state; in inflateCopy() local
1457 state = (struct inflate_state FAR *)source->state; in inflateCopy()
1464 if (state->window != Z_NULL) { in inflateCopy()
1466 ZALLOC(source, 1U << state->wbits, sizeof(unsigned char)); in inflateCopy()
1475 zmemcpy((voidpf)copy, (voidpf)state, sizeof(struct inflate_state)); in inflateCopy()
1477 if (state->lencode >= state->codes && in inflateCopy()
1478 state->lencode <= state->codes + ENOUGH - 1) { in inflateCopy()
1479 copy->lencode = copy->codes + (state->lencode - state->codes); in inflateCopy()
1480 copy->distcode = copy->codes + (state->distcode - state->codes); in inflateCopy()
1482 copy->next = copy->codes + (state->next - state->codes); in inflateCopy()
1484 wsize = 1U << state->wbits; in inflateCopy()
1485 zmemcpy(window, state->window, wsize); in inflateCopy()
1488 dest->state = (struct internal_state FAR *)copy; in inflateCopy()
1493 struct inflate_state FAR *state; in inflateUndermine() local
1496 state = (struct inflate_state FAR *)strm->state; in inflateUndermine()
1498 state->sane = !subvert; in inflateUndermine()
1502 state->sane = 1; in inflateUndermine()
1508 struct inflate_state FAR *state; in inflateValidate() local
1511 state = (struct inflate_state FAR *)strm->state; in inflateValidate()
1512 if (check && state->wrap) in inflateValidate()
1513 state->wrap |= 4; in inflateValidate()
1515 state->wrap &= ~4; in inflateValidate()
1520 struct inflate_state FAR *state; in inflateMark() local
1524 state = (struct inflate_state FAR *)strm->state; in inflateMark()
1525 return (long)(((unsigned long)((long)state->back)) << 16) + in inflateMark()
1526 (state->mode == COPY ? state->length : in inflateMark()
1527 (state->mode == MATCH ? state->was - state->length : 0)); in inflateMark()
1531 struct inflate_state FAR *state; in inflateCodesUsed() local
1533 state = (struct inflate_state FAR *)strm->state; in inflateCodesUsed()
1534 return (unsigned long)(state->next - state->codes); in inflateCodesUsed()