DCSModulesAPI
1.0.0
DCS sub project containing all the control modules as libraries.
|
Auto-generated class that allows for buffer <-> parameters conversion. More...
#include <registry.h>
Public Member Functions | |
const u16 | getFunccode () const |
Retrieve the function code of the currently held parameter list. More... | |
template<typename T > | |
const T | getArg (u64 i) const |
Get the i'th positional argument. Mostly internal use. More... | |
Static Public Member Functions | |
static const SVParams | GetParamsFromData (const unsigned char *payload, i32 size) |
Get all the positional arguments from byte buffer. Mostly internal use. More... | |
template<typename... Args> | |
static i32 | GetDataFromParams (unsigned char *buffer, u16 fcode, Args...args) |
Fill a byte buffer with a list of arguments. use this function to populate the buffer passed to DCS::Network::Message::SendSync / DCS::Network::Message::SendAsync when calling a function. Make sure buffer has enough size to hold the data. Error checking is disabled for speed. More... | |
Auto-generated class that allows for buffer <-> parameters conversion.
|
inline |
Get the i'th positional argument. Mostly internal use.
T | parameter type |
|
inlinestatic |
Fill a byte buffer with a list of arguments. use this function to populate the buffer passed to DCS::Network::Message::SendSync / DCS::Network::Message::SendAsync when calling a function. Make sure buffer has enough size to hold the data. Error checking is disabled for speed.
buffer | char buffer to store function code to be executed + its params |
fcode | function code |
args | the arguments passed to the function represented by fcode |
|
inline |
Retrieve the function code of the currently held parameter list.
|
static |
Get all the positional arguments from byte buffer. Mostly internal use.
payload | char buffer |
size | buffer size |