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

Function inflateStateCheck

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

Source from the content-addressed store, hash-verified

103 unsigned len));
104
105local int inflateStateCheck(strm)
106z_streamp strm;
107{
108 struct inflate_state FAR *state;
109 if (strm == Z_NULL ||
110 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0)
111 return 1;
112 state = (struct inflate_state FAR *)strm->state;
113 if (state == Z_NULL || state->strm != strm ||
114 state->mode < HEAD || state->mode > SYNC)
115 return 1;
116 return 0;
117}
118
119int ZEXPORT inflateResetKeep(strm)
120z_streamp strm;

Callers 5

inflateResetKeepFunction · 0.85
inflateResetFunction · 0.85
inflateReset2Function · 0.85
inflatePrimeFunction · 0.85
inflate.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected