39 }
while (*have <
len);
64 if (
state->eof == 0) {
66 unsigned char *
p =
state->in;
67 unsigned const char *
q = strm->next_in;
68 unsigned n = strm->avail_in;
74 state->size - strm->avail_in, &got) == -1)
76 strm->avail_in += got;
77 strm->next_in =
state->in;
97 if (
state->size == 0) {
113 state->strm.avail_in = 0;
125 if (strm->avail_in < 2) {
128 if (strm->avail_in == 0)
139 if (strm->avail_in > 1 &&
140 strm->next_in[0] == 31 && strm->next_in[1] == 139) {
149 if (
state->direct == 0) {
160 memcpy(
state->x.next, strm->next_in, strm->avail_in);
161 state->x.have = strm->avail_in;
181 had = strm->avail_out;
186 if (strm->avail_in == 0) {
195 "internal error: inflate stream corrupt");
204 strm->msg ==
NULL ?
"compressed data error" : strm->msg);
210 state->x.have = had - strm->avail_out;
211 state->x.next = strm->next_out -
state->x.have;
247 strm->avail_out =
state->size << 1;
248 strm->next_out =
state->out;
252 }
while (
state->x.have == 0 && (!
state->eof || strm->avail_in));
276 else if (
state->eof &&
state->strm.avail_in == 0)
329 else if (
state->eof &&
state->strm.avail_in == 0) {
353 state->strm.avail_out =
n;
354 state->strm.next_out = (
unsigned char *)
buf;
448 unsigned char buf[1];
465 return *(
state->x.next)++;
507 if (
state->x.have == 0) {
575 if (
state->x.have == 0) {
619 return state->direct;
void get(int argc, const char *argv[])
static int inflateReset(z_streamp strm)
int inflate(z_streamp strm, int flush)
int inflateEnd(z_streamp strm)
#define zstrerror(errnum)
GLdouble GLdouble GLdouble GLdouble q
GLenum GLuint GLenum GLsizei const GLchar * buf
void ZLIB_INTERNAL gz_error(gz_statep state, int err, const char *msg)
int ZEXPORT gzungetc(int c, gzFile file)
int ZEXPORT gzdirect(gzFile file)
int gz_skip(gz_statep state, z_off64_t len)
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
int ZEXPORT gzgetc_(gzFile file)
int gz_fetch(gz_statep state)
z_size_t gz_read(gz_statep state, voidp buf, z_size_t len)
int gz_decomp(gz_statep state)
int gz_avail(gz_statep state)
int ZEXPORT gzclose_r(gzFile file)
char *ZEXPORT gzgets(gzFile file, char *buf, int len)
int gz_load(gz_statep state, unsigned char *buf, unsigned len, unsigned *have)
int gz_look(gz_statep state)
z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file)
#define memcpy(s1, s2, n)
static unsigned(__cdecl *hash_bstr)(bstr_t s)
#define inflateInit2(strm, windowBits)