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
SlotVector.cs
Go to the documentation of this file.
1using System;
6
7namespace ReLogic.Utilities
8{
9 // Token: 0x02000B09 RID: 2825
10 public sealed class SlotVector<T> : IEnumerable<SlotVector<T>.ItemPair>, IEnumerable
11 {
12 // Token: 0x170008E4 RID: 2276
13 public T this[int index]
14 {
15 get
16 {
17 /*
18An exception occurred when decompiling this method (06005299)
19
20ICSharpCode.Decompiler.DecompilerException: Error decompiling T ReLogic.Utilities.SlotVector`1::get_Item(System.Int32)
21
22 ---> System.Exception: Basic block has to end with unconditional control flow.
23{
24 Block_0:
25 stloc:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[](var_0_06, ldfld:valuetype ReLogic.Utilities.SlotVector`1/ItemPair<!T>[][exp:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[]](SlotVector`1::_array, ldloc:SlotVector`1(this)))
26 stloc:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[](var_2_0D, ldfld:valuetype ReLogic.Utilities.SlotVector`1/ItemPair<!T>[][exp:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[]](SlotVector`1::_array, ldloc:SlotVector`1(this)))
27}
28
29 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
30 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
31 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
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 88
33 --- End of inner exception stack trace ---
34 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
35 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
36*/;
37 }
38 set
39 {
42 }
43 }
44
45 // Token: 0x170008E5 RID: 2277
46 public T this[SlotId id]
47 {
48 get
49 {
50 /*
51An exception occurred when decompiling this method (0600529B)
52
53ICSharpCode.Decompiler.DecompilerException: Error decompiling T ReLogic.Utilities.SlotVector`1::get_Item(ReLogic.Utilities.SlotId)
54
55 ---> System.Exception: Basic block has to end with unconditional control flow.
56{
57 IL_000F:
58 stloc:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[](var_4_15, ldfld:valuetype ReLogic.Utilities.SlotVector`1/ItemPair<!T>[][exp:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[]](SlotVector`1::_array, ldloc:SlotVector`1(this)))
59}
60
61 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
62 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
63 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
64 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
65 --- End of inner exception stack trace ---
66 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
67 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
68*/;
69 }
70 set
71 {
73 if (this._array == null)
74 {
75 }
77 }
78 }
79
80 // Token: 0x170008E6 RID: 2278
81 // (get) Token: 0x0600529D RID: 21149 RVA: 0x00283338 File Offset: 0x00281538
82 // (set) Token: 0x0600529E RID: 21150 RVA: 0x0028334C File Offset: 0x0028154C
83 public int Count
84 {
86 get
87 {
88 return this.<Count>k__BackingField;
89 }
91 private set
92 {
94 }
95 }
96
97 // Token: 0x170008E7 RID: 2279
98 // (get) Token: 0x0600529F RID: 21151 RVA: 0x00283360 File Offset: 0x00281560
99 public int Capacity
100 {
101 get
102 {
103 /*
104An exception occurred when decompiling this method (0600529F)
105
106ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 ReLogic.Utilities.SlotVector`1::get_Capacity()
107
108 ---> System.Exception: Basic block has to end with unconditional control flow.
109{
110 Block_0:
111 stloc:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[](var_0_06, ldfld:valuetype ReLogic.Utilities.SlotVector`1/ItemPair<!T>[][exp:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[]](SlotVector`1::_array, ldloc:SlotVector`1(this)))
112}
113
114 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
115 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
116 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
117 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
118 --- End of inner exception stack trace ---
119 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
120 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
121*/;
122 }
123 }
124
125 // Token: 0x060052A0 RID: 21152 RVA: 0x00283374 File Offset: 0x00281574
127 {
128 this._array = this;
129 }
130
131 // Token: 0x060052A1 RID: 21153 RVA: 0x00283390 File Offset: 0x00281590
132 public SlotId Add(T value)
133 {
134 /*
135An exception occurred when decompiling this method (060052A1)
136
137ICSharpCode.Decompiler.DecompilerException: Error decompiling ReLogic.Utilities.SlotId ReLogic.Utilities.SlotVector`1::Add(T)
138
139 ---> System.Exception: Basic block has to end with unconditional control flow.
140{
141 Block_0:
142 stloc:uint32(var_0_06, ldfld:uint32(SlotVector`1::_freeHead, ldloc:SlotVector`1(this)))
143 stloc:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[](var_2_13, ldfld:valuetype ReLogic.Utilities.SlotVector`1/ItemPair<!T>[][exp:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[]](SlotVector`1::_array, ldloc:SlotVector`1(this)))
144 stloc:uint32(var_3_1A, ldfld:uint32(SlotVector`1::_usedSpaceLength, ldloc:SlotVector`1(this)))
145 stfld:uint32(SlotVector`1::_usedSpaceLength, ldloc:SlotVector`1(this), ldloc:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[][exp:uint32](var_2_13))
146 stloc:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[](var_5_28, ldfld:valuetype ReLogic.Utilities.SlotVector`1/ItemPair<!T>[][exp:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[]](SlotVector`1::_array, ldloc:SlotVector`1(this)))
147 stfld:uint32(SlotVector`1::_freeHead, ldloc:SlotVector`1(this), ldloc:uint32(var_4))
148 stloc:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[](var_7_38, ldfld:valuetype ReLogic.Utilities.SlotVector`1/ItemPair<!T>[][exp:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[]](SlotVector`1::_array, ldloc:SlotVector`1(this)))
149}
150
151 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
152 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
153 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
154 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
155 --- End of inner exception stack trace ---
156 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
157 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
158*/;
159 }
160
161 // Token: 0x060052A2 RID: 21154 RVA: 0x002833D8 File Offset: 0x002815D8
162 public void Clear()
163 {
166 }
167
168 // Token: 0x060052A3 RID: 21155 RVA: 0x002833F8 File Offset: 0x002815F8
169 public bool Remove(SlotId id)
170 {
171 /*
172An exception occurred when decompiling this method (060052A3)
173
174ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean ReLogic.Utilities.SlotVector`1::Remove(ReLogic.Utilities.SlotId)
175
176 ---> System.Exception: Basic block has to end with unconditional control flow.
177{
178 Block_0:
179 stloc:uint32(var_2_06, ldfld:uint32(SlotVector`1::_freeHead, ldloc:SlotVector`1(this)))
180 stloc:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[](var_3_0D, ldfld:valuetype ReLogic.Utilities.SlotVector`1/ItemPair<!T>[][exp:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[]](SlotVector`1::_array, ldloc:SlotVector`1(this)))
181 stfld:uint32(SlotVector`1::_freeHead, ldloc:SlotVector`1(this), ldloc:uint32(var_1))
182}
183
184 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
185 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
186 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
187 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
188 --- End of inner exception stack trace ---
189 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
190 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
191*/;
192 }
193
194 // Token: 0x060052A4 RID: 21156 RVA: 0x00283420 File Offset: 0x00281620
195 public bool Has(SlotId id)
196 {
198 if (this._array == null)
199 {
200 }
201 bool flag;
202 return flag;
203 }
204
205 // Token: 0x060052A5 RID: 21157 RVA: 0x00283440 File Offset: 0x00281640
206 public bool Has(int index)
207 {
209 bool flag;
210 return flag;
211 }
212
213 // Token: 0x060052A6 RID: 21158 RVA: 0x00283458 File Offset: 0x00281658
215 {
216 /*
217An exception occurred when decompiling this method (060052A6)
218
219ICSharpCode.Decompiler.DecompilerException: Error decompiling ReLogic.Utilities.SlotVector`1/ItemPair<T> ReLogic.Utilities.SlotVector`1::GetPair(System.Int32)
220
221 ---> System.Exception: Basic block has to end with unconditional control flow.
222{
223 IL_0000:
224 brtrue(IL_0000, ldfld:valuetype ReLogic.Utilities.SlotVector`1/ItemPair<!T>[][exp:bool](SlotVector`1::_array, ldloc:SlotVector`1(this)))
225}
226
227 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
228 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
229 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
230 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
231 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
232 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
233 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
234 --- End of inner exception stack trace ---
235 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
236 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
237*/;
238 }
239
240 // Token: 0x060052A7 RID: 21159 RVA: 0x000021DB File Offset: 0x000003DB
242 {
243 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
244 }
245
246 // Token: 0x060052A8 RID: 21160 RVA: 0x000021DB File Offset: 0x000003DB
248 {
249 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
250 }
251
252 // Token: 0x04008AD5 RID: 35541
253 private const uint MAX_INDEX = 65535U;
254
255 // Token: 0x04008AD6 RID: 35542
257
258 // Token: 0x04008AD7 RID: 35543
259 private uint _freeHead;
260
261 // Token: 0x04008AD8 RID: 35544
262 private uint _usedSpaceLength;
263
264 // Token: 0x04008AD9 RID: 35545
266 private int <Count>k__BackingField;
267
268 // Token: 0x02000B0A RID: 2826
269 public sealed class Enumerator : IEnumerator<SlotVector<T>.ItemPair>, IEnumerator, IDisposable
270 {
271 // Token: 0x060052A9 RID: 21161 RVA: 0x0028346C File Offset: 0x0028166C
276
277 // Token: 0x170008E8 RID: 2280
278 // (get) Token: 0x060052AA RID: 21162 RVA: 0x00283488 File Offset: 0x00281688
280 {
281 get
282 {
283 /*
284An exception occurred when decompiling this method (060052AA)
285
286ICSharpCode.Decompiler.DecompilerException: Error decompiling ReLogic.Utilities.SlotVector`1/ItemPair<T> ReLogic.Utilities.SlotVector`1/Enumerator::System.Collections.Generic.IEnumerator<ReLogic.Utilities.SlotVector<T>.ItemPair>.get_Current()
287
288 ---> System.Exception: Basic block has to end with unconditional control flow.
289{
290 Block_0:
291 stloc:int32(var_0_06, ldfld:int32(Enumerator::_index, ldloc:Enumerator(this)))
292 stloc:SlotVector`1(var_1_0D, ldfld:class ReLogic.Utilities.SlotVector`1<!T>[exp:SlotVector`1](Enumerator::_slotVector, ldloc:Enumerator(this)))
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.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
297 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
298 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
299 --- End of inner exception stack trace ---
300 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
301 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
302*/;
303 }
304 }
305
306 // Token: 0x170008E9 RID: 2281
307 // (get) Token: 0x060052AB RID: 21163 RVA: 0x002834A4 File Offset: 0x002816A4
309 {
310 get
311 {
312 /*
313An exception occurred when decompiling this method (060052AB)
314
315ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object ReLogic.Utilities.SlotVector`1/Enumerator::System.Collections.IEnumerator.get_Current()
316
317 ---> System.Exception: Basic block has to end with unconditional control flow.
318{
319 Block_0:
320 stloc:int32(var_0_06, ldfld:int32(Enumerator::_index, ldloc:Enumerator(this)))
321 stloc:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[](var_1_12, ldfld:valuetype ReLogic.Utilities.SlotVector`1/ItemPair<!T>[][exp:valuetype ReLogic.Utilities.SlotVector`1/ItemPair[]](SlotVector`1::_array, ldfld:class ReLogic.Utilities.SlotVector`1<!T>[exp:SlotVector`1](Enumerator::_slotVector, ldloc:Enumerator(this))))
322}
323
324 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
325 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
326 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
327 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
328 --- End of inner exception stack trace ---
329 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
330 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
331*/;
332 }
333 }
334
335 // Token: 0x060052AC RID: 21164 RVA: 0x002834C4 File Offset: 0x002816C4
336 public void Reset()
337 {
338 }
339
340 // Token: 0x060052AD RID: 21165 RVA: 0x002834D4 File Offset: 0x002816D4
341 public bool MoveNext()
342 {
343 /*
344An exception occurred when decompiling this method (060052AD)
345
346ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean ReLogic.Utilities.SlotVector`1/Enumerator::MoveNext()
347
348 ---> System.Exception: Basic block has to end with unconditional control flow.
349{
350 Block_0:
351 stloc:int32(var_0_06, ldfld:int32(Enumerator::_index, ldloc:Enumerator(this)))
352 stloc:uint32(var_1_12, ldfld:uint32(SlotVector`1::_usedSpaceLength, ldfld:class ReLogic.Utilities.SlotVector`1<!T>[exp:SlotVector`1](Enumerator::_slotVector, ldloc:Enumerator(this))))
353}
354
355 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
356 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
357 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
358 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
359 --- End of inner exception stack trace ---
360 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
361 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
362*/;
363 }
364
365 // Token: 0x060052AE RID: 21166 RVA: 0x002834F8 File Offset: 0x002816F8
366 public void Dispose()
367 {
368 }
369
370 // Token: 0x04008ADA RID: 35546
372
373 // Token: 0x04008ADB RID: 35547
374 private int _index;
375 }
376
377 // Token: 0x02000B0B RID: 2827
378 public struct ItemPair
379 {
380 // Token: 0x060052AF RID: 21167 RVA: 0x00283508 File Offset: 0x00281708
381 public ItemPair(T value, SlotId id)
382 {
384 this.Id = id;
385 }
386
387 // Token: 0x04008ADC RID: 35548
388 public readonly T Value;
389
390 // Token: 0x04008ADD RID: 35549
392 }
393 }
394}
class f__AnonymousType0<< Count > j__TPar
Enumerator(SlotVector< T > slotVector)
SlotVector< T >.ItemPair GetPair(int index)
readonly SlotVector< T >.ItemPair[] _array