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

◆ ZeroFreeGlobalAllocAnsi()

static unsafe void System.Runtime.InteropServices.Marshal.ZeroFreeGlobalAllocAnsi ( IntPtr s)
inlinestatic

Definition at line 1513 of file Marshal.cs.

1514 {
1515 if (!(s == IntPtr.Zero))
1516 {
1517 Buffer.ZeroMemory((byte*)(void*)s, (nuint)string.strlen((byte*)(void*)s));
1518 FreeHGlobal(s);
1519 }
1520 }
static void FreeHGlobal(IntPtr hglobal)
Definition Marshal.cs:1680

References System.Runtime.InteropServices.Marshal.FreeHGlobal(), System.s, System.IntPtr.Zero, and System.Buffer.ZeroMemory().