HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_BitStream Class Reference

#include <UT_BitStream.h>

Public Member Functions

 UT_BitStream ()
 
 UT_BitStream (int nbits)
 
virtual ~UT_BitStream ()
 
 UT_BitStream (const UT_BitStream &)=delete
 
UT_BitStreamoperator= (const UT_BitStream &)=delete
 
void clear ()
 
int getLen () const
 
unsigned intgetBuf () const
 
void setBuf (unsigned int *buf, int len)
 
int getBitLength () const
 
void write (int val, int bits)
 
int read (int bits)
 
unsigned uread (int bits)
 
int seek (int nbits, int whence=0)
 
int tell () const
 
int rewind ()
 
void loadFromHex (const char *hex)
 
void saveToHex (UT_String &result, int nwords=-1, int offset=0)
 
void saveToHex (UT_WorkBuffer &result, int nwords=-1, int offset=0)
 
void loadFrom6Bit (const char *data)
 
void saveTo6Bit (UT_String &result, int nwords=-1, int offset=0)
 
void saveTo6Bit (UT_WorkBuffer &result, int nwords=-1, int offset=0)
 
void loadFromByte (const char *data)
 
void saveToByte (UT_String &result, int nwords=-1, int offset=0)
 
void loadFromByte (const char *data, int nwords)
 
int saveToByte (unsigned char *data, int nwords, int offset=0)
 
int loadFromPenta (const char *penta, UT_IntArray &errors)
 
void saveToPenta (UT_String &result, int nwords=-1, int offset=0)
 

Protected Member Functions

int loadPenta (const char *penta)
 
int padTo (int nbits, int max, int off, int &savelen)
 
void popPad (int savelen)
 

Protected Attributes

unsigned intmyBuf
 
int myHard
 
int myBitOff
 
int myWordOff
 
int myBitLength
 
int mySize
 

Detailed Description

Definition at line 23 of file UT_BitStream.h.

Constructor & Destructor Documentation

UT_BitStream::UT_BitStream ( )
UT_BitStream::UT_BitStream ( int  nbits)
virtual UT_BitStream::~UT_BitStream ( )
virtual
UT_BitStream::UT_BitStream ( const UT_BitStream )
delete

Member Function Documentation

void UT_BitStream::clear ( )
int UT_BitStream::getBitLength ( ) const
inline

Definition at line 40 of file UT_BitStream.h.

unsigned int* UT_BitStream::getBuf ( ) const
inline

Definition at line 37 of file UT_BitStream.h.

int UT_BitStream::getLen ( ) const
void UT_BitStream::loadFrom6Bit ( const char *  data)
void UT_BitStream::loadFromByte ( const char *  data)
void UT_BitStream::loadFromByte ( const char *  data,
int  nwords 
)
void UT_BitStream::loadFromHex ( const char *  hex)
int UT_BitStream::loadFromPenta ( const char *  penta,
UT_IntArray errors 
)
int UT_BitStream::loadPenta ( const char *  penta)
protected
UT_BitStream& UT_BitStream::operator= ( const UT_BitStream )
delete
int UT_BitStream::padTo ( int  nbits,
int  max,
int  off,
int savelen 
)
protected
void UT_BitStream::popPad ( int  savelen)
inlineprotected

Definition at line 110 of file UT_BitStream.h.

int UT_BitStream::read ( int  bits)
int UT_BitStream::rewind ( )
inline

Definition at line 56 of file UT_BitStream.h.

void UT_BitStream::saveTo6Bit ( UT_String result,
int  nwords = -1,
int  offset = 0 
)
void UT_BitStream::saveTo6Bit ( UT_WorkBuffer result,
int  nwords = -1,
int  offset = 0 
)
void UT_BitStream::saveToByte ( UT_String result,
int  nwords = -1,
int  offset = 0 
)
int UT_BitStream::saveToByte ( unsigned char *  data,
int  nwords,
int  offset = 0 
)
void UT_BitStream::saveToHex ( UT_String result,
int  nwords = -1,
int  offset = 0 
)
void UT_BitStream::saveToHex ( UT_WorkBuffer result,
int  nwords = -1,
int  offset = 0 
)
void UT_BitStream::saveToPenta ( UT_String result,
int  nwords = -1,
int  offset = 0 
)
int UT_BitStream::seek ( int  nbits,
int  whence = 0 
)
void UT_BitStream::setBuf ( unsigned int buf,
int  len 
)
int UT_BitStream::tell ( ) const
unsigned UT_BitStream::uread ( int  bits)
void UT_BitStream::write ( int  val,
int  bits 
)

Member Data Documentation

int UT_BitStream::myBitLength
protected

Definition at line 120 of file UT_BitStream.h.

int UT_BitStream::myBitOff
protected

Definition at line 119 of file UT_BitStream.h.

unsigned int* UT_BitStream::myBuf
protected

Definition at line 117 of file UT_BitStream.h.

int UT_BitStream::myHard
protected

Definition at line 118 of file UT_BitStream.h.

int UT_BitStream::mySize
protected

Definition at line 121 of file UT_BitStream.h.

int UT_BitStream::myWordOff
protected

Definition at line 119 of file UT_BitStream.h.


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