MCPcopy Create free account
hub / github.com/F-Stack/f-stack / inflateResetKeep

Function inflateResetKeep

freebsd/contrib/zlib/inflate.c:119–142  ·  view source on GitHub ↗
(strm)

Source from the content-addressed store, hash-verified

117}
118
119int ZEXPORT inflateResetKeep(strm)
120z_streamp strm;
121{
122 struct inflate_state FAR *state;
123
124 if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
125 state = (struct inflate_state FAR *)strm->state;
126 strm->total_in = strm->total_out = state->total = 0;
127 strm->msg = Z_NULL;
128 if (state->wrap) /* to support ill-conceived Java test suite */
129 strm->adler = state->wrap & 1;
130 state->mode = HEAD;
131 state->last = 0;
132 state->havedict = 0;
133 state->dmax = 32768U;
134 state->head = Z_NULL;
135 state->hold = 0;
136 state->bits = 0;
137 state->lencode = state->distcode = state->next = state->codes;
138 state->sane = 1;
139 state->back = -1;
140 Tracev((stderr, "inflate: reset\n"));
141 return Z_OK;
142}
143
144int ZEXPORT inflateReset(strm)
145z_streamp strm;

Callers 1

inflateResetFunction · 0.85

Calls 1

inflateStateCheckFunction · 0.85

Tested by

no test coverage detected