Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
Bits.h File Reference
#include "ZIP.h"
Include dependency graph for Bits.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  bits_internal_state

Macros

#define H_SHIFT   ((HASH_BITS+MIN_MATCH-1)/MIN_MATCH)
#define HASH_BITS   15
 Bits.h is a collection of function definitions for the historic compression algorithm used by ROOT.
#define HASH_SIZE   (unsigned)(1<<HASH_BITS)
#define max_insert_length   state->max_lazy_match

Typedefs

typedef unsigned IPos
typedef ush Pos

Functions

int R__bi_init (bits_internal_state *state)
unsigned R__bi_reverse (unsigned code, int len)
int R__bi_windup (bits_internal_state *state)
int R__copy_block (bits_internal_state *state, char *buf, unsigned len, int header)
int R__Inflate (uch **ibufptr, long *ibufcnt, uch **obufptr, long *obufcnt)
 Decompress a deflated entry.
int R__mem_read ()
ulg R__memcompress (char *tgt, ulg tgtsize, char *src, ulg srcsize)
int R__send_bits (bits_internal_state *state, int value, int length)

Macro Definition Documentation

◆ H_SHIFT

#define H_SHIFT   ((HASH_BITS+MIN_MATCH-1)/MIN_MATCH)

Definition at line 133 of file Bits.h.

◆ HASH_BITS

#define HASH_BITS   15

Bits.h is a collection of function definitions for the historic compression algorithm used by ROOT.

This appears to have been a modified ZLIB-like algorithm.

As best as we can tell, this has not been used in 20+ years. Size of internal hash table.

Previously controlled by various macros which no longer exist.

Definition at line 27 of file Bits.h.

◆ HASH_SIZE

#define HASH_SIZE   (unsigned)(1<<HASH_BITS)

Definition at line 28 of file Bits.h.

◆ max_insert_length

#define max_insert_length   state->max_lazy_match

Definition at line 160 of file Bits.h.

Typedef Documentation

◆ IPos

typedef unsigned IPos

Definition at line 35 of file Bits.h.

◆ Pos

typedef ush Pos

Definition at line 33 of file Bits.h.

Function Documentation

◆ R__bi_init()

int R__bi_init ( bits_internal_state * state)

Definition at line 134 of file Bits.c.

◆ R__bi_reverse()

unsigned R__bi_reverse ( unsigned code,
int len )

Definition at line 181 of file Bits.c.

◆ R__bi_windup()

int R__bi_windup ( bits_internal_state * state)

Definition at line 217 of file Bits.c.

◆ R__copy_block()

int R__copy_block ( bits_internal_state * state,
char * buf,
unsigned len,
int header )

Definition at line 236 of file Bits.c.

◆ R__Inflate()

int R__Inflate ( uch ** ibufptr,
long * ibufcnt,
uch ** obufptr,
long * obufcnt )

Decompress a deflated entry.

Definition at line 1048 of file ZInflate.c.

◆ R__mem_read()

int R__mem_read ( )

◆ R__memcompress()

ulg R__memcompress ( char * tgt,
ulg tgtsize,
char * src,
ulg srcsize )

Definition at line 294 of file Bits.c.

◆ R__send_bits()

int R__send_bits ( bits_internal_state * state,
int value,
int length )

Definition at line 151 of file Bits.c.