![]() |
VR-Forces Developer's Guide
|
Instances of DtStreamWriter encode values into a byte array The data will be written to the stream in big endian format.

Public Member Functions | |
| DtBigEndianStreamWriter (int length) | |
| DtBigEndianStreamWriter (unsigned char *buffer, int length) | |
| virtual | ~DtBigEndianStreamWriter () override |
| virtual void | writeInt16 (short num) override |
| virtual void | writeUInt16 (unsigned short num) override |
| virtual void | writeInt32 (int num) override |
| virtual void | writeUInt32 (unsigned int num) override |
| virtual void | writeInt64 (long long num) override |
| virtual void | writeUInt64 (unsigned long long num) override |
| virtual void | writeSingle (float num) override |
| virtual void | writeDouble (double num) override |
Public Member Functions inherited from makVrf::DtStreamWriter | |
| 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 | 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) |
Additional Inherited Members | |
Protected Member Functions inherited from makVrf::DtStreamWriter | |
| void | encodeStringSize (int size) |
Protected Attributes inherited from makVrf::DtStreamWriter | |
| unsigned char * | myBuffer |
| unsigned char * | myWriteHead |
| int | myLength |
| bool | myShouldDelete |
| makVrf::DtBigEndianStreamWriter::DtBigEndianStreamWriter | ( | 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.
|
overridevirtual |
destructor
|
overridevirtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.
|
overridevirtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.
|
overridevirtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.
|
overridevirtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.
|
overridevirtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.