![]() |
VR-Link API Documentation for HLA 1.3
|
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 makes a copy of the buffer to work on. | |
| virtual | ~DtStreamReader () |
| destructor | |
| bool | readBool () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| char | readInt8 () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| unsigned char | readUInt8 () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| short | readInt16 () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| unsigned short | readUInt16 () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| int | readInt32 () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| unsigned | readUInt32 () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| long long | readInt64 () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| unsigned long long | readUInt64 () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| float | readSingle () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| double | readDouble () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
| std::string | readString () |
| value readers return a value and increment the current position in the byte stream based on the size value | |
Protected Member Functions | |
| int | decodeStringSize () |
| determine the size of a string from a variable length encoded integer | |
Protected Attributes | |
| unsigned char * | myBuffer |
| unsigned char * | myReadHead |
| bool | myBufferAlloced |
Instances of DtStreamReader decode values from a byte array.
| DtStreamReader::DtStreamReader | ( | unsigned char * | buffer, |
| int | length, | ||
| bool | copyInternally = true |
||
| ) |
constructor makes a copy of the buffer to work on.
|
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
Referenced by EmitterStateMessage::Beam::deserialize().
| 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().
| 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(), DataMessage::VariableData::deserialize(), ActionRequestMessage::VariableData::deserialize(), SetDataMessage::VariableData::deserialize(), ActionResponseMessage::VariableData::deserialize(), EntityStateMessage::AttPart::deserialize(), TransmitterStateMessage::SphericalAntennaPattern::deserialize(), ActionRequestMessage::FixedData::deserialize(), DataMessage::FixedData::deserialize(), SetDataMessage::FixedData::deserialize(), ActionResponseMessage::FixedData::deserialize(), DetonateMessage::ArtPart::deserialize(), EmitterStateMessage::Beam::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().
| 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(), EmitterStateMessage::Beam::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 EmitterStateMessage::Beam::deserialize().
| 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 EmitterStateMessage::Beam::deserialize(), and TransmitterStateMessage::ModulationType::deserialize().
| unsigned DtStreamReader::readUInt32 | ( | ) |
value readers return a value and increment the current position in the byte stream based on the size value
Referenced by EmitterStateMessage::Beam::deserialize().
| 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(), SetDataMessage::VariableData::deserialize(), DataMessage::VariableData::deserialize(), ActionResponseMessage::VariableData::deserialize(), TransmitterStateMessage::SphericalAntennaPattern::deserialize(), and EmitterStateMessage::Beam::deserialize().
|
protected |
|
protected |
|
protected |