DUNE: Uniform Navigational Environment  2016.09.0
DUNE::Utils::BitBuffer Class Reference

Public Member Functions

 BitBuffer (uint64_t capacity)
 
 BitBuffer ()
 
 ~BitBuffer (void)
 
void appendOnes (const uint64_t nrofbits)
 
void appendZeros (uint64_t nrofbits)
 
void appendZeroStream (uint64_t nrofbits)
 
bool getBit (uint64_t index)
 
uint8_t getData (uint64_t index, uint8_t nbits)
 
void appendData (uint8_t bits, uint8_t sbits)
 
void setSize (uint32_t size)
 
uint8_t * getBuffer (void)
 
uint32_t getCapacity (void)
 
uint32_t getSize (void)
 
uint32_t getRemaining (void)
 
uint64_t getBitsize (void)
 
bool resetBuffer (void)
 
void write (const uint8_t *data, uint32_t size)
 

Friends

std::ostream & operator<< (std::ostream &os, BitBuffer &buffer)
 

Constructor & Destructor Documentation

DUNE::Utils::BitBuffer::BitBuffer ( uint64_t  capacity)
inline
DUNE::Utils::BitBuffer::BitBuffer ( )
inline
DUNE::Utils::BitBuffer::~BitBuffer ( void  )
inline

Member Function Documentation

void DUNE::Utils::BitBuffer::appendData ( uint8_t  bits,
uint8_t  sbits 
)
inline
void DUNE::Utils::BitBuffer::appendOnes ( const uint64_t  nrofbits)
inline
void DUNE::Utils::BitBuffer::appendZeros ( uint64_t  nrofbits)
inline
void DUNE::Utils::BitBuffer::appendZeroStream ( uint64_t  nrofbits)
inline
bool DUNE::Utils::BitBuffer::getBit ( uint64_t  index)
inline

Referenced by getData().

uint64_t DUNE::Utils::BitBuffer::getBitsize ( void  )
inline
uint8_t* DUNE::Utils::BitBuffer::getBuffer ( void  )
inline
uint32_t DUNE::Utils::BitBuffer::getCapacity ( void  )
inline
uint8_t DUNE::Utils::BitBuffer::getData ( uint64_t  index,
uint8_t  nbits 
)
inline

References getBit().

uint32_t DUNE::Utils::BitBuffer::getRemaining ( void  )
inline
uint32_t DUNE::Utils::BitBuffer::getSize ( void  )
inline
bool DUNE::Utils::BitBuffer::resetBuffer ( void  )
inline
void DUNE::Utils::BitBuffer::setSize ( uint32_t  size)
inline
void DUNE::Utils::BitBuffer::write ( const uint8_t *  data,
uint32_t  size 
)
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
BitBuffer buffer 
)
friend
Collaboration diagram for DUNE::Utils::BitBuffer:
Collaboration graph