diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:27:08 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:27:08 -0700 |
commit | 7df877eccdd826e94df53215f65dee639428e83f (patch) | |
tree | 11ed5070798961e28a4c69d9272ecaada500abc3 /gzguts.h | |
parent | dc5a43ebfadb6b775f6e64bfeb5a461c66acb394 (diff) | |
download | zlib-7df877eccdd826e94df53215f65dee639428e83f.tar.gz |
zlib 1.2.3.7v1.2.3.7
Diffstat (limited to 'gzguts.h')
-rw-r--r-- | gzguts.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -76,6 +76,11 @@ #define GZ_WRITE 31153 #define GZ_APPEND 1 /* mode set to GZ_WRITE after the file is opened */ +/* values for gz_state how */ +#define LOOK 0 /* look for a gzip header */ +#define COPY 1 /* copy input directly */ +#define GZIP 2 /* decompress a gzip stream */ + /* internal gzip file state data structure */ typedef struct { /* used for both reading and writing */ @@ -89,17 +94,18 @@ typedef struct { unsigned char *out; /* output buffer (double-sized when reading) */ unsigned char *next; /* next output data to deliver or write */ /* just for reading */ - int how; /* 0: get header, 1: copy, 2: decompress */ - unsigned have; /* amount of output data unused */ + unsigned have; /* amount of output data unused at next */ + int eof; /* true if end of input file reached */ z_off64_t start; /* where the gzip data started, for rewinding */ z_off64_t raw; /* where the raw data started, for seeking */ - int eof; /* true if end of input file reached */ + int how; /* 0: get header, 1: copy, 2: decompress */ + int direct; /* true if last read direct, false if gzip */ /* just for writing */ int level; /* compression level */ int strategy; /* compression strategy */ /* seek request */ - int seek; /* true if seek request pending */ z_off64_t skip; /* amount to skip (already rewound if backwards) */ + int seek; /* true if seek request pending */ /* error information */ int err; /* error code */ char *msg; /* error message */ |