#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.
typedef U64 IZ::BitCoderBase< Code >::Cache [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.
enum IZ::BitCoderBase::Constants [protected] |
Definition at line 45 of file bitcoder.h.
Cache IZ::BitCoderBase< Code >::bitcache [protected] |
The bit cache
Definition at line 59 of file bitcoder.h.
unsigned int IZ::BitCoderBase< Code >::len [protected] |
The number of valid bits in bit cache
Definition at line 54 of file bitcoder.h.