92 if (state->size == 0) {
94 state->in = (
unsigned char *)malloc(state->want);
95 state->out = (
unsigned char *)malloc(state->want << 1);
96 if (state->in == NULL || state->out == NULL) {
97 if (state->out != NULL)
99 if (state->in != NULL)
104 state->size = state->want;
107 state->strm.zalloc =
Z_NULL;
108 state->strm.zfree =
Z_NULL;
109 state->strm.opaque =
Z_NULL;
110 state->strm.avail_in = 0;
111 state->strm.next_in =
Z_NULL;
146 if (state->direct == 0) {
156 state->x.next = state->out;
int ZEXPORT inflateReset(z_streamp strm)
Definition: inflate.c:129
Bytef * next_in
Definition: zlib.h:86
uInt avail_in
Definition: zlib.h:87
void gz_error(gz_statep state, int err, const char *msg)
Definition: gzlib.c:575
#define inflateInit2(strm, windowBits)
Definition: zlib.h:1654
#define Z_MEM_ERROR
Definition: zlib.h:179
#define Z_OK
Definition: zlib.h:173
static int gz_avail(gz_statep state)
Definition: gzread.c:51
#define Z_NULL
Definition: zlib.h:208
#define GZIP
Definition: deflate.h:23