terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
NclUtilities.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Net
6{
7 // Token: 0x020001A0 RID: 416
8 internal static class NclUtilities
9 {
10 // Token: 0x06000A76 RID: 2678 RVA: 0x00002050 File Offset: 0x00000250
11 internal static bool IsThreadPoolLow()
12 {
13 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
14 }
15
16 // Token: 0x1700021C RID: 540
17 // (get) Token: 0x06000A77 RID: 2679 RVA: 0x000232CC File Offset: 0x000214CC
18 internal static bool HasShutdownStarted
19 {
20 get
21 {
23 return true;
24 }
25 }
26
27 // Token: 0x06000A78 RID: 2680 RVA: 0x000232F0 File Offset: 0x000214F0
28 internal static bool IsCredentialFailure(SecurityStatus error)
29 {
30 }
31
32 // Token: 0x06000A79 RID: 2681 RVA: 0x0002330C File Offset: 0x0002150C
33 internal static bool IsClientFault(SecurityStatus error)
34 {
35 }
36
37 // Token: 0x1700021D RID: 541
38 // (get) Token: 0x06000A7A RID: 2682 RVA: 0x00023328 File Offset: 0x00021528
40 {
41 get
42 {
43 }
44 }
45
46 // Token: 0x06000A7B RID: 2683 RVA: 0x00023338 File Offset: 0x00021538
47 private static void DemandCallback(object state)
48 {
49 }
50
51 // Token: 0x06000A7C RID: 2684 RVA: 0x00023348 File Offset: 0x00021548
52 internal static bool GuessWhetherHostIsLoopback(string host)
53 {
54 string text;
55 bool flag = text == "localhost";
56 return true;
57 }
58
59 // Token: 0x06000A7D RID: 2685 RVA: 0x00023364 File Offset: 0x00021564
60 internal static bool IsFatal(Exception exception)
61 {
62 }
63
64 // Token: 0x06000A7E RID: 2686 RVA: 0x00023378 File Offset: 0x00021578
65 internal static bool IsAddressLocal(IPAddress ipAddress)
66 {
67 /*
68An exception occurred when decompiling this method (06000A7E)
69
70ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.NclUtilities::IsAddressLocal(System.Net.IPAddress)
71
72 ---> System.Exception: Basic block has to end with unconditional control flow.
73{
74 Block_0:
75 stloc:class System.Net.IPAddress[](var_0_05, callgetter:class System.Net.IPAddress[](NclUtilities::get_LocalAddresses))
76 stloc:uint16[](var_1_0C, ldfld:uint16[](IPAddress::_numbers, ldloc:class System.Net.IPAddress[][exp:IPAddress](var_0_05)))
77 stloc:int64(var_3_10, ldc.i4:int64(0))
78 stloc:bool(var_4_19, call:bool(IPAddress::Equals, ldloc:class System.Net.IPAddress[][exp:IPAddress](var_0_05), ldloc:IPAddress[exp:object](ipAddress), ldloc:int64[exp:bool](var_3_10)))
79}
80
81 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
82 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
83 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
84 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
85 --- End of inner exception stack trace ---
86 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
87 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
88*/;
89 }
90
91 // Token: 0x06000A7F RID: 2687 RVA: 0x000233A4 File Offset: 0x000215A4
92 private static IPHostEntry GetLocalHost()
93 {
94 if (!true)
95 {
96 }
98 }
99
100 // Token: 0x1700021E RID: 542
101 // (get) Token: 0x06000A80 RID: 2688 RVA: 0x000233C0 File Offset: 0x000215C0
102 internal static IPAddress[] LocalAddresses
103 {
104 get
105 {
108 if (localHost != null)
109 {
110 string hostName = localHost.hostName;
111 if (hostName != null)
112 {
113 int num = 46;
114 int num2 = hostName.IndexOf((char)num);
115 string text = localHost.hostName.Substring(num2);
116 }
117 IPAddress[] addressList = localHost.addressList;
118 if (addressList != null)
119 {
120 ushort[] numbers = addressList._numbers;
121 ushort[] numbers2 = addressList._numbers;
122 }
123 }
124 long num3 = 0L;
125 int num4 = 13;
126 if (num3 != 0L)
127 {
128 throw new OutOfMemoryException();
129 }
130 if (num4 == 0)
131 {
132 }
133 long num5 = 0L;
135 if (num5 == 0L)
136 {
137 throw new ArrayTypeMismatchException();
138 }
139 throw new OutOfMemoryException();
140 }
141 }
142
143 // Token: 0x1700021F RID: 543
144 // (get) Token: 0x06000A81 RID: 2689 RVA: 0x00023480 File Offset: 0x00021680
145 private static object LocalAddressesLock
146 {
147 get
148 {
149 object obj;
150 return obj;
151 }
152 }
153
154 // Token: 0x04000852 RID: 2130
156
157 // Token: 0x04000853 RID: 2131
158 private static IPAddress[] _LocalAddresses;
159
160 // Token: 0x04000854 RID: 2132
161 private static object _LocalAddressesLock;
162
163 // Token: 0x04000855 RID: 2133
164 private const int HostNameBufferLength = 256;
165
166 // Token: 0x04000856 RID: 2134
167 internal static string _LocalDomainName;
168 }
169}
class f__AnonymousType0<< Count > j__TPar
static bool HasShutdownStarted
static IPHostEntry GetHostByName(string hostName)
Definition Dns.cs:224
static string GetHostName()
Definition Dns.cs:232
readonly ushort[] _numbers
Definition IPAddress.cs:749
static bool GuessWhetherHostIsLoopback(string host)
static object LocalAddressesLock
static IPHostEntry GetLocalHost()
static IPAddress[] _LocalAddresses
static bool IsThreadPoolLow()
static string _LocalDomainName
static object _LocalAddressesLock
static bool IsFatal(Exception exception)
static bool HasShutdownStarted
static ContextCallback s_ContextRelativeDemandCallback
static ContextCallback ContextRelativeDemandCallback
static bool IsAddressLocal(IPAddress ipAddress)
static void DemandCallback(object state)
static IPAddress[] LocalAddresses
static bool IsClientFault(SecurityStatus error)
static bool IsCredentialFailure(SecurityStatus error)
static void Exit(object obj)
Definition Monitor.cs:47