9#define DONE INFLATE_DONE
10#define BAD INFLATE_BAD
59 z->total_in =
z->total_out = 0;
108 z->state->nowrap = 0;
112 z->state->nowrap = 1;
121 z->state->wbits = (
uInt)
w;
124 if ((
z->state->blocks =
141#define NEEDBYTE {if(z->avail_in==0)return r;r=f;}
144#define NEXTBYTE (z->avail_in--,z->total_in++,*z->next_in++)
158 while (1)
switch (
z->state->mode)
164 z->state->mode =
BAD;
165 z->msg = (
char*)
"unknown compression method";
166 z->state->sub.marker = 5;
169 if ((
z->state->sub.method >> 4) + 8 >
z->state->wbits)
171 z->state->mode =
BAD;
172 z->msg = (
char*)
"invalid window size";
173 z->state->sub.marker = 5;
176 z->state->mode =
FLAG;
180 if (((
z->state->sub.method << 8) +
b) % 31)
182 z->state->mode =
BAD;
183 z->msg = (
char*)
"incorrect header check";
184 z->state->sub.marker = 5;
209 z->adler =
z->state->sub.check.need;
213 z->state->mode =
BAD;
214 z->msg = (
char*)
"need dictionary";
215 z->state->sub.marker = 0;
221 z->state->mode =
BAD;
222 z->state->sub.marker = 0;
231 if (
z->state->nowrap)
233 z->state->mode =
DONE;
253 if (
z->state->sub.check.was !=
z->state->sub.check.need)
255 z->state->mode =
BAD;
256 z->msg = (
char*)
"incorrect data check";
257 z->state->sub.marker = 5;
261 z->state->mode =
DONE;
269#ifdef NEED_DUMMY_RETURN
#define ZALLOC(strm, items, size)
static int inflateReset(z_streamp strm)
#define ZFREE(strm, addr)
int inflate(z_streamp strm, int flush)
static uLong adler32(uLong adler, const Bytef *buf, uInt len)
int inflateEnd(z_streamp strm)
static const WCHAR version[]
void zcfree(voidpf opaque, voidpf ptr)
voidpf zcalloc(voidpf opaque, unsigned items, unsigned size)
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLubyte GLubyte GLubyte GLubyte w
int inflate_blocks_free(inflate_blocks_statef *s, z_streamp z)
void inflate_blocks_reset(inflate_blocks_statef *s, z_streamp z, uLongf *c)
inflate_blocks_statef * inflate_blocks_new(z_streamp z, check_func c, uInt w)
int inflate_blocks(inflate_blocks_statef *s, z_streamp z, int r)
struct inflate_blocks_state FAR inflate_blocks_statef
int const char int stream_size
int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, const char *version, int stream_size)
struct internal_state::@4241::@4242 check
inflate_blocks_statef * blocks
union internal_state::@4241 sub