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

◆ ZeroFreeCoTaskMemUTF8()

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

Definition at line 1504 of file Marshal.cs.

1505 {
1506 if (!(s == IntPtr.Zero))
1507 {
1508 Buffer.ZeroMemory((byte*)(void*)s, (nuint)string.strlen((byte*)(void*)s));
1510 }
1511 }
static void FreeCoTaskMem(IntPtr ptr)
Definition Marshal.cs:1712

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

Referenced by System.Runtime.InteropServices.Marshal.ZeroFreeCoTaskMemAnsi().