![]() |
VR-Forces 5.0.1 Developer's Guide
|
Instances of DtStreamWriter encode values into a byte array this writes the data to the stream in little endian format.

Public Member Functions | |
| DtStreamWriter (int length) | |
| DtStreamWriter (unsigned char *buffer, int length) | |
| virtual | ~DtStreamWriter () |
| virtual unsigned char * | buffer () |
| virtual int | length () |
| virtual void | writeBool (bool b) |
| virtual void | writeInt8 (char num) |
| virtual void | writeUInt8 (unsigned char num) |
| virtual void | writeInt16 (short num) |
| virtual void | writeUInt16 (unsigned short num) |
| virtual void | writeInt32 (int num) |
| virtual void | writeUInt32 (unsigned int num) |
| virtual void | writeInt64 (long long num) |
| virtual void | writeUInt64 (unsigned long long num) |
| virtual void | writeSingle (float num) |
| virtual void | writeDouble (double num) |
| virtual void | writeString (std::string &str) |
| virtual void | writeVector (DtVector &vec) |
| virtual void | writeTaitBryan (DtTaitBryan &tb) |
| virtual void | writeQuaternion (const DtQuaternion &q) |
| virtual void | writeEntityId (const DtEntityIdentifier &id) |
| virtual void | writeEntityType (const DtEntityType &type) |
| virtual void | writeBytes (unsigned char *buffer, int length) |
Protected Member Functions | |
| void | encodeStringSize (int size) |
Protected Attributes | |
| unsigned char * | myBuffer |
| unsigned char * | myWriteHead |
| int | myLength |
| bool | myShouldDelete |
| makVrf::DtStreamWriter::DtStreamWriter | ( | int | length | ) |
constructor takes size of internal buffer to create. Care must be taken to allocate enough space.
constructor a given buffer and it's size. Care must be taken to allocate enough space.
|
virtual |
destructor
|
virtual |
|
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::DtBigEndianStreamWriter.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamWriter.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamWriter.
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamWriter.
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamWriter.
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamWriter.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamWriter.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented in makVrf::DtBigEndianStreamWriter.
|
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
|
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
value readers return a value and increment the current position in the byte stream based on the size value
|
protected |
encode the size of the string as a variable sized integer
|
protected |
|
protected |