![]() |
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 () |
| void | writeInt16 (short num) |
| void | writeUInt16 (unsigned short num) |
| void | writeInt32 (int num) |
| void | writeUInt32 (unsigned int num) |
| void | writeInt64 (long long num) |
| void | writeUInt64 (unsigned long long num) |
| void | writeSingle (float num) |
| void | writeDouble (double num) |
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.
|
virtual |
destructor
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.
|
virtual |
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.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.
|
virtual |
value readers return a value and increment the current position in the byte stream based on the size value
Reimplemented from makVrf::DtStreamWriter.