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

◆ Alloc() [1/2]

static unsafe void * System.Runtime.InteropServices.NativeMemory.Alloc ( nuint byteCount)
inlinestatic

Definition at line 72 of file NativeMemory.cs.

73 {
74 void* ptr = Interop.Ucrtbase.malloc(byteCount);
75 if (ptr == null)
76 {
77 ThrowHelper.ThrowOutOfMemoryException();
78 }
79 return ptr;
80 }
static unsafe void * malloc(nuint size)

References System.byteCount, Interop.Ucrtbase.malloc(), and System.ThrowHelper.ThrowOutOfMemoryException().