Lines Matching defs:inflate_state
72 struct inflate_state { struct
73 inflate_mode mode; /* current inflate mode */
74 int last; /* true if processing last block */
75 int wrap; /* bit 0 true for zlib, bit 1 true for gzip */
76 int havedict; /* true if dictionary provided */
77 int flags; /* gzip header method and flags (0 if zlib) */
78 unsigned dmax; /* zlib header max distance (INFLATE_STRICT) */
79 unsigned long check; /* protected copy of check value */
80 unsigned long total; /* protected copy of output count */
83 unsigned wbits; /* log base 2 of requested window size */
84 unsigned wsize; /* window size or zero if not using window */
85 unsigned whave; /* valid bytes in the window */
86 unsigned write; /* window write index */
87 unsigned char *window; /* allocated sliding window, if needed */
89 unsigned long hold; /* input bit accumulator */
90 unsigned bits; /* number of bits in "in" */
92 unsigned length; /* literal or length of data to copy */
93 unsigned offset; /* distance back to copy string from */
95 unsigned extra; /* extra bits needed */
97 code const *lencode; /* starting table for length/literal codes */
98 code const *distcode; /* starting table for distance codes */
99 unsigned lenbits; /* index bits for lencode */
100 unsigned distbits; /* index bits for distcode */
102 unsigned ncode; /* number of code length code lengths */
103 unsigned nlen; /* number of length code lengths */
104 unsigned ndist; /* number of distance code lengths */
105 unsigned have; /* number of code lengths in lens[] */
106 code *next; /* next available space in codes[] */
107 unsigned short lens[320]; /* temporary storage for code lengths */
108 unsigned short work[288]; /* work area for code table building */
109 code codes[ENOUGH]; /* space for code tables */