Example #1
0
 public static IntPtr DefaultMemFunc(IntPtr ud, IntPtr ptr, IntPtr size)
 {
     if (ptr != IntPtr.Zero && size != IntPtr.Zero)
     {
         return(MDL.Realloc(ptr, size));
     }
     else if (size != IntPtr.Zero)
     {
         return(MDL.Alloc(size));
     }
     if (ptr != IntPtr.Zero)
     {
         MDL.Free(ptr);
     }
     return(IntPtr.Zero);
 }
Example #2
0
 public void CleanUpNativeData(IntPtr mem)
 {
     MDL.Free(mem);
 }