AllocArrayMethod

Applies to:Fast Math Parser
Class:uCalc.DataType
Allocates an array of the given data type
Syntax
AllocArray(ArraySize)
Parameters
ArraySize
Int32
Size - in umber of elements - of the array you're allocating
Returns
Type: IntPtr
Pointer of the array that was allocated
Remarks
This allocates an array of the given type. Elements of the array are set to the default value of that type.
DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="AllocArray")> _

Private Function AllocArray__(ByVal DataTypeHandle As IntPtr,ByVal ArraySize As Int32) As  IntPtr
End Function
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="AllocArray")]

protected static extern  IntPtr AllocArray_(IntPtr DataTypeHandle, Int32 ArraySize);
            
{DLLImport}function AllocArray__(DataTypeHandle: System.Pointer;ArraySize: Int32):  System.Pointer; cdecl; external uCalcDLL name 'AllocArray';

            
typedef  void * (* __AllocArray)(void *DataTypeHandle, int32_t ArraySize); 

            
[DllImport(uCalcLib, CharSet=CharSet::Ansi, CallingConvention=CallingConvention::Cdecl, EntryPoint = "AllocArray")]

static void *   AllocArray_(void *  DataTypeHandle, Int32 ArraySize);
            
Prev | Next