Add inflateCodesUsed() function for internal use.

This commit is contained in:
Mark Adler 2014-12-29 00:18:42 -08:00
parent 283520baf7
commit 5370d99a2a
1 changed files with 9 additions and 0 deletions

View File

@ -1510,3 +1510,12 @@ z_streamp strm;
(state->mode == COPY ? state->length :
(state->mode == MATCH ? state->was - state->length : 0));
}
unsigned long ZEXPORT inflateCodesUsed(strm)
z_streamp strm;
{
struct inflate_state FAR *state;
if (strm == Z_NULL || strm->state == Z_NULL) return -1L;
state = (struct inflate_state FAR *)strm->state;
return state->next - state->codes;
}