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
SocketAsyncResult.cs
Go to the documentation of this file.
1using System;
6
7namespace System.Net.Sockets
8{
9 // Token: 0x0200030B RID: 779
10 [StructLayout(0)]
11 internal sealed class SocketAsyncResult : global::System.IOAsyncResult
12 {
13 // Token: 0x170004A1 RID: 1185
14 // (get) Token: 0x06001464 RID: 5220 RVA: 0x0003E24C File Offset: 0x0003C44C
16 {
17 get
18 {
20 do
21 {
22 socket = this.socket;
23 }
24 while (socket == null);
25 return socket.Handle;
26 }
27 }
28
29 // Token: 0x06001465 RID: 5221 RVA: 0x0003E26C File Offset: 0x0003C46C
31 {
32 }
33
34 // Token: 0x06001466 RID: 5222 RVA: 0x0003E280 File Offset: 0x0003C480
36 {
37 base.Init(callback, state);
42 }
43
44 // Token: 0x06001467 RID: 5223 RVA: 0x0003E2B0 File Offset: 0x0003C4B0
51
52 // Token: 0x170004A2 RID: 1186
53 // (get) Token: 0x06001468 RID: 5224 RVA: 0x0003E2D4 File Offset: 0x0003C4D4
55 {
56 get
57 {
58 /*
59An exception occurred when decompiling this method (06001468)
60
61ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Net.Sockets.SocketError System.Net.Sockets.SocketAsyncResult::get_ErrorCode()
62
63 ---> System.Exception: Basic block has to end with unconditional control flow.
64{
65 IL_0008:
66 stloc:int32(var_0_0E, ldfld:int32(SocketAsyncResult::error, ldloc:SocketAsyncResult(this)))
67}
68
69 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
70 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
71 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
72 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
73 --- End of inner exception stack trace ---
74 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
75 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
76*/;
77 }
78 }
79
80 // Token: 0x06001469 RID: 5225 RVA: 0x0003E2F0 File Offset: 0x0003C4F0
82 {
83 /*
84An exception occurred when decompiling this method (06001469)
85
86ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Net.Sockets.SocketAsyncResult::CheckIfThrowDelayedException()
87
88 ---> System.Exception: Basic block has to end with unconditional control flow.
89{
90 IL_0011:
91 stloc:Socket(var_0_17, ldfld:Socket(SocketAsyncResult::socket, ldloc:SocketAsyncResult(this)))
92}
93
94 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
95 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
96 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
97 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
98 --- End of inner exception stack trace ---
99 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
100 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
101*/;
102 }
103
104 // Token: 0x0600146A RID: 5226 RVA: 0x0003E314 File Offset: 0x0003C514
105 internal override void CompleteDisposed()
106 {
107 this.Complete();
108 }
109
110 // Token: 0x0600146B RID: 5227 RVA: 0x0003E328 File Offset: 0x0003C528
111 public void Complete()
112 {
114 bool cleanedUp = this.socket.CleanedUp;
115 Type type = this.socket.GetType();
116 int num = 1;
117 base.IsCompleted = num != 0;
118 Socket socket = this.socket;
119 bool completed_synchronously = this.completed_synchronously;
121 if (!completed_synchronously)
122 {
123 AsyncCallback async_callback = this.async_callback;
124 if (async_callback != null)
125 {
126 if (async_callback == null)
127 {
128 }
129 if (type != null || async_callback == null)
130 {
131 }
132 }
133 }
134 }
135
136 // Token: 0x0600146C RID: 5228 RVA: 0x0003E394 File Offset: 0x0003C594
137 public void Complete(bool synch)
138 {
139 this.Complete();
140 }
141
142 // Token: 0x0600146D RID: 5229 RVA: 0x0003E3A8 File Offset: 0x0003C5A8
143 public void Complete(int total)
144 {
145 this.Total = total;
146 this.Complete();
147 }
148
149 // Token: 0x0600146E RID: 5230 RVA: 0x0003E3C4 File Offset: 0x0003C5C4
150 public void Complete(Exception e, bool synch)
151 {
153 this.Complete();
154 }
155
156 // Token: 0x0600146F RID: 5231 RVA: 0x0003E3E0 File Offset: 0x0003C5E0
157 public void Complete(Exception e)
158 {
160 this.Complete();
161 }
162
163 // Token: 0x06001470 RID: 5232 RVA: 0x0003E3FC File Offset: 0x0003C5FC
164 public void Complete(Socket s)
165 {
167 this.Complete();
168 }
169
170 // Token: 0x06001471 RID: 5233 RVA: 0x0003E418 File Offset: 0x0003C618
171 public void Complete(Socket s, int total)
172 {
174 this.Total = total;
175 this.Complete();
176 }
177
178 // Token: 0x040010F7 RID: 4343
180
181 // Token: 0x040010F8 RID: 4344
183
184 // Token: 0x040010F9 RID: 4345
186
187 // Token: 0x040010FA RID: 4346
189
190 // Token: 0x040010FB RID: 4347
192
193 // Token: 0x040010FC RID: 4348
194 public int Offset;
195
196 // Token: 0x040010FD RID: 4349
197 public int Size;
198
199 // Token: 0x040010FE RID: 4350
201
202 // Token: 0x040010FF RID: 4351
204
205 // Token: 0x04001100 RID: 4352
207
208 // Token: 0x04001101 RID: 4353
209 public int Port;
210
211 // Token: 0x04001102 RID: 4354
213
214 // Token: 0x04001103 RID: 4355
215 public bool ReuseSocket;
216
217 // Token: 0x04001104 RID: 4356
218 public int CurrentAddress;
219
220 // Token: 0x04001105 RID: 4357
222
223 // Token: 0x04001106 RID: 4358
224 public int Total;
225
226 // Token: 0x04001107 RID: 4359
227 internal int error;
228
229 // Token: 0x04001108 RID: 4360
230 public int EndCalled;
231
232 // Token: 0x0200030C RID: 780
234 [Serializable]
235 private sealed class <>c
236 {
237 // Token: 0x06001472 RID: 5234 RVA: 0x0003E43C File Offset: 0x0003C63C
238 // Note: this type is marked as 'beforefieldinit'.
239 static <>c()
240 {
241 }
242
243 // Token: 0x06001473 RID: 5235 RVA: 0x0003E44C File Offset: 0x0003C64C
244 public <>c()
245 {
246 }
247
248 // Token: 0x06001474 RID: 5236 RVA: 0x0003E460 File Offset: 0x0003C660
249 internal void <Complete>b__27_0(object state)
250 {
251 if (state != null)
252 {
253 }
254 }
255
256 // Token: 0x04001109 RID: 4361
257 public static readonly SocketAsyncResult.<>c <>9;
258
259 // Token: 0x0400110A RID: 4362
260 public static WaitCallback <>9__27_0;
261 }
262 }
263}
class f__AnonymousType0<< Count > j__TPar
SocketAsyncResult(Socket socket, AsyncCallback callback, object state, SocketOperation operation)
IList< ArraySegment< byte > > Buffers
void Init(Socket socket, AsyncCallback callback, object state, SocketOperation operation)
void Complete(Exception e, bool synch)