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
GLubyte GLubyte GLubyte GLubyte w
struct internal_state::@4018::@4019 check
struct inflate_blocks_state FAR inflate_blocks_statef
GLdouble GLdouble GLdouble r
int ZEXPORT inflateReset(z_streamp strm)
inflate_blocks_statef * inflate_blocks_new(z_streamp z, check_func c, uInt w)
#define ZFREE(strm, addr)
static const WCHAR version[]
int inflate_blocks_free(inflate_blocks_statef *s, z_streamp z)
GLboolean GLboolean GLboolean b
inflate_blocks_statef * blocks
int const char int stream_size
union internal_state::@4018 sub
int inflate_blocks(inflate_blocks_statef *s, z_streamp z, int r)
int inflateEnd(z_streamp strm)
#define ZALLOC(strm, items, size)
void zcfree(voidpf opaque, voidpf ptr)
voidpf zcalloc(voidpf opaque, unsigned items, unsigned size)
int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, const char *version, int stream_size)
int inflate(z_streamp strm, int flush)
void inflate_blocks_reset(inflate_blocks_statef *s, z_streamp z, uLongf *c)
uLong ZEXPORT adler32(uLong adler, const Bytef *buf, uInt len)