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

◆ AllocHGlobal() [2/2]

static IntPtr System.Runtime.InteropServices.Marshal.AllocHGlobal ( IntPtr cb)
inlinestatic

Definition at line 1670 of file Marshal.cs.

1671 {
1672 IntPtr intPtr = Interop.Kernel32.LocalAlloc(0u, (nuint)(nint)cb);
1673 if (intPtr == IntPtr.Zero)
1674 {
1675 throw new OutOfMemoryException();
1676 }
1677 return intPtr;
1678 }
static IntPtr LocalAlloc(uint uFlags, nuint uBytes)

References Interop.Kernel32.LocalAlloc(), and System.IntPtr.Zero.