Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream is in little endian format.
More...
Public Member Functions |
| | DtStreamReader (unsigned char *buffer, int length, bool makeCopy=false) |
| | constructor makes a copy of the buffer to work on.
|
| virtual | ~DtStreamReader () |
| | destructor
|
|
| virtual bool | readBool () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual char | readInt8 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual unsigned char | readUInt8 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual short | readInt16 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual unsigned short | readUInt16 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual int | readInt32 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual unsigned | readUInt32 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual long long | readInt64 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual unsigned long long | readUInt64 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual float | readSingle () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual double | readDouble () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual std::string | readString () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual DtVector | readVector () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual DtTaitBryan | readTaitBryan () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| DtQuaternion | readQuaternion () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| DtEntityIdentifier | readEntityId () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| DtEntityType | readEntityType () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| unsigned char * | readBytes (int length) |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| virtual void | readBytes (unsigned char *buffer, int length) |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
Protected Member Functions |
| int | decodeStringSize () |
| | determine the size of a string from a variable length encoded integer
|
Detailed Description
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream is in little endian format.
Constructor & Destructor Documentation
| makRadarFx::DtStreamReader::DtStreamReader |
( |
unsigned char * |
buffer, |
|
|
int |
length, |
|
|
bool |
makeCopy = false |
|
) |
| |
constructor makes a copy of the buffer to work on.
| virtual makRadarFx::DtStreamReader::~DtStreamReader |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual bool makRadarFx::DtStreamReader::readBool |
( |
| ) |
|
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
| virtual char makRadarFx::DtStreamReader::readInt8 |
( |
| ) |
|
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
| virtual unsigned char makRadarFx::DtStreamReader::readUInt8 |
( |
| ) |
|
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
| virtual short makRadarFx::DtStreamReader::readInt16 |
( |
| ) |
|
|
virtual |
| virtual unsigned short makRadarFx::DtStreamReader::readUInt16 |
( |
| ) |
|
|
virtual |
| virtual int makRadarFx::DtStreamReader::readInt32 |
( |
| ) |
|
|
virtual |
| virtual unsigned makRadarFx::DtStreamReader::readUInt32 |
( |
| ) |
|
|
virtual |
| virtual long long makRadarFx::DtStreamReader::readInt64 |
( |
| ) |
|
|
virtual |
| virtual unsigned long long makRadarFx::DtStreamReader::readUInt64 |
( |
| ) |
|
|
virtual |
| virtual float makRadarFx::DtStreamReader::readSingle |
( |
| ) |
|
|
virtual |
| virtual double makRadarFx::DtStreamReader::readDouble |
( |
| ) |
|
|
virtual |
| virtual std::string makRadarFx::DtStreamReader::readString |
( |
| ) |
|
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
| virtual DtVector makRadarFx::DtStreamReader::readVector |
( |
| ) |
|
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
| virtual DtTaitBryan makRadarFx::DtStreamReader::readTaitBryan |
( |
| ) |
|
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
| DtQuaternion makRadarFx::DtStreamReader::readQuaternion |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| DtEntityIdentifier makRadarFx::DtStreamReader::readEntityId |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| DtEntityType makRadarFx::DtStreamReader::readEntityType |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| unsigned char* makRadarFx::DtStreamReader::readBytes |
( |
int |
length | ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| virtual void makRadarFx::DtStreamReader::readBytes |
( |
unsigned char * |
buffer, |
|
|
int |
length |
|
) |
| |
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
| int makRadarFx::DtStreamReader::decodeStringSize |
( |
| ) |
|
|
protected |
determine the size of a string from a variable length encoded integer
Member Data Documentation
| unsigned char* makRadarFx::DtStreamReader::myBuffer |
|
protected |
| unsigned char* makRadarFx::DtStreamReader::myReadHead |
|
protected |
| int makRadarFx::DtStreamReader::myLength |
|
protected |
| bool makRadarFx::DtStreamReader::myShouldDelete |
|
protected |
The documentation for this class was generated from the following file: