XPMP2
X-Plane multiplayer library 2 - using instancing
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
XPMP2::RemoteMsgAcDetailTy_v0 Struct Reference

Version 0 A/C detail message, has an inherited header plus an array of XPMP2::RemoteAcDetailTy elements. More...

+ Inheritance diagram for XPMP2::RemoteMsgAcDetailTy_v0:

Public Member Functions

RemoteMsgAcDetailTyconvert (size_t _msgLenV0, size_t &_msgLen) const
 Convert v0 to v1 message, must be freed after use! More...
 
- Public Member Functions inherited from XPMP2::RemoteMsgBaseTy
 RemoteMsgBaseTy (RemoteMsgTy _ty, std::uint8_t _ver)
 Constructor just sets the values. More...
 

Static Public Member Functions

static constexpr size_t NumElem (size_t _msgLen)
 Convert msg len to number of arr elements. More...
 

Public Attributes

RemoteAcDetailTy_v0 arr [1]
 basis for the array of actual details More...
 
- Public Attributes inherited from XPMP2::RemoteMsgBaseTy
RemoteMsgTy msgTy: 4
 message type More...
 
std::uint8_t msgVer: 4
 message version More...
 
bool bLocalSender: 1
 is the sender "local", ie. on same machine? More...
 
std::uint8_t filler1: 7
 yet unsed More...
 
std::uint16_t pluginId = 0
 lower 16 bit of the sending plugin's id More...
 
std::uint32_t filler2 = 0
 

Detailed Description

Version 0 A/C detail message, has an inherited header plus an array of XPMP2::RemoteAcDetailTy elements.

Member Function Documentation

◆ convert()

RemoteMsgAcDetailTy * XPMP2::RemoteMsgAcDetailTy_v0::convert ( size_t  _msgLenV0,
size_t &  _msgLen 
) const

Convert v0 to v1 message, must be freed after use!

Parameters
_msgLenV0Message length of this message, ie. the v0 version
[out]_msgLenreceives the message length of the converted message
Returns
pointer to the converted message

Mallocates a memory chunk large enough for the v1 message (which could be larger than a real-life v1 message!) and converts each detail array element into it.

◆ NumElem()

static constexpr size_t XPMP2::RemoteMsgAcDetailTy_v0::NumElem ( size_t  _msgLen)
inlinestaticconstexpr

Convert msg len to number of arr elements.

Member Data Documentation

◆ arr

RemoteAcDetailTy_v0 XPMP2::RemoteMsgAcDetailTy_v0::arr[1]

basis for the array of actual details


The documentation for this struct was generated from the following file: