#include <bitcoder.h>
Protected Types | |
typedef U64 | Cache |
enum | Constants { CodeBits = sizeof(Code) * CHAR_BIT, CacheBits = sizeof(Cache) * CHAR_BIT } |
Protected Attributes | |
Cache | bitcache |
unsigned int | len |
Definition at line 28 of file bitcoder.h.
|
protected |
Data types the bit coder uses
Code is used to store coding units Cache is used for the bit cache
Usually, you are going to write single bytes for codes, so this would be "unsigned char". You may, however, use larger coding units to speed up the coding.
NOTE size(CacheBits) >= 2 * sizeof(CodeBits) must be true
Definition at line 43 of file bitcoder.h.
|
protected |
Enumerator | |
---|---|
CodeBits | |
CacheBits |
Definition at line 45 of file bitcoder.h.
|
protected |
The bit cache
Definition at line 59 of file bitcoder.h.
|
protected |
The number of valid bits in bit cache
Definition at line 54 of file bitcoder.h.