#include <vliCodec.h>
Public Member Functions | |
IIntCodec interface | |
void | setPossibilities (int possibilities) |
Sets the number of possible symbols to work with from now on data: [0,possib-1]. | |
void | encode (std::vector< int > &data, std::ostream &file) |
Codes data and sends them into a stream. | |
void | decode (std::istream &file, int count, std::vector< int > &data) |
Reads count symbols from file , decodes them and fills in data . | |
void | writeSettings (std::ostream &file) |
Write all settings needed (doesn't include possibilities set). | |
void | readSettings (std::istream &file) |
Read all settings needed (doesn't include possibilities set). | |
Private Types | |
enum | Settings |
Indices for settings. | |
Private Attributes | |
int | possib |
the number of possibilities set by setPossibilities | |
int | lastSymbol |
the last encoded symbol (possib/2 at the beginning) |
It lets user choose the number of first-level symbols.
Definition at line 12 of file vliCodec.h.