Bits.h File Reference

#include "zlib.h"

Go to the source code of this file.

Defines

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

Functions

local int R__mem_read OF ((char *buf, unsigned size))
local void R__flush_outbuf OF ((unsigned w, unsigned size))
local int R__mem_read OF ((char *b, unsigned bsize))
local void R__flush_outbuf OF ((unsigned w, unsigned bytes))
void R__SetZipMode (int mode)
void R__bi_init (FILE *zipfile)
void R__send_bits (int value, int length)
unsigned R__bi_reverse (unsigned code, int len)
local void R__flush_outbuf (unsigned w, unsigned bytes)
void R__bi_windup ()
void R__copy_block (char far *buf, unsigned len, int header)
int R__seekable ()
ulg R__memcompress (char *tgt, ulg tgtsize, char *src, ulg srcsize)
local int R__mem_read (char *b, unsigned bsize)
void R__zip (int cxlevel, int *srcsize, char *src, int *tgtsize, char *tgt, int *irep)
void R__error (char *msg)

Variables

local FILE * zfile
local unsigned short bi_buf
local int bi_valid
local char * in_buf
local char * out_buf
local unsigned in_offset
local unsigned out_offset
local unsigned in_size
local unsigned out_size
int R__ZipMode = 1
static int error_flag


Define Documentation

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

Definition at line 95 of file Bits.h.

#define HDRSIZE   9

Definition at line 402 of file Bits.h.

#define PUTBYTE ( b   ) 

Value:

{ if (out_offset < out_size) { \
    out_buf[out_offset++] = (char) (b); \
  } else { \
    R__flush_outbuf((b),1); \
  } \
}

Definition at line 135 of file Bits.h.

#define PUTSHORT ( w   ) 

Value:

{ if (out_offset < out_size-1) { \
    out_buf[out_offset++] = (char) ((w) & 0xff); \
    out_buf[out_offset++] = (char) ((ush)(w) >> 8); \
  } else { \
    R__flush_outbuf((w),2); \
  } \
}

Definition at line 126 of file Bits.h.


Function Documentation

local void R__flush_outbuf OF ( (unsigned w, unsigned bytes)   ) 

local int R__mem_read OF ( (char *b, unsigned bsize  ) 

local void R__flush_outbuf OF ( (unsigned w, unsigned size  ) 

local int R__mem_read OF ( (char *buf, unsigned size  ) 

void R__bi_init ( FILE *  zipfile  ) 

Definition at line 167 of file Bits.h.

References RooFitShortHand::L().

unsigned R__bi_reverse ( unsigned  code,
int  len 
)

Definition at line 211 of file Bits.h.

void R__bi_windup (  ) 

Definition at line 244 of file Bits.h.

References NULL, PUTBYTE, PUTSHORT, and R__flush_outbuf().

void R__copy_block ( char far *  buf,
unsigned  len,
int  header 
)

Definition at line 265 of file Bits.h.

References fprintf(), PUTSHORT, R__bi_windup(), R__error(), and verbose.

void R__error ( char *  msg  ) 

Definition at line 517 of file Bits.h.

References fprintf(), and verbose.

local void R__flush_outbuf ( unsigned  w,
unsigned  bytes 
)

Definition at line 226 of file Bits.h.

References PUTSHORT, and R__error().

local int R__mem_read ( char *  b,
unsigned  bsize 
)

Definition at line 371 of file Bits.h.

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

Definition at line 321 of file Bits.h.

References flags, RooFitShortHand::L(), level, method, NULL, R__bi_init(), R__ct_init(), R__Deflate(), R__error(), R__lm_init(), R__window_size, UNKNOWN, and Z_DEFLATED.

int R__seekable (  ) 

Definition at line 298 of file Bits.h.

References fseek, RooFitShortHand::L(), NULL, and SEEK_CUR.

void R__send_bits ( int  value,
int  length 
)

Definition at line 182 of file Bits.h.

References Assert, Buf_size, PUTSHORT, and Tracevv.

void R__SetZipMode ( int  mode  ) 

Definition at line 159 of file Bits.h.

Referenced by TROOT::InitSystem().

void R__zip ( int  cxlevel,
int *  srcsize,
char *  src,
int *  tgtsize,
char *  tgt,
int *  irep 
)

Definition at line 405 of file Bits.h.

References deflate(), deflateEnd(), deflateInit, flags, HDRSIZE, RooFitShortHand::L(), level, method, NULL, R__bi_init(), R__ct_init(), R__Deflate(), R__error(), R__lm_init(), R__window_size, PC3::stream(), UNKNOWN, Z_DEFLATED, Z_FINISH, Z_OK, and Z_STREAM_END.


Variable Documentation

local unsigned short bi_buf

Definition at line 90 of file Bits.h.

local int bi_valid

Definition at line 100 of file Bits.h.

int error_flag [static]

Definition at line 403 of file Bits.h.

local char* in_buf

Definition at line 105 of file Bits.h.

local unsigned in_offset

Definition at line 110 of file Bits.h.

local unsigned in_size

Definition at line 115 of file Bits.h.

local char * out_buf

Definition at line 105 of file Bits.h.

local unsigned out_offset

Definition at line 110 of file Bits.h.

local unsigned out_size

Definition at line 115 of file Bits.h.

int R__ZipMode = 1

Definition at line 148 of file Bits.h.

local FILE* zfile

Definition at line 88 of file Bits.h.


Generated on Tue Jul 5 15:57:35 2011 for ROOT_528-00b_version by  doxygen 1.5.1