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
SocketAsyncEventArgs.cs
Go to the documentation of this file.
1using System;
4
5namespace System.Net.Sockets
6{
7 // Token: 0x0200030A RID: 778
9 {
10 // Token: 0x17000494 RID: 1172
11 // (get) Token: 0x06001446 RID: 5190 RVA: 0x0003DF68 File Offset: 0x0003C168
12 // (set) Token: 0x06001447 RID: 5191 RVA: 0x0003DF7C File Offset: 0x0003C17C
14 {
16 get
17 {
18 return this.<AcceptSocket>k__BackingField;
19 }
21 set
22 {
24 }
25 }
26
27 // Token: 0x17000495 RID: 1173
28 // (get) Token: 0x06001448 RID: 5192 RVA: 0x0003DF90 File Offset: 0x0003C190
29 // (set) Token: 0x06001449 RID: 5193 RVA: 0x0003DFA4 File Offset: 0x0003C1A4
31 {
33 get
34 {
36 }
38 private set
39 {
41 }
42 }
43
44 // Token: 0x17000496 RID: 1174
45 // (set) Token: 0x0600144A RID: 5194 RVA: 0x0003DFB8 File Offset: 0x0003C1B8
47 {
49 set
50 {
52 }
53 }
54
55 // Token: 0x17000497 RID: 1175
56 // (set) Token: 0x0600144B RID: 5195 RVA: 0x0003DFCC File Offset: 0x0003C1CC
58 {
59 set
60 {
62 }
63 }
64
65 // Token: 0x17000498 RID: 1176
66 // (set) Token: 0x0600144C RID: 5196 RVA: 0x0003DFE0 File Offset: 0x0003C1E0
67 [MonoTODO("unused property")]
69 {
71 set
72 {
74 }
75 }
76
77 // Token: 0x17000499 RID: 1177
78 // (get) Token: 0x0600144D RID: 5197 RVA: 0x0003DFF4 File Offset: 0x0003C1F4
79 // (set) Token: 0x0600144E RID: 5198 RVA: 0x0003E008 File Offset: 0x0003C208
81 {
83 get
84 {
85 return this.<SocketError>k__BackingField;
86 }
88 set
89 {
91 }
92 }
93
94 // Token: 0x1700049A RID: 1178
95 // (set) Token: 0x0600144F RID: 5199 RVA: 0x0003E01C File Offset: 0x0003C21C
97 {
99 set
100 {
102 }
103 }
104
105 // Token: 0x1700049B RID: 1179
106 // (get) Token: 0x06001450 RID: 5200 RVA: 0x0003E030 File Offset: 0x0003C230
107 // (set) Token: 0x06001451 RID: 5201 RVA: 0x0003E044 File Offset: 0x0003C244
108 public object UserToken
109 {
111 get
112 {
113 return this.<UserToken>k__BackingField;
114 }
116 set
117 {
119 }
120 }
121
122 // Token: 0x1400000D RID: 13
123 // (add) Token: 0x06001452 RID: 5202 RVA: 0x0003E058 File Offset: 0x0003C258
124 // (remove) Token: 0x06001453 RID: 5203 RVA: 0x0003E080 File Offset: 0x0003C280
126 {
128 add
129 {
131 if (@delegate != null && @delegate == null)
132 {
133 return;
134 }
135 }
137 remove
138 {
140 if (@delegate != null && @delegate == null)
141 {
142 return;
143 }
144 }
145 }
146
147 // Token: 0x06001454 RID: 5204 RVA: 0x0003E0A8 File Offset: 0x0003C2A8
149 {
150 if (!true)
151 {
152 }
153 base..ctor();
155 }
156
157 // Token: 0x06001455 RID: 5205 RVA: 0x0003E0C8 File Offset: 0x0003C2C8
159 {
160 if (!true)
161 {
162 }
163 base..ctor();
164 }
165
166 // Token: 0x06001456 RID: 5206 RVA: 0x0003E0E0 File Offset: 0x0003C2E0
167 protected override void Finalize()
168 {
169 this.disposed = true;
170 base.Finalize();
171 }
172
173 // Token: 0x06001457 RID: 5207 RVA: 0x0003E0FC File Offset: 0x0003C2FC
174 private void Dispose(bool disposing)
175 {
176 this.disposed = true;
177 }
178
179 // Token: 0x06001458 RID: 5208 RVA: 0x0003E114 File Offset: 0x0003C314
180 public void Dispose()
181 {
182 this.disposed = true;
183 if (!true)
184 {
185 }
186 GC.SuppressFinalize(this);
187 }
188
189 // Token: 0x06001459 RID: 5209 RVA: 0x0003E134 File Offset: 0x0003C334
190 internal void SetBytesTransferred(int value)
191 {
193 }
194
195 // Token: 0x1700049C RID: 1180
196 // (get) Token: 0x0600145A RID: 5210 RVA: 0x0003E148 File Offset: 0x0003C348
198 {
199 get
200 {
201 return this.current_socket;
202 }
203 }
204
205 // Token: 0x0600145B RID: 5211 RVA: 0x0003E15C File Offset: 0x0003C35C
206 internal void SetCurrentSocket(Socket socket)
207 {
208 this.current_socket = socket;
209 }
210
211 // Token: 0x0600145C RID: 5212 RVA: 0x0003E170 File Offset: 0x0003C370
213 {
214 while (!this.disposed)
215 {
216 int num;
217 if (num == 0)
218 {
219 return;
220 }
221 }
222 }
223
224 // Token: 0x0600145D RID: 5213 RVA: 0x0003E18C File Offset: 0x0003C38C
225 internal void Complete_internal()
226 {
227 }
228
229 // Token: 0x0600145E RID: 5214 RVA: 0x0003E19C File Offset: 0x0003C39C
230 protected virtual void OnCompleted(SocketAsyncEventArgs e)
231 {
232 if (e != null && e.Completed != null)
233 {
234 Socket socket = e.current_socket;
235 return;
236 }
237 }
238
239 // Token: 0x1700049D RID: 1181
240 // (get) Token: 0x0600145F RID: 5215 RVA: 0x0003E1BC File Offset: 0x0003C3BC
242 {
243 get
244 {
245 Memory<byte> buffer = this._buffer;
246 int index = this._buffer._index;
247 return buffer;
248 }
249 }
250
251 // Token: 0x1700049E RID: 1182
252 // (get) Token: 0x06001460 RID: 5216 RVA: 0x0003E1E0 File Offset: 0x0003C3E0
253 public int Offset
254 {
255 get
256 {
257 return this._offset;
258 }
259 }
260
261 // Token: 0x1700049F RID: 1183
262 // (get) Token: 0x06001461 RID: 5217 RVA: 0x0003E1F4 File Offset: 0x0003C3F4
263 public int Count
264 {
265 get
266 {
267 return this._count;
268 }
269 }
270
271 // Token: 0x170004A0 RID: 1184
272 // (get) Token: 0x06001462 RID: 5218 RVA: 0x0003E208 File Offset: 0x0003C408
274 {
275 get
276 {
277 return this._bufferList;
278 }
279 }
280
281 // Token: 0x06001463 RID: 5219 RVA: 0x0003E21C File Offset: 0x0003C41C
282 public void SetBuffer(Memory<byte> buffer)
283 {
284 /*
285An exception occurred when decompiling this method (06001463)
286
287ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Net.Sockets.SocketAsyncEventArgs::SetBuffer(System.Memory`1<System.Byte>)
288
289 ---> System.Exception: Basic block has to end with unconditional control flow.
290{
291 IL_0013:
292 stloc:string(var_2_22, call:string(SR::Format, ldstr:string("Buffer and BufferList properties cannot both be non-null."), ldstr:string[exp:object]("BufferList")))
293}
294
295 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
296 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
297 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
298 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
299 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
300 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
301 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
302 --- End of inner exception stack trace ---
303 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
304 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
305*/;
306 }
307
308 // Token: 0x040010E5 RID: 4325
309 private bool disposed;
310
311 // Token: 0x040010E6 RID: 4326
312 internal int in_progress;
313
314 // Token: 0x040010E7 RID: 4327
316
317 // Token: 0x040010E8 RID: 4328
319
320 // Token: 0x040010E9 RID: 4329
322
323 // Token: 0x040010EA RID: 4330
325 private Socket <AcceptSocket>k__BackingField;
326
327 // Token: 0x040010EB RID: 4331
329 private int <BytesTransferred>k__BackingField;
330
331 // Token: 0x040010EC RID: 4332
333 private SocketAsyncOperation <LastOperation>k__BackingField;
334
335 // Token: 0x040010ED RID: 4333
337 private int <SendPacketsSendSize>k__BackingField;
338
339 // Token: 0x040010EE RID: 4334
341 private SocketError <SocketError>k__BackingField;
342
343 // Token: 0x040010EF RID: 4335
345 private SocketFlags <SocketFlags>k__BackingField;
346
347 // Token: 0x040010F0 RID: 4336
349 private object <UserToken>k__BackingField;
350
351 // Token: 0x040010F1 RID: 4337
354
355 // Token: 0x040010F2 RID: 4338
357
358 // Token: 0x040010F3 RID: 4339
359 private int _offset;
360
361 // Token: 0x040010F4 RID: 4340
362 private int _count;
363
364 // Token: 0x040010F5 RID: 4341
366
367 // Token: 0x040010F6 RID: 4342
369 }
370}
class f__AnonymousType0<< Count > j__TPar
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
static void SuppressFinalize(object obj)
Definition GC.cs:116
SocketAsyncEventArgs(bool flowExecutionContext)
void SetLastOperation(SocketAsyncOperation op)
SocketAsyncOperation< LastOperation > k__BackingField
virtual void OnCompleted(SocketAsyncEventArgs e)
EventHandler< SocketAsyncEventArgs > Completed
IList< ArraySegment< byte > > _bufferList
readonly int _index
Definition Memory.cs:239