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