Instances of DtStreamReader decode values from a byte array.
More...
Public Member Functions |
| | DtStreamReader (unsigned char *buffer, int length) |
| | constructor makes a copy of the buffer to work on.
|
| virtual | ~DtStreamReader () |
| | destructor
|
|
| bool | readBool () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| char | readInt8 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| unsigned char | readUInt8 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| short | readInt16 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| unsigned short | readUInt16 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| int | readInt32 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| unsigned | readUInt32 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| long long | readInt64 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| unsigned long long | readUInt64 () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| float | readSingle () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| double | readDouble () |
| | value readers return a value and increment the current position in the byte stream based on the size value
|
| std::string | readString () |
| | 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.
Constructor & Destructor Documentation
| DtStreamReader::DtStreamReader |
( |
unsigned char * |
buffer, |
|
|
int |
length |
|
) |
| |
constructor makes a copy of the buffer to work on.
| virtual DtStreamReader::~DtStreamReader |
( |
| ) |
|
|
virtual |
Member Function Documentation
| int DtStreamReader::decodeStringSize |
( |
| ) |
|
|
protected |
determine the size of a string from a variable length encoded integer
| bool DtStreamReader::readBool |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| double DtStreamReader::readDouble |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| short DtStreamReader::readInt16 |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| int DtStreamReader::readInt32 |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| long long DtStreamReader::readInt64 |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| char DtStreamReader::readInt8 |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| float DtStreamReader::readSingle |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| std::string DtStreamReader::readString |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| unsigned short DtStreamReader::readUInt16 |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| unsigned DtStreamReader::readUInt32 |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| unsigned long long DtStreamReader::readUInt64 |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
| unsigned char DtStreamReader::readUInt8 |
( |
| ) |
|
value readers return a value and increment the current position in the byte stream based on the size value
Member Data Documentation
| unsigned char* DtStreamReader::myBuffer |
|
protected |
| unsigned char* DtStreamReader::myReadHead |
|
protected |
The documentation for this class was generated from the following file: