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

◆ AllocateContext()

static unsafe GetAddrInfoExContext * System.Net.NameResolutionPal.GetAddrInfoExContext.AllocateContext ( )
inlinestatic

Definition at line 152 of file NameResolutionPal.cs.

153 {
154 GetAddrInfoExContext* ptr = (GetAddrInfoExContext*)(void*)Marshal.AllocHGlobal(sizeof(GetAddrInfoExContext));
155 *ptr = default(GetAddrInfoExContext);
156 return ptr;
157 }
static IntPtr AllocHGlobal(int cb)
Definition Marshal.cs:625

References System.Runtime.InteropServices.Marshal.AllocHGlobal().

Referenced by System.Net.NameResolutionPal.GetAddrInfoAsync().