Functions for handling arrays of pointers.
The function ScpGetData() uses a pointer to a buffer with pointers to buffers for the channel data. Not all programming/scripting languages can handle pointers to pointers properly. These functions can then be used to work around that issue.
- Example
- In pseudocode:
buffers = empty list/array
for i = 0 to channelCount - 1
buffers[ i ] = allocate buffer/array
end
end
ScpGetData( handle , pointerArray , channelCount , ... )
The data is now available in buffers.
- See also
- ScpGetData
Create a new pointer array.
The pointer array is initialized with NULL pointers.
- Parameters
-
- Returns
- A pointer to the pointer array.
- Status values
| INVALID_VALUE | The requested length is invalid. |
| UNSUCCESSFUL | An error occurred during execution of the last called function. |
| SUCCESS | The function executed successfully. |
- Since
- 0.4.1
Set a pointer at a specified index in a specified pointer array.
- Parameters
-
| [in] | pArray | A pointer identifying the pointer array. |
| [in] | dwIndex | The requested array index. |
| [in] | pPointer | The pointer value to set. |
- Status values
-
- Since
- 0.4.1
Delete an existing pointer array.
- Parameters
-
| [in] | pArray | A pointer identifying the pointer array. |
- Status values
| SUCCESS | The function executed successfully. |
- Since
- 0.4.1