SetScalarMethod

Applies to:Fast Math Parser
Class:uCalc.DataType
Sets the value of a scalar at a given memory location that was allocated by AllocScalar
Syntax
SetScalar(Destination, Source)
Parameters
Destination
Pointer of scalar who'se value is to be set
Source
Pointer to a value of the same data type that will be copied to the element
Returns
Nothing
Remarks
DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="SetScalar")> _

Private Sub SetScalar__(ByVal DataTypeHandle As IntPtr,ByVal Destination As IntPtr , ByVal Source As IntPtr)
End Sub
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="SetScalar")]

protected static extern  void SetScalar_(IntPtr DataTypeHandle, IntPtr Destination ,  IntPtr Source);
            
{DLLImport}procedure SetScalar__(DataTypeHandle: System.Pointer;Destination: System.Pointer ; Source: System.Pointer); cdecl; external uCalcDLL name 'SetScalar';

            
typedef  void (* __SetScalar)(void *DataTypeHandle, void * Destination ,  void * Source); 

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

static void SetScalar_(void *  DataTypeHandle, void *   Destination ,  void *   Source);
            
Prev | Next