Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
cram_codecs.c File Reference
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <limits.h>
#include "cram/cram.h"

Functions

int cram_external_decode_int (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
int cram_external_decode_char (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
void cram_external_decode_free (cram_codec *c)
 
cram_codeccram_external_decode_init (char *data, int size, enum cram_external_type option, int version)
 
int cram_external_encode_int (cram_slice *slice, cram_codec *c, char *in, int in_size)
 
int cram_external_encode_char (cram_slice *slice, cram_codec *c, char *in, int in_size)
 
void cram_external_encode_free (cram_codec *c)
 
int cram_external_encode_store (cram_codec *c, cram_block *b, char *prefix, int version)
 
cram_codeccram_external_encode_init (cram_stats *st, enum cram_external_type option, void *dat, int version)
 
int cram_beta_decode_int (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
int cram_beta_decode_char (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
void cram_beta_decode_free (cram_codec *c)
 
cram_codeccram_beta_decode_init (char *data, int size, enum cram_external_type option, int version)
 
int cram_beta_encode_store (cram_codec *c, cram_block *b, char *prefix, int version)
 
int cram_beta_encode_int (cram_slice *slice, cram_codec *c, char *in, int in_size)
 
int cram_beta_encode_char (cram_slice *slice, cram_codec *c, char *in, int in_size)
 
void cram_beta_encode_free (cram_codec *c)
 
cram_codeccram_beta_encode_init (cram_stats *st, enum cram_external_type option, void *dat, int version)
 
int cram_subexp_decode (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
void cram_subexp_decode_free (cram_codec *c)
 
cram_codeccram_subexp_decode_init (char *data, int size, enum cram_external_type option, int version)
 
int cram_gamma_decode (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
void cram_gamma_decode_free (cram_codec *c)
 
cram_codeccram_gamma_decode_init (char *data, int size, enum cram_external_type option, int version)
 
void cram_huffman_decode_free (cram_codec *c)
 
int cram_huffman_decode_char0 (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
int cram_huffman_decode_char (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
int cram_huffman_decode_int0 (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
int cram_huffman_decode_int (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
cram_codeccram_huffman_decode_init (char *data, int size, enum cram_external_type option, int version)
 
int cram_huffman_encode_char0 (cram_slice *slice, cram_codec *c, char *in, int in_size)
 
int cram_huffman_encode_char (cram_slice *slice, cram_codec *c, char *in, int in_size)
 
int cram_huffman_encode_int0 (cram_slice *slice, cram_codec *c, char *in, int in_size)
 
int cram_huffman_encode_int (cram_slice *slice, cram_codec *c, char *in, int in_size)
 
void cram_huffman_encode_free (cram_codec *c)
 
int cram_huffman_encode_store (cram_codec *c, cram_block *b, char *prefix, int version)
 
cram_codeccram_huffman_encode_init (cram_stats *st, enum cram_external_type option, void *dat, int version)
 
int cram_byte_array_len_decode (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
void cram_byte_array_len_decode_free (cram_codec *c)
 
cram_codeccram_byte_array_len_decode_init (char *data, int size, enum cram_external_type option, int version)
 
int cram_byte_array_len_encode (cram_slice *slice, cram_codec *c, char *in, int in_size)
 
void cram_byte_array_len_encode_free (cram_codec *c)
 
int cram_byte_array_len_encode_store (cram_codec *c, cram_block *b, char *prefix, int version)
 
cram_codeccram_byte_array_len_encode_init (cram_stats *st, enum cram_external_type option, void *dat, int version)
 
int cram_byte_array_stop_decode_block (cram_slice *slice, cram_codec *c, cram_block *in, char *out_, int *out_size)
 
void cram_byte_array_stop_decode_free (cram_codec *c)
 
cram_codeccram_byte_array_stop_decode_init (char *data, int size, enum cram_external_type option, int version)
 
int cram_byte_array_stop_encode (cram_slice *slice, cram_codec *c, char *in, int in_size)
 
void cram_byte_array_stop_encode_free (cram_codec *c)
 
int cram_byte_array_stop_encode_store (cram_codec *c, cram_block *b, char *prefix, int version)
 
cram_codeccram_byte_array_stop_encode_init (cram_stats *st, enum cram_external_type option, void *dat, int version)
 
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)
 

Function Documentation

int cram_beta_decode_char ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
void cram_beta_decode_free ( cram_codec c)
cram_codec* cram_beta_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)
int cram_beta_decode_int ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
int cram_beta_encode_char ( cram_slice slice,
cram_codec c,
char *  in,
int  in_size 
)
void cram_beta_encode_free ( cram_codec c)
cram_codec* cram_beta_encode_init ( cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)
int cram_beta_encode_int ( cram_slice slice,
cram_codec c,
char *  in,
int  in_size 
)
int cram_beta_encode_store ( cram_codec c,
cram_block b,
char *  prefix,
int  version 
)
int cram_byte_array_len_decode ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
void cram_byte_array_len_decode_free ( cram_codec c)
cram_codec* cram_byte_array_len_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)
int cram_byte_array_len_encode ( cram_slice slice,
cram_codec c,
char *  in,
int  in_size 
)
void cram_byte_array_len_encode_free ( cram_codec c)
cram_codec* cram_byte_array_len_encode_init ( cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)
int cram_byte_array_len_encode_store ( cram_codec c,
cram_block b,
char *  prefix,
int  version 
)
int cram_byte_array_stop_decode_block ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out_,
int *  out_size 
)
void cram_byte_array_stop_decode_free ( cram_codec c)
cram_codec* cram_byte_array_stop_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)
int cram_byte_array_stop_encode ( cram_slice slice,
cram_codec c,
char *  in,
int  in_size 
)
void cram_byte_array_stop_encode_free ( cram_codec c)
cram_codec* cram_byte_array_stop_encode_init ( cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)
int cram_byte_array_stop_encode_store ( cram_codec c,
cram_block b,
char *  prefix,
int  version 
)
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)
int cram_external_decode_char ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
void cram_external_decode_free ( cram_codec c)
cram_codec* cram_external_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)
int cram_external_decode_int ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
int cram_external_encode_char ( cram_slice slice,
cram_codec c,
char *  in,
int  in_size 
)
void cram_external_encode_free ( cram_codec c)
cram_codec* cram_external_encode_init ( cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)
int cram_external_encode_int ( cram_slice slice,
cram_codec c,
char *  in,
int  in_size 
)
int cram_external_encode_store ( cram_codec c,
cram_block b,
char *  prefix,
int  version 
)
int cram_gamma_decode ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
void cram_gamma_decode_free ( cram_codec c)
cram_codec* cram_gamma_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)
int cram_huffman_decode_char ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
int cram_huffman_decode_char0 ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
void cram_huffman_decode_free ( cram_codec c)
cram_codec* cram_huffman_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)
int cram_huffman_decode_int ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
int cram_huffman_decode_int0 ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
int cram_huffman_encode_char ( cram_slice slice,
cram_codec c,
char *  in,
int  in_size 
)
int cram_huffman_encode_char0 ( cram_slice slice,
cram_codec c,
char *  in,
int  in_size 
)
void cram_huffman_encode_free ( cram_codec c)
cram_codec* cram_huffman_encode_init ( cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)
int cram_huffman_encode_int ( cram_slice slice,
cram_codec c,
char *  in,
int  in_size 
)
int cram_huffman_encode_int0 ( cram_slice slice,
cram_codec c,
char *  in,
int  in_size 
)
int cram_huffman_encode_store ( cram_codec c,
cram_block b,
char *  prefix,
int  version 
)
int cram_subexp_decode ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)
void cram_subexp_decode_free ( cram_codec c)
cram_codec* cram_subexp_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)