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 if (strm->avail_in) {
161 memcpy(
state->x.next, strm->next_in, strm->avail_in);
162 state->x.have = strm->avail_in;
183 had = strm->avail_out;
188 if (strm->avail_in == 0) {
197 "internal error: inflate stream corrupt");
206 strm->msg ==
NULL ?
"compressed data error" : strm->msg);
212 state->x.have = had - strm->avail_out;
213 state->x.next = strm->next_out -
state->x.have;
249 strm->avail_out =
state->size << 1;
250 strm->next_out =
state->out;
254 }
while (
state->x.have == 0 && (!
state->eof || strm->avail_in));
278 else if (
state->eof &&
state->strm.avail_in == 0)
331 else if (
state->eof &&
state->strm.avail_in == 0) {
355 state->strm.avail_out =
n;
356 state->strm.next_out = (
unsigned char *)
buf;
450 unsigned char buf[1];
467 return *(
state->x.next)++;
509 if (
state->x.have == 0) {
577 if (
state->x.have == 0) {
621 return state->direct;
int ZEXPORT gzdirect(gzFile file)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
int gz_avail(gz_statep state)
int ZEXPORT inflateReset(z_streamp strm)
z_size_t gz_read(gz_statep state, voidp buf, z_size_t len)
GLenum GLuint GLenum GLsizei const GLchar * buf
int ZEXPORT gzgetc_(gzFile file)
int gz_fetch(gz_statep state)
int ZEXPORT gzungetc(int c, gzFile file)
int gz_decomp(gz_statep state)
void ZLIB_INTERNAL gz_error(gz_statep state, int err, const char *msg)
void get(int argc, const char *argv[])
int ZEXPORT gzclose_r(gzFile file)
GLdouble GLdouble GLdouble GLdouble q
int gz_look(gz_statep state)
int inflateEnd(z_streamp strm)
int gz_load(gz_statep state, unsigned char *buf, unsigned len, unsigned *have)
z_size_t ZEXPORT gzfread(voidp buf, z_size_t size, z_size_t nitems, gzFile file)
#define memcpy(s1, s2, n)
char *ZEXPORT gzgets(gzFile file, char *buf, int len)
int ZEXPORT gzgetc(gzFile file)
int gz_load OF((gz_statep, unsigned char *, unsigned, unsigned *))
int gz_skip(gz_statep state, z_off64_t len)
#define inflateInit2(strm, windowBits)
int inflate(z_streamp strm, int flush)
int ZEXPORT gzread(gzFile file, voidp buf, unsigned len)
_CRTIMP int __cdecl read(_In_ int _FileHandle, _Out_writes_bytes_(_MaxCharCount) void *_DstBuf, _In_ unsigned int _MaxCharCount)
static unsigned(__cdecl *hash_bstr)(bstr_t s)
#define zstrerror(errnum)