![]() |
VR-Link API Documentation for DIS
|
Instances of DtStreamReader decode values from a byte array. More...
Collaboration diagram for DtStreamReader:Public Member Functions | |
| DtStreamReader (unsigned char *buffer, int length, bool copyInternally=true) | |
| constructor works on the data given and does not make a copy More... | |
| virtual | ~DtStreamReader () |
| destructor More... | |
| bool | readBool () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| char | readInt8 () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| unsigned char | readUInt8 () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| short | readInt16 () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| unsigned short | readUInt16 () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| int | readInt32 () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| unsigned int | readUInt32 () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| long long | readInt64 () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| unsigned long long | readUInt64 () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| float | readSingle () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| double | readDouble () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| std::string | readString () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| DtVector | readVector () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| DtTaitBryan | readTaitBryan () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| DtQuaternion | readQuaternion () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| DtEntityIdentifier | readEntityId () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| DtEntityType | readEntityType () |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
| unsigned char * | readBytes (int length) |
| value readers return a value and increment the current position in the byte stream based on the size value More... | |
Protected Member Functions | |
| int | decodeStringSize () |
| determine the size of a string from a variable length encoded integer More... | |
Protected Attributes | |
| unsigned char * | myBuffer |
| unsigned char * | myReadHead |
| int | myLength |
| bool | myBufferAlloced |
Instances of DtStreamReader decode values from a byte array.
| DtStreamReader::DtStreamReader | ( | unsigned char * | buffer, |
| int | length, | ||
| bool | copyInternally = true |
||
| ) |
constructor works on the data given and does not make a copy
|
virtual |
destructor
|
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
| unsigned char* DtStreamReader::readBytes | ( | int | length | ) |
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
Referenced by TransmitterStateMessage::BeamAntennaPattern::deserialize().
| DtEntityIdentifier DtStreamReader::readEntityId | ( | ) |
value readers return a value and increment the current position in the byte stream based on the size value
| DtEntityType DtStreamReader::readEntityType | ( | ) |
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
Referenced by EntityStateMessage::AttPart::deserialize().
| int DtStreamReader::readInt32 | ( | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by DetonateMessage::Parameter::deserialize(), ActionRequestMessage::VariableData::deserialize(), DataMessage::VariableData::deserialize(), SetDataMessage::VariableData::deserialize(), AttributeChangeRequestMessage::AttributePair::deserialize(), ActionResponseMessage::VariableData::deserialize(), EventReportMessage::VariableData::deserialize(), EntityStateMessage::AttPart::deserialize(), TransmitterStateMessage::SphericalAntennaPattern::deserialize(), SetDataMessage::FixedData::deserialize(), ActionRequestMessage::FixedData::deserialize(), DataMessage::FixedData::deserialize(), ActionResponseMessage::FixedData::deserialize(), EventReportMessage::FixedData::deserialize(), DetonateMessage::ArtPart::deserialize(), EntityStateMessage::Parameter::deserialize(), TransmitterStateMessage::ModulationType::deserialize(), EntityStateMessage::ArtPart::deserialize(), and TransmitterStateMessage::BeamAntennaPattern::deserialize().
| 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
Referenced by EntityStateMessage::AttPart::deserialize().
| DtQuaternion DtStreamReader::readQuaternion | ( | ) |
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
Referenced by DetonateMessage::Parameter::deserialize(), TransmitterStateMessage::SphericalAntennaPattern::deserialize(), EntityStateMessage::Parameter::deserialize(), and TransmitterStateMessage::BeamAntennaPattern::deserialize().
| std::string DtStreamReader::readString | ( | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by AttributeChangeRequestMessage::AttributePair::deserialize().
| DtTaitBryan DtStreamReader::readTaitBryan | ( | ) |
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
Referenced by IffStateMessage::SimulationAddress::deserialize(), and TransmitterStateMessage::ModulationType::deserialize().
| unsigned int 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
Referenced by ActionRequestMessage::VariableData::deserialize(), DataMessage::VariableData::deserialize(), SetDataMessage::VariableData::deserialize(), EventReportMessage::VariableData::deserialize(), ActionResponseMessage::VariableData::deserialize(), AttributeChangeRequestMessage::AttributePair::deserialize(), and TransmitterStateMessage::SphericalAntennaPattern::deserialize().
| DtVector DtStreamReader::readVector | ( | ) |
value readers return a value and increment the current position in the byte stream based on the size value
|
protected |
|
protected |
|
protected |
|
protected |