UT_BitStream Class Reference

#include <UT_BitStream.h>

List of all members.

Public Member Functions

 UT_BitStream ()
 UT_BitStream (int nbits)
virtual ~UT_BitStream ()
void clear ()
int getLen () const
unsigned int * getBuf () 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 int * myBuf
int myHard
int myBitOff
int myWordOff
int myBitLength
int mySize


Detailed Description

Definition at line 31 of file UT_BitStream.h.


Constructor & Destructor Documentation

UT_BitStream::UT_BitStream (  ) 

UT_BitStream::UT_BitStream ( int  nbits  ) 

virtual UT_BitStream::~UT_BitStream (  )  [virtual]


Member Function Documentation

void UT_BitStream::clear (  ) 

int UT_BitStream::getBitLength (  )  const [inline]

Definition at line 45 of file UT_BitStream.h.

unsigned int* UT_BitStream::getBuf (  )  const [inline]

Definition at line 42 of file UT_BitStream.h.

int UT_BitStream::getLen (  )  const

void UT_BitStream::loadFrom6Bit ( const char *  data  ) 

void UT_BitStream::loadFromByte ( const char *  data,
int  nwords 
)

void UT_BitStream::loadFromByte ( const char *  data  ) 

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]

int UT_BitStream::padTo ( int  nbits,
int  max,
int  off,
int &  savelen 
) [protected]

void UT_BitStream::popPad ( int  savelen  )  [inline, protected]

Definition at line 115 of file UT_BitStream.h.

int UT_BitStream::read ( int  bits  ) 

int UT_BitStream::rewind (  )  [inline]

Definition at line 61 of file UT_BitStream.h.

void UT_BitStream::saveTo6Bit ( UT_WorkBuffer result,
int  nwords = -1,
int  offset = 0 
)

void UT_BitStream::saveTo6Bit ( UT_String result,
int  nwords = -1,
int  offset = 0 
)

int UT_BitStream::saveToByte ( unsigned char *  data,
int  nwords,
int  offset = 0 
)

void UT_BitStream::saveToByte ( 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::saveToHex ( UT_String 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 125 of file UT_BitStream.h.

int UT_BitStream::myBitOff [protected]

Definition at line 124 of file UT_BitStream.h.

unsigned int* UT_BitStream::myBuf [protected]

Definition at line 122 of file UT_BitStream.h.

int UT_BitStream::myHard [protected]

Definition at line 123 of file UT_BitStream.h.

int UT_BitStream::mySize [protected]

Definition at line 126 of file UT_BitStream.h.

int UT_BitStream::myWordOff [protected]

Definition at line 124 of file UT_BitStream.h.


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

Generated on Fri May 25 00:10:46 2012 for HDK by  doxygen 1.5.9