aboutsummaryrefslogtreecommitdiff
path: root/gzguts.h
diff options
context:
space:
mode:
Diffstat (limited to 'gzguts.h')
-rw-r--r--gzguts.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/gzguts.h b/gzguts.h
index 63b0c3f..ab3313a 100644
--- a/gzguts.h
+++ b/gzguts.h
@@ -84,18 +84,20 @@
84 84
85/* internal gzip file state data structure */ 85/* internal gzip file state data structure */
86typedef struct { 86typedef struct {
87 /* exposed contents for gzgetc() macro */
88 struct gzFile_s x; /* "x" for exposed */
89 /* x.have: number of bytes available at x.next */
90 /* x.next: next output data to deliver or write */
91 /* x.pos: current position in uncompressed data */
87 /* used for both reading and writing */ 92 /* used for both reading and writing */
88 int mode; /* see gzip modes above */ 93 int mode; /* see gzip modes above */
89 int fd; /* file descriptor */ 94 int fd; /* file descriptor */
90 char *path; /* path or fd for error messages */ 95 char *path; /* path or fd for error messages */
91 z_off64_t pos; /* current position in uncompressed data */
92 unsigned size; /* buffer size, zero if not allocated yet */ 96 unsigned size; /* buffer size, zero if not allocated yet */
93 unsigned want; /* requested buffer size, default is GZBUFSIZE */ 97 unsigned want; /* requested buffer size, default is GZBUFSIZE */
94 unsigned char *in; /* input buffer */ 98 unsigned char *in; /* input buffer */
95 unsigned char *out; /* output buffer (double-sized when reading) */ 99 unsigned char *out; /* output buffer (double-sized when reading) */
96 unsigned char *next; /* next output data to deliver or write */
97 /* just for reading */ 100 /* just for reading */
98 unsigned have; /* amount of output data unused at next */
99 int eof; /* true if end of input file reached */ 101 int eof; /* true if end of input file reached */
100 z_off64_t start; /* where the gzip data started, for rewinding */ 102 z_off64_t start; /* where the gzip data started, for rewinding */
101 int how; /* 0: get header, 1: copy, 2: decompress */ 103 int how; /* 0: get header, 1: copy, 2: decompress */