ZLIB
Loading...
Searching...
No Matches
inftrees.h
Go to the documentation of this file.
1
28typedef struct {
29 unsigned char op;
30 unsigned char bits;
31 unsigned short val;
32} code;
33
34/* op values as set by inflate_table():
35 00000000 - literal
36 0000tttt - table link, tttt != 0 is the number of table index bits
37 0001eeee - length or distance, eeee is the number of extra bits
38 01100000 - end of block
39 01000000 - invalid code
40 */
41
58#define ENOUGH_LENS 852
59#define ENOUGH_DISTS 592
60#define ENOUGH (ENOUGH_LENS+ENOUGH_DISTS)
62
64typedef enum {
65 CODES,
66 LENS,
67 DISTS
68} codetype;
69
70int ZLIB_INTERNAL inflate_table (codetype type, unsigned short* lens,
71 unsigned codes, code** table,
72 unsigned* bits, unsigned short* work);
codetype
Type of code to build for inflate_table()
Definition inftrees.h:64
Structure for decoding tables.
Definition inftrees.h:28
unsigned char op
operation, extra bits, table bits
Definition inftrees.h:29
unsigned char bits
bits in this part of the code
Definition inftrees.h:30
unsigned short val
offset in table or code value
Definition inftrees.h:31