Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MsQuicTraceHelper.cs
Go to the documentation of this file.
2
4
5internal static class MsQuicTraceHelper
6{
7 internal static string GetTraceId(SafeMsQuicStreamHandle handle)
8 {
9 return "[strm][0x" + GetIntPtrHex(handle) + "]";
10 }
11
13 {
14 return "[conn][0x" + GetIntPtrHex(handle) + "]";
15 }
16
18 {
19 return "[list][0x" + GetIntPtrHex(handle) + "]";
20 }
21
22 private static string GetIntPtrHex(SafeHandle handle)
23 {
24 return handle.DangerousGetHandle().ToString("X11");
25 }
26}
static string GetTraceId(SafeMsQuicStreamHandle handle)
static string GetTraceId(SafeMsQuicListenerHandle handle)
static string GetTraceId(SafeMsQuicConnectionHandle handle)