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
SocketAddress.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Net
6{
7 // Token: 0x020001C4 RID: 452
8 public class SocketAddress
9 {
10 // Token: 0x1700022F RID: 559
11 // (get) Token: 0x06000AD2 RID: 2770 RVA: 0x00023C40 File Offset: 0x00021E40
12 public global::System.Net.Sockets.AddressFamily Family
13 {
14 get
15 {
16 /*
17An exception occurred when decompiling this method (06000AD2)
18
19ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.Sockets.AddressFamily System.Net.SocketAddress::get_Family()
20
21 ---> System.Exception: Basic block has to end with unconditional control flow.
22{
23 Block_0:
24 stloc:uint8[](var_0_06, ldfld:uint8[](SocketAddress::m_Buffer, ldloc:SocketAddress(this)))
25}
26
27 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
28 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
29 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
30 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
31 --- End of inner exception stack trace ---
32 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
33 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
34*/;
35 }
36 }
37
38 // Token: 0x17000230 RID: 560
39 // (get) Token: 0x06000AD3 RID: 2771 RVA: 0x00023C54 File Offset: 0x00021E54
40 public int Size
41 {
42 get
43 {
44 return this.m_Size;
45 }
46 }
47
48 // Token: 0x17000231 RID: 561
49 public byte this[int offset]
50 {
51 get
52 {
53 /*
54An exception occurred when decompiling this method (06000AD4)
55
56ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte System.Net.SocketAddress::get_Item(System.Int32)
57
58 ---> System.Exception: Basic block has to end with unconditional control flow.
59{
60 Block_0:
61 stloc:int32(var_0_06, ldfld:int32(SocketAddress::m_Size, ldloc:SocketAddress(this)))
62 stloc:uint8[](var_1_0D, ldfld:uint8[](SocketAddress::m_Buffer, ldloc:SocketAddress(this)))
63}
64
65 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
66 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
67 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
68 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
69 --- End of inner exception stack trace ---
70 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
71 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
72*/;
73 }
74 set
75 {
76 int size = this.m_Size;
77 byte[] buffer = this.m_Buffer;
78 int num = 1;
79 this.m_changed = num != 0;
81 }
82 }
83
84 // Token: 0x06000AD6 RID: 2774 RVA: 0x00023CB0 File Offset: 0x00021EB0
85 public SocketAddress(global::System.Net.Sockets.AddressFamily family)
86 {
87 }
88
89 // Token: 0x06000AD7 RID: 2775 RVA: 0x00023CC0 File Offset: 0x00021EC0
90 public SocketAddress(global::System.Net.Sockets.AddressFamily family, int size)
91 {
92 int num = 1;
93 this.m_changed = num != 0;
94 base..ctor();
95 this.m_Size = size;
96 int size2 = IntPtr.Size;
97 int size3 = IntPtr.Size;
98 byte[] buffer = this.m_Buffer;
99 }
100
101 // Token: 0x06000AD8 RID: 2776 RVA: 0x00023D00 File Offset: 0x00021F00
103 {
104 global::System.Net.Sockets.AddressFamily addressFamily = ipAddress.AddressFamily;
105 global::System.Net.Sockets.AddressFamily addressFamily2 = ipAddress.AddressFamily;
106 byte[] buffer = this.m_Buffer;
107 byte[] buffer2 = this.m_Buffer;
108 global::System.Net.Sockets.AddressFamily addressFamily3 = ipAddress.AddressFamily;
109 byte[] buffer3 = this.m_Buffer;
110 byte[] buffer4 = this.m_Buffer;
111 byte[] buffer5 = this.m_Buffer;
112 byte[] buffer6 = this.m_Buffer;
113 long scopeId = ipAddress.ScopeId;
114 byte[] buffer7 = this.m_Buffer;
115 byte[] buffer8 = this.m_Buffer;
116 byte[] buffer9 = this.m_Buffer;
117 byte[] buffer10 = this.m_Buffer;
118 byte[] addressBytes = ipAddress.GetAddressBytes();
119 byte[] buffer11 = this.m_Buffer;
120 }
121
122 // Token: 0x06000AD9 RID: 2777 RVA: 0x00023DAC File Offset: 0x00021FAC
124 {
125 byte[] buffer = this.m_Buffer;
126 byte[] buffer2 = this.m_Buffer;
127 }
128
129 // Token: 0x06000ADA RID: 2778 RVA: 0x00023DC8 File Offset: 0x00021FC8
131 {
132 /*
133An exception occurred when decompiling this method (06000ADA)
134
135ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.IPAddress System.Net.SocketAddress::GetIPAddress()
136
137 ---> System.Exception: Basic block has to end with unconditional control flow.
138{
139 Block_0:
140 stloc:uint8[](var_0_06, ldfld:uint8[](SocketAddress::m_Buffer, ldloc:SocketAddress(this)))
141 stloc:uint8[](var_2_10, ldfld:uint8[](SocketAddress::m_Buffer, ldloc:SocketAddress(this)))
142 stloc:uint8[](var_4_19, ldfld:uint8[](SocketAddress::m_Buffer, ldloc:SocketAddress(this)))
143}
144
145 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
146 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
147 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
148 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
149 --- End of inner exception stack trace ---
150 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
151 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
152*/;
153 }
154
155 // Token: 0x06000ADB RID: 2779 RVA: 0x00023DF0 File Offset: 0x00021FF0
157 {
158 /*
159An exception occurred when decompiling this method (06000ADB)
160
161ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.IPEndPoint System.Net.SocketAddress::GetIPEndPoint()
162
163 ---> System.Exception: Basic block has to end with unconditional control flow.
164{
165 Block_0:
166 stloc:IPAddress(var_0_06, call:IPAddress(SocketAddress::GetIPAddress, ldloc:SocketAddress(this)))
167 stloc:uint8[](var_1_0D, ldfld:uint8[](SocketAddress::m_Buffer, ldloc:SocketAddress(this)))
168}
169
170 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
171 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
172 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
173 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
174 --- End of inner exception stack trace ---
175 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
176 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
177*/;
178 }
179
180 // Token: 0x06000ADC RID: 2780 RVA: 0x00023E0C File Offset: 0x0002200C
182 {
183 byte[] buffer = this.m_Buffer;
184 int size = IntPtr.Size;
185 int size2 = this.m_Size;
186 byte[] buffer2 = this.m_Buffer;
187 int size3 = IntPtr.Size;
188 int size4 = this.m_Size;
189 byte[] buffer3 = this.m_Buffer;
190 int size5 = IntPtr.Size;
191 byte[] buffer4 = this.m_Buffer;
192 int size6 = IntPtr.Size;
193 }
194
195 // Token: 0x06000ADD RID: 2781 RVA: 0x00023E70 File Offset: 0x00022070
196 internal int GetAddressSizeOffset()
197 {
198 byte[] buffer = this.m_Buffer;
199 return IntPtr.Size;
200 }
201
202 // Token: 0x06000ADE RID: 2782 RVA: 0x00023E8C File Offset: 0x0002208C
203 internal unsafe void SetSize(IntPtr ptr)
204 {
205 void* ptr2 = (void*)ptr;
206 }
207
208 // Token: 0x06000ADF RID: 2783 RVA: 0x00023EA0 File Offset: 0x000220A0
209 public override bool Equals(object comparand)
210 {
211 if (comparand != null)
212 {
213 int size = this.m_Size;
214 long num = 0L;
215 byte b = this[(int)num];
216 int size2 = this.m_Size;
217 return;
218 }
219 }
220
221 // Token: 0x06000AE0 RID: 2784 RVA: 0x00023ED4 File Offset: 0x000220D4
222 public override int GetHashCode()
223 {
224 if (this.m_changed)
225 {
226 long num = 0L;
227 byte[] buffer = this.m_Buffer;
228 this.m_hash = (int)num;
229 }
230 int hash = this.m_hash;
231 byte[] buffer2 = this.m_Buffer;
232 this.m_hash = hash;
233 return hash;
234 }
235
236 // Token: 0x06000AE1 RID: 2785 RVA: 0x00023F18 File Offset: 0x00022118
237 public override string ToString()
238 {
239 int size = this.m_Size;
240 int num = 2;
241 byte b = this[num];
243 int size2 = this.m_Size;
244 byte[] buffer = this.m_Buffer;
245 string text;
246 if ((text == null || text != null) && (":" == null || ":" != null))
247 {
248 int size3 = this.m_Size;
250 string text2;
251 if ((text2 == null || text2 != null) && (":{" == null || ":{" != null) && ("}" == null || "}" != null))
252 {
253 string text3;
254 return text3;
255 }
256 }
257 throw new ArrayTypeMismatchException();
258 }
259
260 // Token: 0x04000986 RID: 2438
261 internal const int IPv6AddressSize = 28;
262
263 // Token: 0x04000987 RID: 2439
264 internal const int IPv4AddressSize = 16;
265
266 // Token: 0x04000988 RID: 2440
267 internal int m_Size;
268
269 // Token: 0x04000989 RID: 2441
270 internal byte[] m_Buffer;
271
272 // Token: 0x0400098A RID: 2442
273 private const int WriteableOffset = 2;
274
275 // Token: 0x0400098B RID: 2443
276 private const int MaxSize = 32;
277
278 // Token: 0x0400098C RID: 2444
279 private bool m_changed;
280
281 // Token: 0x0400098D RID: 2445
282 private int m_hash;
283 }
284}
class f__AnonymousType0<< Count > j__TPar
byte[] GetAddressBytes()
Definition IPAddress.cs:261
unsafe void SetSize(IntPtr ptr)
SocketAddress(global::System.Net.Sockets.AddressFamily family, int size)
SocketAddress(IPAddress ipAddress)
global::System.Net.Sockets.AddressFamily Family
SocketAddress(IPAddress ipaddress, int port)
SocketAddress(global::System.Net.Sockets.AddressFamily family)
override bool Equals(object comparand)
override string ToString()
static int Size
Definition IntPtr.cs:45