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
Stack.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000647 RID: 1607
10 [TypeForwardedFrom("System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
11 [DebuggerDisplay("Count = {Count}")]
14 {
15 // Token: 0x0600311C RID: 12572 RVA: 0x0006AF98 File Offset: 0x00069198
16 public Stack()
17 {
18 this._array = this;
19 }
20
21 // Token: 0x170007EB RID: 2027
22 // (get) Token: 0x0600311D RID: 12573 RVA: 0x0006AFB4 File Offset: 0x000691B4
23 public int Count
24 {
25 get
26 {
27 return this._size;
28 }
29 }
30
31 // Token: 0x170007EC RID: 2028
32 // (get) Token: 0x0600311E RID: 12574 RVA: 0x0006AFC8 File Offset: 0x000691C8
34 {
35 get
36 {
37 }
38 }
39
40 // Token: 0x170007ED RID: 2029
41 // (get) Token: 0x0600311F RID: 12575 RVA: 0x0006AFD8 File Offset: 0x000691D8
43 {
44 get
45 {
46 /*
47An exception occurred when decompiling this method (0600311F)
48
49ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Collections.Generic.Stack`1::System.Collections.ICollection.get_SyncRoot()
50
51 ---> System.Exception: Basic block has to end with unconditional control flow.
52{
53 IL_0000:
54 brtrue(IL_0000, ldfld:object[exp:bool](Stack`1::_syncRoot, ldloc:Stack`1(this)))
55}
56
57 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
58 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
59 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
60 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
61 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
62 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
63 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
64 --- End of inner exception stack trace ---
65 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
66 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
67*/;
68 }
69 }
70
71 // Token: 0x06003120 RID: 12576 RVA: 0x0006AFEC File Offset: 0x000691EC
73 {
74 if (array == null)
75 {
76 return;
77 }
78 int rank = array.Rank;
79 int num;
80 if (num == 0)
81 {
82 return;
83 }
84 }
85
86 // Token: 0x06003121 RID: 12577 RVA: 0x0000207A File Offset: 0x0000027A
88 {
89 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
90 }
91
92 // Token: 0x06003122 RID: 12578 RVA: 0x0000207A File Offset: 0x0000027A
94 {
95 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
96 }
97
98 // Token: 0x06003123 RID: 12579 RVA: 0x0000207A File Offset: 0x0000027A
99 public T Peek()
100 {
101 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
102 }
103
104 // Token: 0x06003124 RID: 12580 RVA: 0x0000207A File Offset: 0x0000027A
105 public T Pop()
106 {
107 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
108 }
109
110 // Token: 0x06003125 RID: 12581 RVA: 0x0000207A File Offset: 0x0000027A
111 public void Push(T item)
112 {
113 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
114 }
115
116 // Token: 0x06003126 RID: 12582 RVA: 0x0000207A File Offset: 0x0000027A
117 private void PushWithResize(T item)
118 {
119 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
120 }
121
122 // Token: 0x06003127 RID: 12583 RVA: 0x0000207A File Offset: 0x0000027A
123 private void ThrowForEmptyStack()
124 {
125 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
126 }
127
128 // Token: 0x04001A95 RID: 6805
129 private T[] _array;
130
131 // Token: 0x04001A96 RID: 6806
132 private int _size;
133
134 // Token: 0x04001A97 RID: 6807
135 private int _version;
136
137 // Token: 0x04001A98 RID: 6808
139 private object _syncRoot;
140
141 // Token: 0x02000648 RID: 1608
142 [Serializable]
144 {
145 // Token: 0x06003128 RID: 12584 RVA: 0x0006B010 File Offset: 0x00069210
147 {
149 int version = stack._version;
150 this._version = version;
151 }
152
153 // Token: 0x06003129 RID: 12585 RVA: 0x0006B034 File Offset: 0x00069234
154 public void Dispose()
155 {
156 }
157
158 // Token: 0x0600312A RID: 12586 RVA: 0x0006B044 File Offset: 0x00069244
159 public bool MoveNext()
160 {
161 /*
162An exception occurred when decompiling this method (0600312A)
163
164ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Collections.Generic.Stack`1/Enumerator::MoveNext()
165
166 ---> System.Exception: Basic block has to end with unconditional control flow.
167{
168 Block_0:
169 stloc:int32(var_0_06, ldfld:int32(Enumerator::_version, ldloc:valuetype System.Collections.Generic.Stack`1/Enumerator&(this)))
170 stloc:int32(var_1_0D, ldfld:int32(Enumerator::_index, ldloc:valuetype System.Collections.Generic.Stack`1/Enumerator&(this)))
171 stfld:int32(Enumerator::_index, ldloc:valuetype System.Collections.Generic.Stack`1/Enumerator&(this), ldloc:int32(var_1_0D))
172 stloc:int64(var_2_16, ldc.i4:int64(0))
173 stfld:int32(Enumerator::_index, ldloc:valuetype System.Collections.Generic.Stack`1/Enumerator&(this), ldloc:int32(var_1_0D))
174 stfld:!T(Enumerator::_currentElement, ldloc:valuetype System.Collections.Generic.Stack`1/Enumerator&(this), ldloc:int64[exp:!T](var_2_16))
175}
176
177 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
178 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
179 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
180 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
181 --- End of inner exception stack trace ---
182 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
183 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
184*/;
185 }
186
187 // Token: 0x170007EE RID: 2030
188 // (get) Token: 0x0600312B RID: 12587 RVA: 0x0006B078 File Offset: 0x00069278
189 public T Current
190 {
191 get
192 {
193 int index = this._index;
194 return this._currentElement;
195 }
196 }
197
198 // Token: 0x0600312C RID: 12588 RVA: 0x0006B094 File Offset: 0x00069294
200 {
201 /*
202An exception occurred when decompiling this method (0600312C)
203
204ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void System.Collections.Generic.Stack`1/Enumerator::ThrowEnumerationNotStartedOrEnded()
205
206 ---> System.Exception: Basic block has to end with unconditional control flow.
207{
208 Block_0:
209 stloc:int32(var_0_06, ldfld:int32(Enumerator::_index, ldloc:valuetype System.Collections.Generic.Stack`1/Enumerator&(this)))
210}
211
212 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
213 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
214 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
215 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
216 --- End of inner exception stack trace ---
217 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
218 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
219*/;
220 }
221
222 // Token: 0x170007EF RID: 2031
223 // (get) Token: 0x0600312D RID: 12589 RVA: 0x0006B0A8 File Offset: 0x000692A8
225 {
226 get
227 {
228 /*
229An exception occurred when decompiling this method (0600312D)
230
231ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Collections.Generic.Stack`1/Enumerator::System.Collections.IEnumerator.get_Current()
232
233 ---> System.Exception: Basic block has to end with unconditional control flow.
234{
235 Block_0:
236 stloc:int32(var_0_06, ldfld:int32(Enumerator::_version, ldloc:valuetype System.Collections.Generic.Stack`1/Enumerator&(this)))
237 stloc:!T(var_1_0D, callgetter:!0[exp:!T](Enumerator::get_Current, ldloc:valuetype System.Collections.Generic.Stack`1/Enumerator&(this)))
238}
239
240 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
241 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
242 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
243 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
244 --- End of inner exception stack trace ---
245 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
246 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
247*/;
248 }
249 }
250
251 // Token: 0x0600312E RID: 12590 RVA: 0x0006B0C4 File Offset: 0x000692C4
253 {
254 int version = this._version;
255 }
256
257 // Token: 0x04001A99 RID: 6809
259
260 // Token: 0x04001A9A RID: 6810
261 private readonly int _version;
262
263 // Token: 0x04001A9B RID: 6811
264 private int _index;
265
266 // Token: 0x04001A9C RID: 6812
268 }
269 }
270}
class f__AnonymousType0<< Count > j__TPar
void CopyTo(T[] array, int arrayIndex)