103 unsigned char FAR *window;
117 code const FAR *lencode;
inflate_mode
Possible inflate modes between inflate() calls.
Definition inflate.h:22
@ HEAD
i: waiting for magic header
Definition inflate.h:23
@ MATCH
o: waiting for output space to copy string
Definition inflate.h:47
@ DICT
waiting for inflateSetDictionary() call
Definition inflate.h:33
@ TABLE
i: waiting for dynamic block table lengths
Definition inflate.h:39
@ FLAGS
i: waiting for method and flags (gzip)
Definition inflate.h:24
@ LIT
o: waiting for output space to write literal
Definition inflate.h:48
@ OS
i: waiting for extra flags and operating system (gzip)
Definition inflate.h:26
@ EXLEN
i: waiting for extra length (gzip)
Definition inflate.h:27
@ NAME
i: waiting for end of file name (gzip)
Definition inflate.h:29
@ STORED
i: waiting for stored size (length and complement)
Definition inflate.h:36
@ CODELENS
i: waiting for length/lit and distance code lengths
Definition inflate.h:41
@ DICTID
i: waiting for dictionary check value
Definition inflate.h:32
@ TYPEDO
i: same, but skip check to exit inflate on new block
Definition inflate.h:35
@ COMMENT
i: waiting for end of comment (gzip)
Definition inflate.h:30
@ LENLENS
i: waiting for code length code lengths
Definition inflate.h:40
@ TYPE
i: waiting for type bits, including last-flag bit
Definition inflate.h:34
@ COPY
i/o: waiting for input or output to copy stored block
Definition inflate.h:38
@ LEN_
i: same as LEN below, but only first time in
Definition inflate.h:42
@ COPY_
i/o: same as COPY below, but only first time in
Definition inflate.h:37
@ DIST
i: waiting for distance code
Definition inflate.h:45
@ LENEXT
i: waiting for length extra bits
Definition inflate.h:44
@ HCRC
i: waiting for header crc (gzip)
Definition inflate.h:31
@ TIME
i: waiting for modification time (gzip)
Definition inflate.h:25
@ DISTEXT
i: waiting for distance extra bits
Definition inflate.h:46
@ LEN
i: waiting for length/lit/eob code
Definition inflate.h:43
@ EXTRA
i: waiting for extra bytes (gzip)
Definition inflate.h:28
Structure for decoding tables.
Definition inftrees.h:28
State maintained between inflate() calls – approximately 7K bytes, not including the allocated slidin...
Definition inflate.h:84
code const FAR * distcode
{ starting table for length/literal codes
Definition inflate.h:118
unsigned wnext
window write index
Definition inflate.h:102
int havedict
true if dictionary provided
Definition inflate.h:90
unsigned lenbits
{ starting table for distance codes
Definition inflate.h:119
unsigned ndist
number of distance code lengths
Definition inflate.h:125
unsigned nlen
number of length code lengths
Definition inflate.h:124
unsigned have
number of code lengths in lens[]
Definition inflate.h:126
unsigned length
literal or length of data to copy
Definition inflate.h:110
unsigned long hold
input bit accumulator
Definition inflate.h:106
unsigned ncode
number of code length code lengths
Definition inflate.h:123
z_streamp strm
pointer back to this zlib stream
Definition inflate.h:85
unsigned whave
valid bytes in the window
Definition inflate.h:101
unsigned wbits
log base 2 of requested window size
Definition inflate.h:99
unsigned short work[288]
work area for code table building
Definition inflate.h:129
code FAR * next
next available space in codes[]
Definition inflate.h:127
unsigned distbits
{ index bits for lencode
Definition inflate.h:120
int sane
if false, allow invalid distance too far
Definition inflate.h:131
int wrap
bit 0 true for zlib, bit 1 true for gzip, bit 2 true to validate check value
Definition inflate.h:88
inflate_mode mode
current inflate mode
Definition inflate.h:86
int flags
gzip header method and flags, 0 if zlib, or -1 if raw or no header yet
Definition inflate.h:91
unsigned short lens[320]
temporary storage for code lengths
Definition inflate.h:128
gz_headerp head
where to save gzip header information
Definition inflate.h:96
int last
true if processing last block
Definition inflate.h:87
int back
bits back of last unprocessed length/lit
Definition inflate.h:132
unsigned wsize
window size or zero if not using window
Definition inflate.h:100
unsigned dmax
zlib header max distance (INFLATE_STRICT)
Definition inflate.h:93
unsigned long check
protected copy of check value
Definition inflate.h:94
code codes[ENOUGH]
space for code tables
Definition inflate.h:130
unsigned long total
protected copy of output count
Definition inflate.h:95
Compressed stream state information.
Definition zlib.h:136