diff options
Diffstat (limited to 'inflate.c')
-rw-r--r-- | inflate.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1510,3 +1510,12 @@ z_streamp strm; | |||
1510 | (state->mode == COPY ? state->length : | 1510 | (state->mode == COPY ? state->length : |
1511 | (state->mode == MATCH ? state->was - state->length : 0)); | 1511 | (state->mode == MATCH ? state->was - state->length : 0)); |
1512 | } | 1512 | } |
1513 | |||
1514 | unsigned long ZEXPORT inflateCodesUsed(strm) | ||
1515 | z_streamp strm; | ||
1516 | { | ||
1517 | struct inflate_state FAR *state; | ||
1518 | if (strm == Z_NULL || strm->state == Z_NULL) return -1L; | ||
1519 | state = (struct inflate_state FAR *)strm->state; | ||
1520 | return state->next - state->codes; | ||
1521 | } | ||