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

◆ PtrToStringBSTR()

static string System.Runtime.InteropServices.Marshal.PtrToStringBSTR ( IntPtr ptr)
inlinestatic

Definition at line 1542 of file Marshal.cs.

1543 {
1544 if (ptr == IntPtr.Zero)
1545 {
1546 throw new ArgumentNullException("ptr");
1547 }
1548 return PtrToStringUni(ptr, (int)(SysStringByteLen(ptr) / 2));
1549 }
static unsafe? string PtrToStringUni(IntPtr ptr)
Definition Marshal.cs:652
static unsafe uint SysStringByteLen(IntPtr s)
Definition Marshal.cs:1551

References System.Runtime.InteropServices.Marshal.PtrToStringUni(), System.Runtime.InteropServices.Marshal.SysStringByteLen(), and System.IntPtr.Zero.

Referenced by Internal.Runtime.InteropServices.LicenseInteropProxy.SaveKeyInCurrentContext().