Classes | Macros | Functions
zlib/contrib/puff/puff.c File Reference
#include <setjmp.h>
#include "puff.h"
Include dependency graph for zlib/contrib/puff/puff.c:

Go to the source code of this file.

Classes

struct  huffman
 
struct  state
 

Macros

#define FIXLCODES   288 /* number of fixed literal/length codes */
 
#define local   static /* for local function definitions */
 
#define MAXBITS   15 /* maximum bits in a code */
 
#define MAXCODES   (MAXLCODES+MAXDCODES) /* maximum codes lengths to read */
 
#define MAXDCODES   30 /* maximum number of distance codes */
 
#define MAXLCODES   286 /* maximum number of literal/length codes */
 

Functions

int bits (struct state *s, int need)
 
int codes (struct state *s, const struct huffman *lencode, const struct huffman *distcode)
 
int construct (struct huffman *h, const short *length, int n)
 
int decode (struct state *s, const struct huffman *h)
 
int dynamic (struct state *s)
 
int fixed (struct state *s)
 
int puff (unsigned char *dest, unsigned long *destlen, const unsigned char *source, unsigned long *sourcelen)
 
int stored (struct state *s)
 

Macro Definition Documentation

◆ FIXLCODES

#define FIXLCODES   288 /* number of fixed literal/length codes */

Definition at line 95 of file zlib/contrib/puff/puff.c.

◆ local

#define local   static /* for local function definitions */

Definition at line 85 of file zlib/contrib/puff/puff.c.

◆ MAXBITS

#define MAXBITS   15 /* maximum bits in a code */

Definition at line 91 of file zlib/contrib/puff/puff.c.

◆ MAXCODES

#define MAXCODES   (MAXLCODES+MAXDCODES) /* maximum codes lengths to read */

Definition at line 94 of file zlib/contrib/puff/puff.c.

◆ MAXDCODES

#define MAXDCODES   30 /* maximum number of distance codes */

Definition at line 93 of file zlib/contrib/puff/puff.c.

◆ MAXLCODES

#define MAXLCODES   286 /* maximum number of literal/length codes */

Definition at line 92 of file zlib/contrib/puff/puff.c.

Function Documentation

◆ bits()

int bits ( struct state s,
int  need 
)

Definition at line 126 of file zlib/contrib/puff/puff.c.

◆ codes()

int codes ( struct state s,
const struct huffman lencode,
const struct huffman distcode 
)

Definition at line 436 of file zlib/contrib/puff/puff.c.

◆ construct()

int construct ( struct huffman h,
const short *  length,
int  n 
)

Definition at line 340 of file zlib/contrib/puff/puff.c.

◆ decode()

int decode ( struct state s,
const struct huffman h 
)

Definition at line 263 of file zlib/contrib/puff/puff.c.

◆ dynamic()

int dynamic ( struct state s)

Definition at line 665 of file zlib/contrib/puff/puff.c.

◆ fixed()

int fixed ( struct state s)

Definition at line 536 of file zlib/contrib/puff/puff.c.

◆ puff()

int puff ( unsigned char *  dest,
unsigned long destlen,
const unsigned char *  source,
unsigned long sourcelen 
)

Definition at line 793 of file zlib/contrib/puff/puff.c.

◆ stored()

int stored ( struct state s)

Definition at line 164 of file zlib/contrib/puff/puff.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:27