Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
cram_codecs.h File Reference
#include <inttypes.h>

Go to the source code of this file.

Classes

struct  cram_huffman_code
 
struct  cram_huffman_decoder
 
struct  cram_huffman_encoder
 
struct  cram_beta_decoder
 
struct  cram_gamma_decoder
 
struct  cram_subexp_decoder
 
struct  cram_external_decoder
 
struct  cram_byte_array_len_decoder
 
struct  cram_byte_array_stop_decoder
 
struct  cram_byte_array_len_encoder
 
struct  cram_codec
 

Macros

#define MAX_HUFF   128
 
#define GET_BIT_MSB(b, v)   (void)(v<<=1, v|=(b->data[b->byte] >> b->bit)&1, b->byte += (--b->bit<0), b->bit&=7)
 

Typedefs

typedef struct cram_codec cram_codec
 

Functions

char * cram_encoding2str (enum cram_encoding t)
 
cram_codeccram_decoder_init (enum cram_encoding codec, char *data, int size, enum cram_external_type option, int version)
 
cram_codeccram_encoder_init (enum cram_encoding codec, cram_stats *st, enum cram_external_type option, void *dat, int version)
 
int cram_codec_to_id (cram_codec *c, int *id2)
 

Macro Definition Documentation

#define GET_BIT_MSB (   b,
 
)    (void)(v<<=1, v|=(b->data[b->byte] >> b->bit)&1, b->byte += (--b->bit<0), b->bit&=7)
#define MAX_HUFF   128

Typedef Documentation

typedef struct cram_codec cram_codec

Function Documentation

int cram_codec_to_id ( cram_codec c,
int *  id2 
)
cram_codec* cram_decoder_init ( enum cram_encoding  codec,
char *  data,
int  size,
enum cram_external_type  option,
int  version 
)
cram_codec* cram_encoder_init ( enum cram_encoding  codec,
cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)
char* cram_encoding2str ( enum cram_encoding  t)