aboutsummaryrefslogtreecommitdiff
path: root/inflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'inflate.c')
-rw-r--r--inflate.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/inflate.c b/inflate.c
index 870f89b..68aa4c3 100644
--- a/inflate.c
+++ b/inflate.c
@@ -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
1514unsigned long ZEXPORT inflateCodesUsed(strm)
1515z_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}