SetNativeArray Function

Copies a local array into a native parameter array (always by reference).

int SetNativeArray(int param, const any[] local, int size)

Parameters

int param

Parameter number, starting from 1.

const any[] local

Local array to copy from.

int size

Size of the local array to copy.

Return Value

SP_ERROR_NONE on success, anything else on failure.

Errors

Invalid parameter number or calling from a non-native function.