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

◆ AllocBSTR()

static IntPtr System.Runtime.InteropServices.Marshal.AllocBSTR ( int length)
inlinestaticpackage

Definition at line 1730 of file Marshal.cs.

1731 {
1732 IntPtr intPtr = Interop.OleAut32.SysAllocStringLen(IntPtr.Zero, (uint)length);
1733 if (intPtr == IntPtr.Zero)
1734 {
1735 throw new OutOfMemoryException();
1736 }
1737 return intPtr;
1738 }
static IntPtr SysAllocStringLen(IntPtr src, uint len)

References System.length, Interop.OleAut32.SysAllocStringLen(), and System.IntPtr.Zero.

Referenced by System.Security.SecureString.MarshalToBSTR(), and System.Runtime.InteropServices.Marshal.StringToBSTR().