Lines Matching defs:inflate_state
81 struct inflate_state { struct
82 inflate_mode mode; /* current inflate mode */
83 int last; /* true if processing last block */
84 int wrap; /* bit 0 true for zlib, bit 1 true for gzip */
85 int havedict; /* true if dictionary provided */
86 int flags; /* gzip header method and flags (0 if zlib) */
87 unsigned dmax; /* zlib header max distance (INFLATE_STRICT) */
88 unsigned long check; /* protected copy of check value */
89 unsigned long total; /* protected copy of output count */
90 gz_headerp head; /* where to save gzip header information */
92 unsigned wbits; /* log base 2 of requested window size */
93 unsigned wsize; /* window size or zero if not using window */
94 unsigned whave; /* valid bytes in the window */
95 unsigned wnext; /* window write index */
96 unsigned char FAR *window; /* allocated sliding window, if needed */
98 unsigned long hold; /* input bit accumulator */
99 unsigned bits; /* number of bits in "in" */
101 unsigned length; /* literal or length of data to copy */
102 unsigned offset; /* distance back to copy string from */
104 unsigned extra; /* extra bits needed */
106 code const FAR *lencode; /* starting table for length/literal codes */
107 code const FAR *distcode; /* starting table for distance codes */
108 unsigned lenbits; /* index bits for lencode */
109 unsigned distbits; /* index bits for distcode */
111 unsigned ncode; /* number of code length code lengths */
112 unsigned nlen; /* number of length code lengths */
113 unsigned ndist; /* number of distance code lengths */
114 unsigned have; /* number of code lengths in lens[] */
115 code FAR *next; /* next available space in codes[] */
116 unsigned short lens[320]; /* temporary storage for code lengths */
117 unsigned short work[288]; /* work area for code table building */
118 code codes[ENOUGH]; /* space for code tables */
119 int sane; /* if false, allow invalid distance too far */
120 int back; /* bits back of last unprocessed length/lit */
121 unsigned was; /* initial length of match */