SwapScalarValuesMethod

Applies to:Fast Math Parser
Class:uCalc.DataType
swaps the pointers of two variables that were allocated with AllocScalar or AllocArray
Syntax
SwapScalarValues(ValuePtrA, ValuePtrB)
Parameters
ValuePtrA
Pointer of variable 1
ValuePtrB
Pointer of variable 2
Returns
Nothing
Remarks
DLL import code
<DllImport(uCalcDLL, CharSet:=CharSet.Ansi, CallingConvention:=CallingConvention.Cdecl, EntryPoint:="SwapScalarValues")> _

Private Sub SwapScalarValues__(ByVal DataTypeHandle As IntPtr,ByVal ValuePtrA As IntPtr , ByVal ValuePtrB As IntPtr)
End Sub
            
[DllImport(uCalcDLL, CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl, EntryPoint="SwapScalarValues")]

protected static extern  void SwapScalarValues_(IntPtr DataTypeHandle, IntPtr ValuePtrA ,  IntPtr ValuePtrB);
            
{DLLImport}procedure SwapScalarValues__(DataTypeHandle: System.Pointer;ValuePtrA: System.Pointer ; ValuePtrB: System.Pointer); cdecl; external uCalcDLL name 'SwapScalarValues';

            
typedef  void (* __SwapScalarValues)(void *DataTypeHandle, void * ValuePtrA ,  void * ValuePtrB); 

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

static void SwapScalarValues_(void *  DataTypeHandle, void *   ValuePtrA ,  void *   ValuePtrB);
            
Prev | Next