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

◆ FreeContext()

static unsafe void System.Net.NameResolutionPal.GetAddrInfoExContext.FreeContext ( GetAddrInfoExContext * context)
inlinestatic

Definition at line 159 of file NameResolutionPal.cs.

160 {
161 if (context->Result != null)
162 {
163 global::Interop.Winsock.FreeAddrInfoExW(context->Result);
164 }
165 Marshal.FreeHGlobal((IntPtr)context);
166 }
static void FreeHGlobal(IntPtr hglobal)
Definition Marshal.cs:1680

References System.Runtime.InteropServices.Marshal.FreeHGlobal(), and System.Net.NameResolutionPal.GetAddrInfoExContext.Result.

Referenced by System.Net.NameResolutionPal.GetAddrInfoAsync(), and System.Net.NameResolutionPal.ProcessResult().