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
HttpStreamAsyncResult.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Net
5{
6 // Token: 0x02000254 RID: 596
8 {
9 // Token: 0x06000F82 RID: 3970 RVA: 0x000312F4 File Offset: 0x0002F4F4
10 public void Complete(Exception e)
11 {
12 this.Error = e;
13 this.Complete();
14 }
15
16 // Token: 0x06000F83 RID: 3971 RVA: 0x00031310 File Offset: 0x0002F510
17 public void Complete()
18 {
19 object obj = this.locker;
20 if (this.completed)
21 {
22 return;
23 }
24 if (obj != null)
25 {
26 }
27 bool flag;
28 while (!flag)
29 {
30 }
31 long num = 0L;
32 if (true)
33 {
35 }
36 if (num == 0L)
37 {
38 return;
39 }
40 throw new OutOfMemoryException();
41 }
42
43 // Token: 0x17000357 RID: 855
44 // (get) Token: 0x06000F84 RID: 3972 RVA: 0x00031370 File Offset: 0x0002F570
45 public object AsyncState
46 {
47 get
48 {
49 return this.State;
50 }
51 }
52
53 // Token: 0x17000358 RID: 856
54 // (get) Token: 0x06000F85 RID: 3973 RVA: 0x00031384 File Offset: 0x0002F584
56 {
57 get
58 {
59 object obj = this.locker;
60 if (this.handle != null)
61 {
62 }
63 bool flag = this.completed;
64 long num = 0L;
66 if (num == 0L && 3 == 0)
67 {
69 }
70 throw new OutOfMemoryException();
71 }
72 }
73
74 // Token: 0x17000359 RID: 857
75 // (get) Token: 0x06000F86 RID: 3974 RVA: 0x000313DC File Offset: 0x0002F5DC
77 {
78 get
79 {
80 /*
81An exception occurred when decompiling this method (06000F86)
82
83ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Net.HttpStreamAsyncResult::get_CompletedSynchronously()
84
85 ---> System.Exception: Basic block has to end with unconditional control flow.
86{
87 Block_0:
88 stloc:int32(var_0_06, ldfld:int32(HttpStreamAsyncResult::SynchRead, ldloc:HttpStreamAsyncResult(this)))
89 stloc:int32(var_1_0D, ldfld:int32(HttpStreamAsyncResult::Count, ldloc:HttpStreamAsyncResult(this)))
90}
91
92 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
93 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
94 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
95 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
96 --- End of inner exception stack trace ---
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 92
98 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
99*/;
100 }
101 }
102
103 // Token: 0x1700035A RID: 858
104 // (get) Token: 0x06000F87 RID: 3975 RVA: 0x000313F8 File Offset: 0x0002F5F8
105 public bool IsCompleted
106 {
107 get
108 {
109 object obj = this.locker;
110 bool flag = this.completed;
111 long num = 0L;
112 if (flag)
113 {
115 }
116 if (num == 0L)
117 {
118 }
119 throw new OutOfMemoryException();
120 }
121 }
122
123 // Token: 0x06000F88 RID: 3976 RVA: 0x00031444 File Offset: 0x0002F644
125 {
126 }
127
128 // Token: 0x04000C5A RID: 3162
129 private object locker;
130
131 // Token: 0x04000C5B RID: 3163
133
134 // Token: 0x04000C5C RID: 3164
135 private bool completed;
136
137 // Token: 0x04000C5D RID: 3165
138 internal byte[] Buffer;
139
140 // Token: 0x04000C5E RID: 3166
141 internal int Offset;
142
143 // Token: 0x04000C5F RID: 3167
144 internal int Count;
145
146 // Token: 0x04000C60 RID: 3168
148
149 // Token: 0x04000C61 RID: 3169
150 internal object State;
151
152 // Token: 0x04000C62 RID: 3170
153 internal int SynchRead;
154
155 // Token: 0x04000C63 RID: 3171
156 internal Exception Error;
157 }
158}
class f__AnonymousType0<< Count > j__TPar
static void Exit(object obj)
Definition Monitor.cs:47