Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ ZeroFreeCoTaskMemUnicode()

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

Definition at line 1495 of file Marshal.cs.

1496 {
1497 if (!(s == IntPtr.Zero))
1498 {
1499 Buffer.ZeroMemory((byte*)(void*)s, (nuint)string.wcslen((char*)(void*)s) * (nuint)2u);
1501 }
1502 }
static void FreeCoTaskMem(IntPtr ptr)
Definition Marshal.cs:1712

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