Go to the source code of this file.
Data Structures | |
struct | buff |
Defines | |
#define | BUFFSIZE (8 * sizeof (unsigned long)) |
Typedefs | |
typedef struct buff * | bread_t |
typedef struct buff * | bwrite_t |
Functions | |
bread_t | breadinit (unsigned char *message, int fin) |
bwrite_t | bwriteinit (unsigned char *message, int fin) |
void | breadclose (bread_t bin) |
void | bwriteclose (bwrite_t bout) |
void | bread_retour (bread_t bin) |
int | bread_available (bread_t bin) |
int | bwrite_available (bwrite_t bout) |
int | bread_unlocked (bread_t bin) |
int | bwrite_unlocked (bwrite_t bout) |
void | bread_changer_position (bread_t bin, int i) |
void | bread_decaler_fin (bread_t bin, int i) |
void | bwrite_changer_position (bwrite_t bout, int i) |
void | bwrite_decaler_fin (bwrite_t bout, int i) |
void | bread_lock (int i, bread_t bin) |
void | bwrite_lock (int i, bwrite_t bout) |
unsigned | bread (int i, bread_t bin) |
unsigned | blook (int i, bread_t bin) |
void | bstep (int i, bread_t bin) |
int | bread_bit (bread_t bin) |
void | bwrite (unsigned int x, int i, bwrite_t bout) |
void | bwrite_bit (unsigned int x, bwrite_t bout) |
void | bwrite_bits (unsigned int x, int n, bwrite_t bout) |
#define BUFFSIZE (8 * sizeof (unsigned long)) |
Definition at line 32 of file buff.h.
Referenced by bfill(), bflush(), bflush_partiel(), bwrite_available(), bwrite_bits(), bwrite_changer_position(), bwrite_lock(), and bwriteinit().
unsigned blook | ( | int | i, | |
bread_t | bin | |||
) |
Definition at line 244 of file buff.c.
References bread_getchar(), LSB_TO_ONE, buff::size, and buff::val.
Referenced by decoder(), and decoder_uniforme().
unsigned bread | ( | int | i, | |
bread_t | bin | |||
) |
Definition at line 219 of file buff.c.
References bfill(), LSB_TO_ONE, buff::size, and buff::val.
Referenced by dicho_b2cw(), and dichoinv().
int bread_available | ( | bread_t | bin | ) |
int bread_bit | ( | bread_t | bin | ) |
Definition at line 266 of file buff.c.
References bfill(), buff::size, and buff::val.
void bread_changer_position | ( | bread_t | bin, | |
int | i | |||
) |
Definition at line 173 of file buff.c.
References bread_getchar(), buff::courant, buff::size, and buff::val.
Referenced by bread_decaler_fin(), dicho_b2cw(), and dichoinv().
void bread_decaler_fin | ( | bread_t | bin, | |
int | i | |||
) |
Definition at line 183 of file buff.c.
References bread_changer_position(), bread_position(), buff::dernier, buff::fin, LSB_TO_ZERO, and buff::masque_dernier.
Referenced by dichoinv().
void bread_lock | ( | int | i, | |
bread_t | bin | |||
) |
Definition at line 234 of file buff.c.
References buff::courant, buff::lock, and buff::size.
Referenced by decoder(), and decoder_uniforme().
void bread_retour | ( | bread_t | bin | ) |
int bread_unlocked | ( | bread_t | bin | ) |
Definition at line 160 of file buff.c.
References buff::fin, and buff::lock.
Referenced by dichoinv().
void breadclose | ( | bread_t | bin | ) |
bread_t breadinit | ( | unsigned char * | message, | |
int | fin | |||
) |
Definition at line 46 of file buff.c.
References buff::courant, buff::dernier, buff::fin, buff::lock, LSB_TO_ZERO, buff::masque_dernier, buff::message, buff::size, and buff::val.
Referenced by dicho_b2cw().
void bstep | ( | int | i, | |
bread_t | bin | |||
) |
Definition at line 258 of file buff.c.
References bfill(), and buff::size.
Referenced by decoder(), and decoder_uniforme().
void bwrite | ( | unsigned int | x, | |
int | i, | |||
bwrite_t | bout | |||
) |
Definition at line 274 of file buff.c.
References bflush(), LSB_TO_ONE, buff::size, and buff::val.
Referenced by ajuster(), dicho(), and dicho_cw2b().
int bwrite_available | ( | bwrite_t | bout | ) |
Definition at line 155 of file buff.c.
References BUFFSIZE, buff::courant, buff::fin, and buff::size.
void bwrite_bit | ( | unsigned int | x, | |
bwrite_t | bout | |||
) |
void bwrite_bits | ( | unsigned int | x, | |
int | n, | |||
bwrite_t | bout | |||
) |
void bwrite_changer_position | ( | bwrite_t | bout, | |
int | i | |||
) |
Definition at line 190 of file buff.c.
References bflush_partiel(), BUFFSIZE, buff::courant, LSB_TO_ZERO, buff::message, buff::size, and buff::val.
Referenced by dicho(), and dicho_cw2b().
void bwrite_decaler_fin | ( | bwrite_t | bout, | |
int | i | |||
) |
Definition at line 212 of file buff.c.
References buff::dernier, buff::fin, LSB_TO_ZERO, and buff::masque_dernier.
Referenced by dicho().
void bwrite_lock | ( | int | i, | |
bwrite_t | bout | |||
) |
Definition at line 238 of file buff.c.
References BUFFSIZE, buff::courant, buff::lock, and buff::size.
Referenced by coder(), and coder_uniforme().
int bwrite_unlocked | ( | bwrite_t | bout | ) |
void bwriteclose | ( | bwrite_t | bout | ) |
Definition at line 138 of file buff.c.
References bflush_partiel().
Referenced by dicho_cw2b().
bwrite_t bwriteinit | ( | unsigned char * | message, | |
int | fin | |||
) |
Definition at line 66 of file buff.c.
References BUFFSIZE, buff::courant, buff::dernier, buff::fin, buff::lock, LSB_TO_ZERO, buff::masque_dernier, buff::message, buff::size, and buff::val.
Referenced by dicho_cw2b().