#include <GetDataRefTask.h>
A dataref task which retrieves the value of a byte array.
Definition at line 393 of file GetDataRefTask.h.
◆ GetByteArrayDataRefTask() [1/2]
xplra::GetByteArrayDataRefTask::GetByteArrayDataRefTask |
( |
const std::string & |
name, |
|
|
int |
maxBytes = -1 , |
|
|
int |
offset = 0 |
|
) |
| |
|
inline |
Construct the task for the dataref with the given name.
- Parameters
-
name | the name of the dataref |
maxBytes | the maximal number of bytes to retrieve. If <0, the function will perform an extra query to retrieve the size of the dataref's data, which it will store in the task, so later on it can be reused. |
offset | the offset from which to query the array |
Definition at line 710 of file GetDataRefTask.h.
◆ GetByteArrayDataRefTask() [2/2]
xplra::GetByteArrayDataRefTask::GetByteArrayDataRefTask |
( |
XPLMDataRef |
dataRef, |
|
|
int |
maxBytes = -1 , |
|
|
int |
offset = 0 |
|
) |
| |
|
inline |
Construct the task for the given dataref
- Parameters
-
dataRef | the dataref |
maxBytes | the maximal number of bytes to retrieve. If <0, the function will perform an extra query to retrieve the size of the dataref's data, which it will store in the task, so later on it can be reused. |
offset | the offset from which to query the array |
Definition at line 720 of file GetDataRefTask.h.
◆ queryData()
int xplra::GetByteArrayDataRefTask::queryData |
( |
XPLMDataRef |
dataRef, |
|
|
void * |
dest, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: