Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
ZDeflate.c File Reference
#include "Bits.h"
Include dependency graph for ZDeflate.c:

Classes

struct  config

Macros

#define check_match(start, match, length)
#define EQUAL   0
#define FAST   4
#define FLUSH_BLOCK(eof)
#define HASH_MASK   (HASH_SIZE-1)
#define INSERT_STRING(s, match_head)
#define NIL   0
#define SLOW   2
#define TOO_FAR   4096
#define UPDATE_HASH(h, c)
#define WMASK   (WSIZE-1)

Typedefs

typedef struct config config

Functions

ulg R__Deflate (bits_internal_state *state, int *errorflag)
static ulg R__Deflate_fast ()
static ulg R__Deflate_fast (bits_internal_state *state, int *errorflag)
static int R__fill_window ()
static int R__fill_window (bits_internal_state *state)
int R__lm_free ()
int R__lm_init (bits_internal_state *state, int pack_level, ush *flags)
int R__longest_match ()
int R__longest_match (bits_internal_state *state, IPos cur_match)

Variables

static config configuration_table [10]

Macro Definition Documentation

◆ check_match

#define check_match ( start,
match,
length )

Definition at line 483 of file ZDeflate.c.

◆ EQUAL

#define EQUAL   0

Definition at line 165 of file ZDeflate.c.

◆ FAST

#define FAST   4

Definition at line 107 of file ZDeflate.c.

◆ FLUSH_BLOCK

#define FLUSH_BLOCK ( eof)
Value:
R__flush_block(state, state->R__block_start >= 0L ? (char*)&state->R__window[(unsigned)state->R__block_start] : \
(char*)NULL, (long)state->R__strstart - state->R__block_start, (eof),errorflag)
ulg R__flush_block()
#define NULL
Definition ZInflate.c:15

Definition at line 554 of file ZDeflate.c.

◆ HASH_MASK

#define HASH_MASK   (HASH_SIZE-1)

Definition at line 100 of file ZDeflate.c.

◆ INSERT_STRING

#define INSERT_STRING ( s,
match_head )
Value:
(UPDATE_HASH(state->ins_h, state->R__window[(s) + MIN_MATCH-1]), \
state->R__prev[(s) & WMASK] = match_head = state->R__head[state->ins_h], \
state->R__head[state->ins_h] = (s))
#define UPDATE_HASH(h, c)
Definition ZDeflate.c:190
#define WMASK
Definition ZDeflate.c:101
#define MIN_MATCH
Definition ZIP.h:22
TSpectrum2 * s
Definition peaks2.C:33

Definition at line 200 of file ZDeflate.c.

◆ NIL

#define NIL   0

Definition at line 104 of file ZDeflate.c.

◆ SLOW

#define SLOW   2

Definition at line 108 of file ZDeflate.c.

◆ TOO_FAR

#define TOO_FAR   4096

Definition at line 112 of file ZDeflate.c.

◆ UPDATE_HASH

#define UPDATE_HASH ( h,
c )
Value:
(h = (((h)<<H_SHIFT) ^ (c)) & HASH_MASK)
#define H_SHIFT
Definition Bits.h:133
#define c(i)
Definition RSha256.hxx:101
#define h(i)
Definition RSha256.hxx:106
#define HASH_MASK
Definition ZDeflate.c:100

Definition at line 190 of file ZDeflate.c.

◆ WMASK

#define WMASK   (WSIZE-1)

Definition at line 101 of file ZDeflate.c.

Typedef Documentation

◆ config

typedef struct config config

Function Documentation

◆ R__Deflate()

ulg R__Deflate ( bits_internal_state * state,
int * errorflag )

Definition at line 645 of file ZDeflate.c.

◆ R__Deflate_fast() [1/2]

ulg R__Deflate_fast ( )
static

◆ R__Deflate_fast() [2/2]

ulg R__Deflate_fast ( bits_internal_state * state,
int * errorflag )
static

Definition at line 564 of file ZDeflate.c.

◆ R__fill_window() [1/2]

int R__fill_window ( )
static

◆ R__fill_window() [2/2]

int R__fill_window ( bits_internal_state * state)
static

Definition at line 495 of file ZDeflate.c.

◆ R__lm_free()

int R__lm_free ( )

Definition at line 304 of file ZDeflate.c.

◆ R__lm_init()

int R__lm_init ( bits_internal_state * state,
int pack_level,
ush * flags )

Definition at line 214 of file ZDeflate.c.

◆ R__longest_match() [1/2]

int R__longest_match ( )

◆ R__longest_match() [2/2]

int R__longest_match ( bits_internal_state * state,
IPos cur_match )

Definition at line 333 of file ZDeflate.c.

Variable Documentation

◆ configuration_table

config configuration_table[10]
static
Initial value:
= {
{0, 0, 0, 0},
{4, 4, 8, 4},
{4, 5, 16, 8},
{4, 6, 32, 32},
{4, 4, 16, 16},
{8, 16, 32, 32},
{8, 16, 128, 128},
{8, 32, 128, 256},
{32, 128, 258, 1024},
{32, 258, 258, 4096}}

Definition at line 146 of file ZDeflate.c.