VR-Engage  2.2
Loading...
Searching...
No Matches
DtBufferSerialize Namespace Reference

Functions

VRFMESSAGES_DLL int getSize (const DtRwRadarContactInfo &data)
 
VRFMESSAGES_DLL char * encode (const DtRwRadarContactInfo &data, char *buffer)
 
VRFMESSAGES_DLL const char * decode (DtRwRadarContactInfo &data, const char *buffer)
 
VRFMESSAGES_DLL int getSize (const DtRwRadarStateInfo &info)
 
VRFMESSAGES_DLL char * encode (const DtRwRadarStateInfo &info, char *buffer)
 
VRFMESSAGES_DLL const char * decode (DtRwRadarStateInfo &info, const char *buffer)
 

Function Documentation

◆ getSize() [1/2]

VRFMESSAGES_DLL int DtBufferSerialize::getSize ( const DtRwRadarContactInfo & data)

Gets the number of bytes required to encode the value.

Parameters
dataThe radar contact info to calculate size for
Returns
The number of bytes required for encoding

References VRFMESSAGES_DLL.

◆ encode() [1/2]

VRFMESSAGES_DLL char * DtBufferSerialize::encode ( const DtRwRadarContactInfo & data,
char * buffer )

Serializes the provided data into a buffer.

Parameters
dataThe radar contact info to encode
bufferThe buffer to serialize into
Returns
Pointer to the buffer after the serialization

Serializes the provided value data into buffer. The buffer must have at least the number of bytes returned by getSize() for the same parameter. No length checking is done on the buffer.

References VRFMESSAGES_DLL.

◆ decode() [1/2]

VRFMESSAGES_DLL const char * DtBufferSerialize::decode ( DtRwRadarContactInfo & data,
const char * buffer )

Deserializes data from a buffer into the provided object.

Parameters
dataThe radar contact info to populate
bufferThe buffer to deserialize from
Returns
Pointer to the buffer after the deserialization

Decodes a value from buffer and places the result in data. Buffer must contain a value created by the corresponding call to encode().

References VRFMESSAGES_DLL.

◆ getSize() [2/2]

VRFMESSAGES_DLL int DtBufferSerialize::getSize ( const DtRwRadarStateInfo & info)

Gets the number of bytes required to encode the value.

Parameters
infoThe radar state info to calculate size for
Returns
The number of bytes required for encoding

References VRFMESSAGES_DLL.

◆ encode() [2/2]

VRFMESSAGES_DLL char * DtBufferSerialize::encode ( const DtRwRadarStateInfo & info,
char * buffer )

Serializes the provided data into a buffer.

Parameters
infoThe radar state info to encode
bufferThe buffer to serialize into
Returns
Pointer to the buffer after the serialization

Serializes the provided radar state info into the buffer. The buffer must have at least the number of bytes returned by getSize().

References VRFMESSAGES_DLL.

◆ decode() [2/2]

VRFMESSAGES_DLL const char * DtBufferSerialize::decode ( DtRwRadarStateInfo & info,
const char * buffer )

Deserializes data from a buffer into the provided object.

Parameters
infoThe radar state info to populate
bufferThe buffer to deserialize from
Returns
Pointer to the buffer after the deserialization

References VRFMESSAGES_DLL.