public static unsafe IntPtr MemReAlloc(IntPtr pv, IntPtr cb) { return(Marshal.ReAllocHGlobal(pv, cb)); }
public static unsafe IntPtr MemReAlloc(IntPtr ptr, UIntPtr newSize) { return(Marshal.ReAllocHGlobal(ptr, unchecked ((IntPtr)(long)(ulong)newSize))); }