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

◆ AllocBSTRByteLen()

static IntPtr System.Runtime.InteropServices.Marshal.AllocBSTRByteLen ( uint length)
inlinestaticpackage

Definition at line 1740 of file Marshal.cs.

1741 {
1743 if (intPtr == IntPtr.Zero)
1744 {
1745 throw new OutOfMemoryException();
1746 }
1747 return intPtr;
1748 }
static IntPtr SysAllocStringByteLen(byte[] str, uint len)

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

Referenced by System.StubHelpers.AnsiBSTRMarshaler.ConvertToNative(), and System.StubHelpers.BSTRMarshaler.ConvertToNative().