![]() |
VR-Forces 5.0.2 Developer's Guide
|
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream is in little endian format.

Public Member Functions | |
| DtStreamReader (unsigned char *buffer, int length, bool makeCopy=false) | |
| virtual | ~DtStreamReader () |
| virtual bool | readBool () |
| virtual char | readInt8 () |
| virtual unsigned char | readUInt8 () |
| virtual short | readInt16 () |
| virtual unsigned short | readUInt16 () |
| virtual int | readInt32 () |
| virtual unsigned | readUInt32 () |
| virtual long long | readInt64 () |
| virtual unsigned long long | readUInt64 () |
| virtual float | readSingle () |
| virtual double | readDouble () |
| virtual std::string | readString () |
| virtual DtVector | readVector () |
| virtual DtTaitBryan | readTaitBryan () |
| DtQuaternion | readQuaternion () |
| DtEntityIdentifier | readEntityId () |
| DtEntityType | readEntityType () |
| unsigned char * | readBytes (int length) |
| virtual void | readBytes (unsigned char *buffer, int length) |
Protected Member Functions | |
| int | decodeStringSize () |
Protected Attributes | |
| unsigned char * | myBuffer |
| unsigned char * | myReadHead |
| int | myLength |
| bool | myShouldDelete |
| makVrf::DtStreamReader::DtStreamReader | ( | unsigned char * | buffer, |
| int | length, | ||
| bool | makeCopy = false |
||
| ) |
constructor makes a copy of the buffer to work on.
|
virtual |
destructor
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
value readers return a value and increment the current position in the byte stream based on the size value
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamReader.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamReader.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamReader.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamReader.
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamReader.
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamReader.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamReader.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamReader.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
| DtQuaternion makVrf::DtStreamReader::readQuaternion | ( | ) |
value readers return a value and increment the current position in the byte stream based on the size value
| DtEntityIdentifier makVrf::DtStreamReader::readEntityId | ( | ) |
value readers return a value and increment the current position in the byte stream based on the size value
| DtEntityType makVrf::DtStreamReader::readEntityType | ( | ) |
value readers return a value and increment the current position in the byte stream based on the size value
value readers return a value and increment the current position in the byte stream based on the size value
value readers return a value and increment the current position in the byte stream based on the size value
|
protected |
determine the size of a string from a variable length encoded integer
|
protected |
|
protected |