Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SafeMsQuicConnectionHandle.cs
Go to the documentation of this file.
2
4
6{
7 public override bool IsInvalid => handle == IntPtr.Zero;
8
10 : base(IntPtr.Zero, ownsHandle: true)
11 {
12 }
13
14 public SafeMsQuicConnectionHandle(IntPtr connectionHandle)
15 : this()
16 {
17 SetHandle(connectionHandle);
18 }
19
20 protected override bool ReleaseHandle()
21 {
22 MsQuicApi.Api.ConnectionCloseDelegate(handle);
24 return true;
25 }
26}
static readonly IntPtr Zero
Definition IntPtr.cs:18