Ejemplo n.º 1
0
    public SWIGTYPE_p_void __MemoryAlloc_Alloc__(uint size)
    {
        global::System.IntPtr cPtr = NewtonWrapperPINVOKE.MemoryAlloc___MemoryAlloc_Alloc__(swigCPtr, size);
        SWIGTYPE_p_void       ret  = (cPtr == global::System.IntPtr.Zero) ? null : new SWIGTYPE_p_void(cPtr, false);

        return(ret);
    }
Ejemplo n.º 2
0
 public virtual void Dispose()
 {
     lock (this) {
         if (swigCPtr.Handle != global::System.IntPtr.Zero)
         {
             if (swigCMemOwn)
             {
                 swigCMemOwn = false;
                 NewtonWrapperPINVOKE.delete_MemoryAlloc(swigCPtr);
             }
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
         }
         global::System.GC.SuppressFinalize(this);
     }
 }
Ejemplo n.º 3
0
 internal NewtonSDK(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NewtonWrapperPINVOKE.NewtonSDK_SWIGUpcast(cPtr), cMemoryOwn)
 {
     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
 }
Ejemplo n.º 4
0
 public MemoryAlloc() : this(NewtonWrapperPINVOKE.new_MemoryAlloc(), true)
 {
 }
Ejemplo n.º 5
0
 public void __MemoryAlloc_Free__(SWIGTYPE_p_void ptr)
 {
     NewtonWrapperPINVOKE.MemoryAlloc___MemoryAlloc_Free__(swigCPtr, SWIGTYPE_p_void.getCPtr(ptr));
 }
Ejemplo n.º 6
0
 public NewtonSDK() : this(NewtonWrapperPINVOKE.new_NewtonSDK(), true)
 {
 }