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

◆ Realloc()

static unsafe void * System.Runtime.InteropServices.NativeMemory.Realloc ( void * ptr,
nuint byteCount )
inlinestatic

Definition at line 103 of file NativeMemory.cs.

104 {
105 void* ptr2 = Interop.Ucrtbase.realloc(ptr, (byteCount != 0) ? byteCount : 1);
106 if (ptr2 == null)
107 {
108 ThrowHelper.ThrowOutOfMemoryException();
109 }
110 return ptr2;
111 }
static unsafe void * realloc(void *ptr, nuint new_size)

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