Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ReAllocCoTaskMem()

static IntPtr System.Runtime.InteropServices.Marshal.ReAllocCoTaskMem ( IntPtr pv,
int cb )
inlinestatic

Definition at line 1720 of file Marshal.cs.

1721 {
1722 IntPtr intPtr = Interop.Ole32.CoTaskMemRealloc(pv, (uint)cb);
1723 if (intPtr == IntPtr.Zero && cb != 0)
1724 {
1725 throw new OutOfMemoryException();
1726 }
1727 return intPtr;
1728 }
static IntPtr CoTaskMemRealloc(IntPtr pv, nuint cb)

References Interop.Ole32.CoTaskMemRealloc(), and System.IntPtr.Zero.