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