It also provides endian management.
|
Public Types |
typedef enum bit::bstream::State | State |
enum | State { WHOLE,
BITS,
OCTETS
} |
Public Member Functions |
bool | is_host_big_endian () |
bool | is_host_little_endian () |
void | host_big_endian (bool b=true) |
void | host_little_endian (bool b=true) |
Protected Attributes |
bool | m_host_big_endian |
unsigned char | m_leftoverbits |
size_t | m_numleftoverbits |
State | m_state |
size_t | m_stateval |
Static Protected Attributes |
static const int | m_masks [8] = {0x00, 0x01, 0x03, 0x07, 0x0F, 0x1F, 0x3F, 0x7F} |