A template for storing runtime coding values of given integers into a BitBlock. More...
#include <CodeBlock.h>
Public Member Functions | |
| void | binary (int val, int size) |
| Encode a value in binary, given the number of bits. | |
| int | unbinary (int size) |
| Decode a binary value, given the number of bits used. | |
| void | unary (int val) |
| Encode a value in unary. | |
| int | ununary (void) |
| Decode a unary value. | |
| void | gamma (int val) |
| Encode a value in gamma. | |
| int | ungamma (void) |
| Decode a gamma value. | |
| void | delta (int val) |
| Encode a value in delta. | |
| int | undelta (void) |
| Decode a delta value. | |
A template for storing runtime coding values of given integers into a BitBlock.
This class allows the user to compute binary, unary, gamma, and delta codes for given integers and stores them in a BitBlock. The user is also able to decode the integer using the given coding methods.
1.6.1