NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
cram_codecs.c File Reference
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <limits.h>
#include "cram/cram.h"

Go to the source code of this file.

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)
 
int cram_external_decode_block (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 (cram_slice *slice, cram_codec *c, cram_block *out, 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, cram_block *out, char *in, int in_size)
 
int cram_beta_encode_char (cram_slice *slice, cram_codec *c, cram_block *out, 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, cram_block *out, char *in, int in_size)
 
int cram_huffman_encode_char (cram_slice *slice, cram_codec *c, cram_block *out, char *in, int in_size)
 
int cram_huffman_encode_int0 (cram_slice *slice, cram_codec *c, cram_block *out, char *in, int in_size)
 
int cram_huffman_encode_int (cram_slice *slice, cram_codec *c, cram_block *out, 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, cram_block *out, 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_char (cram_slice *slice, cram_codec *c, cram_block *in, char *out, int *out_size)
 
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, cram_block *out, 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)
 

Function Documentation

int cram_beta_decode_char ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 525 of file cram_codecs.c.

void cram_beta_decode_free ( cram_codec c)

Definition at line 539 of file cram_codecs.c.

cram_codec* cram_beta_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)

Definition at line 544 of file cram_codecs.c.

int cram_beta_decode_int ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 510 of file cram_codecs.c.

int cram_beta_encode_char ( cram_slice slice,
cram_codec c,
cram_block out,
char *  in,
int  in_size 
)

Definition at line 604 of file cram_codecs.c.

void cram_beta_encode_free ( cram_codec c)

Definition at line 615 of file cram_codecs.c.

cram_codec* cram_beta_encode_init ( cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)

Definition at line 619 of file cram_codecs.c.

int cram_beta_encode_int ( cram_slice slice,
cram_codec c,
cram_block out,
char *  in,
int  in_size 
)

Definition at line 593 of file cram_codecs.c.

int cram_beta_encode_store ( cram_codec c,
cram_block b,
char *  prefix,
int  version 
)

Definition at line 574 of file cram_codecs.c.

int cram_byte_array_len_decode ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 1360 of file cram_codecs.c.

void cram_byte_array_len_decode_free ( cram_codec c)

Definition at line 1382 of file cram_codecs.c.

cram_codec* cram_byte_array_len_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)

Definition at line 1394 of file cram_codecs.c.

int cram_byte_array_len_encode ( cram_slice slice,
cram_codec c,
cram_block out,
char *  in,
int  in_size 
)

Definition at line 1430 of file cram_codecs.c.

void cram_byte_array_len_encode_free ( cram_codec c)

Definition at line 1435 of file cram_codecs.c.

cram_codec* cram_byte_array_len_encode_init ( cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)

Definition at line 1463 of file cram_codecs.c.

int cram_byte_array_len_encode_store ( cram_codec c,
cram_block b,
char *  prefix,
int  version 
)

Definition at line 1441 of file cram_codecs.c.

int cram_byte_array_stop_decode_block ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out_,
int *  out_size 
)

Definition at line 1529 of file cram_codecs.c.

int cram_byte_array_stop_decode_char ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 1490 of file cram_codecs.c.

void cram_byte_array_stop_decode_free ( cram_codec c)

Definition at line 1584 of file cram_codecs.c.

cram_codec* cram_byte_array_stop_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)

Definition at line 1590 of file cram_codecs.c.

int cram_byte_array_stop_encode ( cram_slice slice,
cram_codec c,
cram_block out,
char *  in,
int  in_size 
)

Definition at line 1623 of file cram_codecs.c.

void cram_byte_array_stop_encode_free ( cram_codec c)

Definition at line 1628 of file cram_codecs.c.

cram_codec* cram_byte_array_stop_encode_init ( cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)

Definition at line 1666 of file cram_codecs.c.

int cram_byte_array_stop_encode_store ( cram_codec c,
cram_block b,
char *  prefix,
int  version 
)

Definition at line 1634 of file cram_codecs.c.

cram_codec* cram_decoder_init ( enum cram_encoding  codec,
char *  data,
int  size,
enum cram_external_type  option,
int  version 
)

Definition at line 1722 of file cram_codecs.c.

cram_codec* cram_encoder_init ( enum cram_encoding  codec,
cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)

Definition at line 1750 of file cram_codecs.c.

char* cram_encoding2str ( enum cram_encoding  t)

Definition at line 1690 of file cram_codecs.c.

int cram_external_decode_block ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out_,
int *  out_size 
)

Definition at line 385 of file cram_codecs.c.

int cram_external_decode_char ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 354 of file cram_codecs.c.

void cram_external_decode_free ( cram_codec c)

Definition at line 417 of file cram_codecs.c.

cram_codec* cram_external_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)

Definition at line 422 of file cram_codecs.c.

int cram_external_decode_int ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 324 of file cram_codecs.c.

int cram_external_encode ( cram_slice slice,
cram_codec c,
cram_block out,
char *  in,
int  in_size 
)

Definition at line 453 of file cram_codecs.c.

void cram_external_encode_free ( cram_codec c)

Definition at line 461 of file cram_codecs.c.

cram_codec* cram_external_encode_init ( cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)

Definition at line 487 of file cram_codecs.c.

int cram_external_encode_store ( cram_codec c,
cram_block b,
char *  prefix,
int  version 
)

Definition at line 467 of file cram_codecs.c.

int cram_gamma_decode ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 760 of file cram_codecs.c.

void cram_gamma_decode_free ( cram_codec c)

Definition at line 782 of file cram_codecs.c.

cram_codec* cram_gamma_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)

Definition at line 787 of file cram_codecs.c.

int cram_huffman_decode_char ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 846 of file cram_codecs.c.

int cram_huffman_decode_char0 ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 835 of file cram_codecs.c.

void cram_huffman_decode_free ( cram_codec c)

Definition at line 826 of file cram_codecs.c.

cram_codec* cram_huffman_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)

Definition at line 934 of file cram_codecs.c.

int cram_huffman_decode_int ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 894 of file cram_codecs.c.

int cram_huffman_decode_int0 ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 881 of file cram_codecs.c.

int cram_huffman_encode_char ( cram_slice slice,
cram_codec c,
cram_block out,
char *  in,
int  in_size 
)

Definition at line 1058 of file cram_codecs.c.

int cram_huffman_encode_char0 ( cram_slice slice,
cram_codec c,
cram_block out,
char *  in,
int  in_size 
)

Definition at line 1053 of file cram_codecs.c.

void cram_huffman_encode_free ( cram_codec c)

Definition at line 1126 of file cram_codecs.c.

cram_codec* cram_huffman_encode_init ( cram_stats st,
enum cram_external_type  option,
void *  dat,
int  version 
)

Definition at line 1184 of file cram_codecs.c.

int cram_huffman_encode_int ( cram_slice slice,
cram_codec c,
cram_block out,
char *  in,
int  in_size 
)

Definition at line 1094 of file cram_codecs.c.

int cram_huffman_encode_int0 ( cram_slice slice,
cram_codec c,
cram_block out,
char *  in,
int  in_size 
)

Definition at line 1089 of file cram_codecs.c.

int cram_huffman_encode_store ( cram_codec c,
cram_block b,
char *  prefix,
int  version 
)

Definition at line 1139 of file cram_codecs.c.

int cram_subexp_decode ( cram_slice slice,
cram_codec c,
cram_block in,
char *  out,
int *  out_size 
)

Definition at line 683 of file cram_codecs.c.

void cram_subexp_decode_free ( cram_codec c)

Definition at line 726 of file cram_codecs.c.

cram_codec* cram_subexp_decode_init ( char *  data,
int  size,
enum cram_external_type  option,
int  version 
)

Definition at line 731 of file cram_codecs.c.