|
ZLIB
|
State maintained between inflate() calls – approximately 7K bytes, not including the allocated sliding window, which is up to 32K bytes. More...
#include <inflate.h>
Data Fields | |
| z_streamp | strm |
| pointer back to this zlib stream | |
| inflate_mode | mode |
| current inflate mode | |
| int | last |
| true if processing last block | |
| int | wrap |
| bit 0 true for zlib, bit 1 true for gzip, bit 2 true to validate check value | |
| int | havedict |
| true if dictionary provided | |
| int | flags |
| gzip header method and flags, 0 if zlib, or -1 if raw or no header yet | |
| unsigned | dmax |
| zlib header max distance (INFLATE_STRICT) | |
| unsigned long | check |
| protected copy of check value | |
| unsigned long | total |
| protected copy of output count | |
| gz_headerp | head |
| where to save gzip header information | |
sliding window | |
| unsigned | wbits |
| log base 2 of requested window size | |
| unsigned | wsize |
| window size or zero if not using window | |
| unsigned | whave |
| valid bytes in the window | |
| unsigned | wnext |
| window write index | |
bit accumulator | |
| unsigned long | hold |
| input bit accumulator | |
for string and stored block copying | |
| unsigned | length |
| literal or length of data to copy | |
fixed and dynamic code tables | |
| code const FAR * | lencode |
| code const FAR * | distcode |
| { starting table for length/literal codes | |
| unsigned | lenbits |
| { starting table for distance codes | |
| unsigned | distbits |
| { index bits for lencode | |
dynamic table building | |
| unsigned | ncode |
| number of code length code lengths | |
| unsigned | nlen |
| number of length code lengths | |
| unsigned | ndist |
| number of distance code lengths | |
| unsigned | have |
| number of code lengths in lens[] | |
| code FAR * | next |
| next available space in codes[] | |
| unsigned short | lens [320] |
| temporary storage for code lengths | |
| unsigned short | work [288] |
| work area for code table building | |
| code | codes [ENOUGH] |
| space for code tables | |
| int | sane |
| if false, allow invalid distance too far | |
| int | back |
| bits back of last unprocessed length/lit | |
State maintained between inflate() calls – approximately 7K bytes, not including the allocated sliding window, which is up to 32K bytes.