return ((long)(state->back) << 16) + (state->mode == COPY ? state->length :
(state->mode == MATCH ? state->was - state->length : 0));
}
+
+unsigned long ZEXPORT inflateCodesUsed(z_stream *strm) {
+ struct inflate_state *state;
+ if (strm == NULL || strm->state == NULL)
+ return (unsigned long)0 - 1;
+ state = (struct inflate_state *)strm->state;
+ return (unsigned long)(state->next - state->codes);
+}
ZEXTERN const uint32_t * ZEXPORT get_crc_table (void);
ZEXTERN int ZEXPORT inflateUndermine (z_stream *, int);
ZEXTERN int ZEXPORT inflateValidate (z_stream *, int);
+ZEXTERN unsigned long ZEXPORT inflateCodesUsed (z_stream *);
ZEXTERN int ZEXPORT inflateResetKeep (z_stream *);
ZEXTERN int ZEXPORT deflateResetKeep (z_stream *);