MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
Public Member Functions | Private Member Functions | Private Attributes
Utils::bitstream Class Reference

#include <bitstream.h>

Public Member Functions

 bitstream ()
 
 bitstream ()
 
void append (const char *input, size_t bytes)
 
void append (const char *input, size_t bytes)
 
void append (const std::string &input)
 
void append (const std::string &input)
 
void clear ()
 
void clear ()
 
void flush ()
 
void flush ()
 
long long unsigned int get (size_t count)
 
long long unsigned int get (size_t count)
 
long long int getExpGolomb ()
 
long long int getExpGolomb ()
 
long long unsigned int getUExpGolomb ()
 
long long unsigned int getUExpGolomb ()
 
bitstreamoperator<< (std::string input)
 
bitstreamoperator<< (std::string input)
 
bitstreamoperator<< (char input)
 
bitstreamoperator<< (char input)
 
long long unsigned int peek (size_t count)
 
long long unsigned int peek (size_t count)
 
long long int peekExpGolomb ()
 
long long int peekExpGolomb ()
 
bool peekOffset (size_t peekOffset)
 
bool peekOffset (size_t peekOffset)
 
long long unsigned int peekUExpGolomb ()
 
long long unsigned int peekUExpGolomb ()
 
long long unsigned int size ()
 
long long unsigned int size ()
 
void skip (size_t count)
 
void skip (size_t count)
 

Private Member Functions

bool checkBufferSize (unsigned int size)
 
bool checkBufferSize (unsigned int size)
 
long long unsigned int golombGetter ()
 
long long unsigned int golombGetter ()
 
long long unsigned int golombPeeker ()
 
long long unsigned int golombPeeker ()
 

Private Attributes

size_t bufferSize
 
char * data
 
size_t dataSize
 
size_t offset
 

Constructor & Destructor Documentation

Utils::bitstream::bitstream ( )
Utils::bitstream::bitstream ( )

Member Function Documentation

void Utils::bitstream::append ( const char *  input,
size_t  bytes 
)
void Utils::bitstream::append ( const char *  input,
size_t  bytes 
)
void Utils::bitstream::append ( const std::string &  input)
void Utils::bitstream::append ( const std::string &  input)
bool Utils::bitstream::checkBufferSize ( unsigned int  size)
private
bool Utils::bitstream::checkBufferSize ( unsigned int  size)
private
void Utils::bitstream::clear ( )
void Utils::bitstream::clear ( )
void Utils::bitstream::flush ( )
void Utils::bitstream::flush ( )
long long unsigned int Utils::bitstream::get ( size_t  count)
long long unsigned int Utils::bitstream::get ( size_t  count)
long long int Utils::bitstream::getExpGolomb ( )
long long int Utils::bitstream::getExpGolomb ( )
long long unsigned int Utils::bitstream::getUExpGolomb ( )
long long unsigned int Utils::bitstream::getUExpGolomb ( )
long long unsigned int Utils::bitstream::golombGetter ( )
private
long long unsigned int Utils::bitstream::golombGetter ( )
private
long long unsigned int Utils::bitstream::golombPeeker ( )
private
long long unsigned int Utils::bitstream::golombPeeker ( )
private
bitstream& Utils::bitstream::operator<< ( std::string  input)
inline
bitstream& Utils::bitstream::operator<< ( std::string  input)
inline
bitstream& Utils::bitstream::operator<< ( char  input)
inline
bitstream& Utils::bitstream::operator<< ( char  input)
inline
long long unsigned int Utils::bitstream::peek ( size_t  count)
long long unsigned int Utils::bitstream::peek ( size_t  count)
long long int Utils::bitstream::peekExpGolomb ( )
long long int Utils::bitstream::peekExpGolomb ( )
bool Utils::bitstream::peekOffset ( size_t  peekOffset)
bool Utils::bitstream::peekOffset ( size_t  peekOffset)
long long unsigned int Utils::bitstream::peekUExpGolomb ( )
long long unsigned int Utils::bitstream::peekUExpGolomb ( )
long long unsigned int Utils::bitstream::size ( )
long long unsigned int Utils::bitstream::size ( )
void Utils::bitstream::skip ( size_t  count)
void Utils::bitstream::skip ( size_t  count)

Field Documentation

size_t Utils::bitstream::bufferSize
private
char * Utils::bitstream::data
private
size_t Utils::bitstream::dataSize
private
size_t Utils::bitstream::offset
private

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