MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / inflateReset

Function inflateReset

zlib/inflate.c:103–126  ·  view source on GitHub ↗
(strm)

Source from the content-addressed store, hash-verified

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

Callers 4

ZEXPORTFunction · 0.85
gzrewindFunction · 0.85
inflateInit2_Function · 0.85
inflate.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected