Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
sdefl.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sdefl_freq
 
struct  sdefl_code_words
 
struct  sdefl_lens
 
struct  sdefl_codes
 
struct  sdefl_seqt
 
struct  sdefl
 

Macros

#define SDEFL_MAX_OFF   (1 << 15)
 
#define SDEFL_WIN_SIZ   SDEFL_MAX_OFF
 
#define SDEFL_WIN_MSK   (SDEFL_WIN_SIZ-1)
 
#define SDEFL_HASH_BITS   15
 
#define SDEFL_HASH_SIZ   (1 << SDEFL_HASH_BITS)
 
#define SDEFL_HASH_MSK   (SDEFL_HASH_SIZ-1)
 
#define SDEFL_MIN_MATCH   4
 
#define SDEFL_BLK_MAX   (256*1024)
 
#define SDEFL_SEQ_SIZ   ((SDEFL_BLK_MAX + SDEFL_MIN_MATCH)/SDEFL_MIN_MATCH)
 
#define SDEFL_SYM_MAX   (288)
 
#define SDEFL_OFF_MAX   (32)
 
#define SDEFL_PRE_MAX   (19)
 
#define SDEFL_LVL_MIN   0
 
#define SDEFL_LVL_DEF   5
 
#define SDEFL_LVL_MAX   8
 

Functions

int sdefl_bound (int in_len)
 
int sdeflate (struct sdefl *s, void *o, const void *i, int n, int lvl)
 
int zsdeflate (struct sdefl *s, void *o, const void *i, int n, int lvl)
 

Macro Definition Documentation

◆ SDEFL_BLK_MAX

#define SDEFL_BLK_MAX   (256*1024)

Definition at line 127 of file sdefl.h.

◆ SDEFL_HASH_BITS

#define SDEFL_HASH_BITS   15

Definition at line 122 of file sdefl.h.

◆ SDEFL_HASH_MSK

#define SDEFL_HASH_MSK   (SDEFL_HASH_SIZ-1)

Definition at line 124 of file sdefl.h.

◆ SDEFL_HASH_SIZ

#define SDEFL_HASH_SIZ   (1 << SDEFL_HASH_BITS)

Definition at line 123 of file sdefl.h.

◆ SDEFL_LVL_DEF

#define SDEFL_LVL_DEF   5

Definition at line 135 of file sdefl.h.

◆ SDEFL_LVL_MAX

#define SDEFL_LVL_MAX   8

Definition at line 136 of file sdefl.h.

◆ SDEFL_LVL_MIN

#define SDEFL_LVL_MIN   0

Definition at line 134 of file sdefl.h.

◆ SDEFL_MAX_OFF

#define SDEFL_MAX_OFF   (1 << 15)

Definition at line 118 of file sdefl.h.

◆ SDEFL_MIN_MATCH

#define SDEFL_MIN_MATCH   4

Definition at line 126 of file sdefl.h.

◆ SDEFL_OFF_MAX

#define SDEFL_OFF_MAX   (32)

Definition at line 131 of file sdefl.h.

◆ SDEFL_PRE_MAX

#define SDEFL_PRE_MAX   (19)

Definition at line 132 of file sdefl.h.

◆ SDEFL_SEQ_SIZ

#define SDEFL_SEQ_SIZ   ((SDEFL_BLK_MAX + SDEFL_MIN_MATCH)/SDEFL_MIN_MATCH)

Definition at line 128 of file sdefl.h.

◆ SDEFL_SYM_MAX

#define SDEFL_SYM_MAX   (288)

Definition at line 130 of file sdefl.h.

◆ SDEFL_WIN_MSK

#define SDEFL_WIN_MSK   (SDEFL_WIN_SIZ-1)

Definition at line 120 of file sdefl.h.

◆ SDEFL_WIN_SIZ

#define SDEFL_WIN_SIZ   SDEFL_MAX_OFF

Definition at line 119 of file sdefl.h.

Function Documentation

◆ sdefl_bound()

int sdefl_bound ( int  in_len)
+ Here is the caller graph for this function:

◆ sdeflate()

int sdeflate ( struct sdefl s,
void *  o,
const void *  i,
int  n,
int  lvl 
)
+ Here is the caller graph for this function:

◆ zsdeflate()

int zsdeflate ( struct sdefl s,
void *  o,
const void *  i,
int  n,
int  lvl 
)