Difference between revisions of "XPLMGetDatab"
m (1 revision)
Latest revision as of 19:51, 20 April 2009
XPLM_API int XPLMGetDatab( XPLMDataRef inDataRef, void * outValue, /* Can be NULL */ int inOffset, int inMaxBytes);
Read a part of a byte array dataref. If you pass NULL for outVaules, the routine will return the size of the array, ignoring inOffset and inMax.
If outValues is not NULL, then up to inMax values are copied from the dataref into outValues, starting at inOffset in the dataref. If inMax + inOffset is larger than the size of the dataref, less than inMax values will be copied. The number of values copied is returned.
Note: the semantics of array datarefs are entirely implemented by the plugin (or X-Plane) that provides the dataref, not the SDK itself; the above description is how these datarefs are intended to work, but a rogue plugin may have different behavior.