2 #ifndef wt_coder_huff_h
3 #define wt_coder_huff_h
7 #include <huffman_codes.h>
8 #include <alphabet_mapper.h>
10 class wt_coder_huff: public wt_coder {
12 wt_coder_huff(uint *symbs, uint n, alphabet_mapper * am);
13 virtual ~wt_coder_huff();
14 virtual bool is_set(uint symbol, uint l);
15 virtual bool done(uint symbol, uint l);
17 virtual uint save(FILE *fp);
18 static wt_coder_huff * load(FILE *fp);
19 uint * get_buffer(uint symbol, uint *n);
25 uint last_symbol, s_len;