Protected Types | Protected Attributes | List of all members
IZ::BitCoderBase< Code > Class Template Reference

#include <bitcoder.h>

Inheritance diagram for IZ::BitCoderBase< Code >:
Inheritance graph
[legend]

Protected Types

typedef U64 Cache
 
enum  Constants { CodeBits = sizeof(Code) * CHAR_BIT, CacheBits = sizeof(Cache) * CHAR_BIT }
 

Protected Attributes

Cache bitcache
 
unsigned int len
 

Detailed Description

template<typename Code = U32>
class IZ::BitCoderBase< Code >

Definition at line 28 of file bitcoder.h.

Member Typedef Documentation

template<typename Code = U32>
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.

Member Enumeration Documentation

template<typename Code = U32>
enum IZ::BitCoderBase::Constants
protected
Enumerator
CodeBits 
CacheBits 

Definition at line 45 of file bitcoder.h.

Member Data Documentation

template<typename Code = U32>
Cache IZ::BitCoderBase< Code >::bitcache
protected

The bit cache

Definition at line 59 of file bitcoder.h.

template<typename Code = U32>
unsigned int IZ::BitCoderBase< Code >::len
protected

The number of valid bits in bit cache

Definition at line 54 of file bitcoder.h.


The documentation for this class was generated from the following file:


imagezero
Author(s):
autogenerated on Mon Jun 10 2019 13:37:22