Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | state |
struct | huffman |
Macros | |
#define | local static /* for local function definitions */ |
#define | MAXBITS 15 /* maximum bits in a code */ |
#define | MAXLCODES 286 /* maximum number of literal/length codes */ |
#define | MAXDCODES 30 /* maximum number of distance codes */ |
#define | MAXCODES (MAXLCODES+MAXDCODES) /* maximum codes lengths to read */ |
#define | FIXLCODES 288 /* number of fixed literal/length codes */ |
Functions | |
int | bits (struct state *s, int need) |
int | stored (struct state *s) |
int | decode (struct state *s, const struct huffman *h) |
int | construct (struct huffman *h, const short *length, int n) |
int | codes (struct state *s, const struct huffman *lencode, const struct huffman *distcode) |
int | fixed (struct state *s) |
int | dynamic (struct state *s) |
int | puff (unsigned char *dest, unsigned long *destlen, const unsigned char *source, unsigned long *sourcelen) |
Definition at line 126 of file puff.c.
Definition at line 436 of file puff.c.
References bits(), decode(), len, NIL, and s.
Referenced by dynamic(), entries(), fixed(), inflate_table(), inflate_table9(), rz_bin_wasm_get_codes(), and symbols().
Definition at line 340 of file puff.c.
Definition at line 263 of file puff.c.
Definition at line 665 of file puff.c.
References bits(), codes(), construct(), huffman::count, decode(), err, len, MAXBITS, MAXCODES, MAXDCODES, MAXLCODES, s, and huffman::symbol.
Referenced by parseMod(), and puff().
Definition at line 536 of file puff.c.
References codes(), construct(), huffman::count, FIXLCODES, MAXBITS, MAXDCODES, s, and huffman::symbol.
Referenced by fixedtables(), and puff().
int puff | ( | unsigned char * | dest, |
unsigned long * | destlen, | ||
const unsigned char * | source, | ||
unsigned long * | sourcelen | ||
) |