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); }
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); } }
internal NewtonSDK(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NewtonWrapperPINVOKE.NewtonSDK_SWIGUpcast(cPtr), cMemoryOwn) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); }
public MemoryAlloc() : this(NewtonWrapperPINVOKE.new_MemoryAlloc(), true) { }
public void __MemoryAlloc_Free__(SWIGTYPE_p_void ptr) { NewtonWrapperPINVOKE.MemoryAlloc___MemoryAlloc_Free__(swigCPtr, SWIGTYPE_p_void.getCPtr(ptr)); }
public NewtonSDK() : this(NewtonWrapperPINVOKE.new_NewtonSDK(), true) { }