AllocScalarMethod

Applies to:Fast Math Parser
Class:uCalc.DataType
Allocates a scalar of the given data type
Syntax
AllocScalar(Value)
Parameters
Value
String
(Default = 0)
Expression who's evaluated value will be copied to the allocated scalar
Returns
Type: IntPtr
Pointer of the scalar that was allocated
Remarks
DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="AllocScalar")> _

Private Function AllocScalar__(ByVal DataTypeHandle As IntPtr, ByVal Value As String  ) As  IntPtr
End Function
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="AllocScalar")]

protected static extern  IntPtr AllocScalar_(IntPtr DataTypeHandle,  string Value  );
            
{DLLImport}function AllocScalar__(DataTypeHandle: System.Pointer; Value: AnsiString):  System.Pointer; cdecl; external uCalcDLL name 'AllocScalar';

            
typedef  void * (* __AllocScalar)(void *DataTypeHandle,  CONSTCHAR Value   ); 

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

static void *   AllocScalar_(void *  DataTypeHandle,  MARSHALSTR Value);
            
Prev | Next