MCPcopy Create free account
hub / github.com/MariaDB/server / inflateResetKeep

Function inflateResetKeep

zlib/inflate.c:100–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

inflateResetFunction · 0.85

Calls 1

inflateStateCheckFunction · 0.85

Tested by

no test coverage detected