Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
Bits.c File Reference
#include "Bits.h"
#include "zlib.h"
#include <stdio.h>
#include <assert.h>
Include dependency graph for Bits.c:

Macros

#define Buf_size   (8 * 2*sizeof(char))
#define PUTBYTE(b)
#define PUTSHORT(w)

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__error (char *msg)
static int R__flush_outbuf ()
static int R__flush_outbuf (bits_internal_state *state, unsigned w, unsigned bytes)
int R__mem_read (bits_internal_state *state, char *b, unsigned bsize)
ulg R__memcompress (char *tgt, ulg tgtsize, char *src, ulg srcsize)
int R__seekable ()
int R__send_bits (bits_internal_state *state, int value, int length)

Variables

static int gBitsVerbose = 0
int gCompressionLevel = 6
 Copyright (C) 1990-1993 Mark Adler, Richard B.

Macro Definition Documentation

◆ Buf_size

#define Buf_size   (8 * 2*sizeof(char))

Definition at line 91 of file Bits.c.

◆ PUTBYTE

#define PUTBYTE ( b)
Value:
{ if (state->out_offset < state->out_size) { \
state->out_buf[state->out_offset++] = (char) (b); \
} else { \
R__flush_outbuf(state,(b),1); \
} \
}
#define b(i)
Definition RSha256.hxx:100

Definition at line 103 of file Bits.c.

◆ PUTSHORT

#define PUTSHORT ( w)
Value:
{ if (state->out_offset < state->out_size-1) { \
state->out_buf[state->out_offset++] = (char) ((w) & 0xff); \
state->out_buf[state->out_offset++] = (char) ((ush)(w) >> 8); \
} else { \
R__flush_outbuf(state,(w),2); \
} \
}
unsigned short ush
Definition ZInflate.c:225

Definition at line 94 of file Bits.c.

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__error()

int R__error ( char * msg)

Definition at line 125 of file Bits.c.

◆ R__flush_outbuf() [1/2]

int R__flush_outbuf ( )
static

◆ R__flush_outbuf() [2/2]

int R__flush_outbuf ( bits_internal_state * state,
unsigned w,
unsigned bytes )
static

Definition at line 197 of file Bits.c.

◆ R__mem_read()

int R__mem_read ( bits_internal_state * state,
char * b,
unsigned bsize )

Definition at line 353 of file Bits.c.

◆ R__memcompress()

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

Definition at line 294 of file Bits.c.

◆ R__seekable()

int R__seekable ( )

Definition at line 270 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.

Variable Documentation

◆ gBitsVerbose

int gBitsVerbose = 0
static

Definition at line 124 of file Bits.c.

◆ gCompressionLevel

int gCompressionLevel = 6

Copyright (C) 1990-1993 Mark Adler, Richard B.

Wales, Jean-loup Gailly, Kai Uwe Rommel and Igor Mandrichenko. For conditions of distribution and use, see copyright notice in zlib.h

Changed for ROOT. Functions names have a R__ prepended to differentiate them from function names in later versions of zlib.

Definition at line 77 of file Bits.c.