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

Function inflateStateCheck

zlib/inflate.c:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86#include "inffast.h"
87
88local int inflateStateCheck(z_streamp strm) {
89 struct inflate_state FAR *state;
90 if (strm == Z_NULL ||
91 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0)
92 return 1;
93 state = (struct inflate_state FAR *)strm->state;
94 if (state == Z_NULL || state->strm != strm ||
95 state->mode < HEAD || state->mode > SYNC)
96 return 1;
97 return 0;
98}
99
100int ZEXPORT inflateResetKeep(z_streamp strm) {
101 struct inflate_state FAR *state;

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