SetArrayMethod
Sets the value of an array at a given memory location that was allocated by
AllocArray
Syntax
SetArray(Destination, Source, Index)
Parameters
Destination
Pointer of array (base address) who's element value is to be set
Source
Pointer to a value of the same data type that will be copied to the element
Index
Int32
Index of the array element who's value needs to be set
DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="SetArray")> _
Private Sub SetArray__(ByVal DataTypeHandle As IntPtr,ByVal Destination As IntPtr , ByVal Source As IntPtr , ByVal Index As Int32)
End Sub
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="SetArray")]
protected static extern void SetArray_(IntPtr DataTypeHandle, IntPtr Destination , IntPtr Source , Int32 Index);
{DLLImport}procedure SetArray__(DataTypeHandle: System.Pointer;Destination: System.Pointer ; Source: System.Pointer ; Index: Int32); cdecl; external uCalcDLL name 'SetArray';
typedef void (* __SetArray)(void *DataTypeHandle, void * Destination , void * Source , int32_t Index);
[DllImport(uCalcLib, CharSet=CharSet::Ansi, CallingConvention=CallingConvention::Cdecl, EntryPoint = "SetArray")]
static void SetArray_(void * DataTypeHandle, void * Destination , void * Source , Int32 Index);