![]() |
VR-Link API Documentation for HLA 1.3
|
Instances of DtStreamWriter encode values into a byte array. More...
Collaboration diagram for DtStreamWriter:Public Member Functions | |
| DtStreamWriter (int length=0, unsigned char *buffer=0) | |
| constructor takes size of internal buffer to create. Care must be taken to allocate enough space. | |
| virtual | ~DtStreamWriter () |
| destructor | |
| unsigned char * | buffer () |
| get a copy of the internal buffer | |
| int | length () |
| void | writeBool (bool b) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeInt8 (char num) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeUInt8 (unsigned char num) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeInt16 (short num) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeUInt16 (unsigned short num) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeInt32 (int num) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeUInt32 (unsigned int num) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeInt64 (long long num) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeUInt64 (unsigned long long num) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeSingle (float num) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeDouble (double num) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| void | writeString (std::string &str) |
| value readers return a value and increment the current position in the byte stream based on the size value | |
Protected Member Functions | |
| void | encodeStringSize (int size) |
| encode the size of the string as a variable sized integer | |
Protected Attributes | |
| unsigned char * | myBuffer |
| unsigned char * | myWriteHead |
| int | myLength |
| bool | myBufferAlloced |
Instances of DtStreamWriter encode values into a byte array.
| DtStreamWriter::DtStreamWriter | ( | int | length = 0, |
| unsigned char * | buffer = 0 |
||
| ) |
constructor takes size of internal buffer to create. Care must be taken to allocate enough space.
|
virtual |
destructor
| unsigned char* DtStreamWriter::buffer | ( | ) |
get a copy of the internal buffer
|
protected |
encode the size of the string as a variable sized integer
| int DtStreamWriter::length | ( | ) |
| void DtStreamWriter::writeBool | ( | bool | b | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by EmitterStateMessage::Beam::serialize().
| void DtStreamWriter::writeDouble | ( | double | num | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by TransmitterStateMessage::BeamAntennaPattern::serialize().
| void DtStreamWriter::writeInt16 | ( | short | num | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by EntityStateMessage::AttPart::serialize().
| void DtStreamWriter::writeInt32 | ( | int | num | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by ActionRequestMessage::VariableData::serialize(), DataMessage::VariableData::serialize(), SetDataMessage::VariableData::serialize(), ActionResponseMessage::VariableData::serialize(), DetonateMessage::Parameter::serialize(), EntityStateMessage::AttPart::serialize(), TransmitterStateMessage::SphericalAntennaPattern::serialize(), EmitterStateMessage::Beam::serialize(), DetonateMessage::ArtPart::serialize(), ActionRequestMessage::FixedData::serialize(), DataMessage::FixedData::serialize(), SetDataMessage::FixedData::serialize(), ActionResponseMessage::FixedData::serialize(), EntityStateMessage::Parameter::serialize(), TransmitterStateMessage::ModulationType::serialize(), EntityStateMessage::ArtPart::serialize(), and TransmitterStateMessage::BeamAntennaPattern::serialize().
| void DtStreamWriter::writeInt64 | ( | long long | num | ) |
value readers return a value and increment the current position in the byte stream based on the size value
| void DtStreamWriter::writeInt8 | ( | char | num | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by EntityStateMessage::AttPart::serialize().
| void DtStreamWriter::writeSingle | ( | float | num | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by DetonateMessage::Parameter::serialize(), TransmitterStateMessage::SphericalAntennaPattern::serialize(), EmitterStateMessage::Beam::serialize(), EntityStateMessage::Parameter::serialize(), and TransmitterStateMessage::BeamAntennaPattern::serialize().
| void DtStreamWriter::writeString | ( | std::string & | str | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by EmitterStateMessage::Beam::serialize().
| void DtStreamWriter::writeUInt16 | ( | unsigned short | num | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by EmitterStateMessage::Beam::serialize(), and TransmitterStateMessage::ModulationType::serialize().
| void DtStreamWriter::writeUInt32 | ( | unsigned int | num | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by EmitterStateMessage::Beam::serialize().
| void DtStreamWriter::writeUInt64 | ( | unsigned long long | num | ) |
value readers return a value and increment the current position in the byte stream based on the size value
| void DtStreamWriter::writeUInt8 | ( | unsigned char | num | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by ActionRequestMessage::VariableData::serialize(), SetDataMessage::VariableData::serialize(), DataMessage::VariableData::serialize(), ActionResponseMessage::VariableData::serialize(), TransmitterStateMessage::SphericalAntennaPattern::serialize(), and EmitterStateMessage::Beam::serialize().
|
protected |
|
protected |
|
protected |
|
protected |