MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / inflateResetKeep

Function inflateResetKeep

extern/zlib/src/inflate.c:106–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106int ZEXPORT inflateResetKeep(z_streamp strm) {
107 struct inflate_state FAR *state;
108
109 if (inflateStateCheck(strm)) return Z_STREAM_ERROR;
110 state = (struct inflate_state FAR *)strm->state;
111 strm->total_in = strm->total_out = state->total = 0;
112 strm->msg = Z_NULL;
113 if (state->wrap) /* to support ill-conceived Java test suite */
114 strm->adler = state->wrap & 1;
115 state->mode = HEAD;
116 state->last = 0;
117 state->havedict = 0;
118 state->flags = -1;
119 state->dmax = 32768U;
120 state->head = Z_NULL;
121 state->hold = 0;
122 state->bits = 0;
123 state->lencode = state->distcode = state->next = state->codes;
124 state->sane = 1;
125 state->back = -1;
126 Tracev((stderr, "inflate: reset\n"));
127 return Z_OK;
128}
129
130int ZEXPORT inflateReset(z_streamp strm) {
131 struct inflate_state FAR *state;

Callers 1

inflateResetFunction · 0.85

Calls 1

inflateStateCheckFunction · 0.85

Tested by

no test coverage detected