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
IntHashSet.cs
Go to the documentation of this file.
1using System;
4
5// Token: 0x020002BC RID: 700
6public class IntHashSet
7{
8 // Token: 0x17000192 RID: 402
9 // (get) Token: 0x06001034 RID: 4148 RVA: 0x0004FC98 File Offset: 0x0004DE98
10 // (set) Token: 0x06001035 RID: 4149 RVA: 0x0004FCAC File Offset: 0x0004DEAC
12 {
13 get
14 {
15 return this.ValuesInSet;
16 }
17 set
18 {
20 }
21 }
22
23 // Token: 0x06001036 RID: 4150 RVA: 0x000021DB File Offset: 0x000003DB
24 public void Add(int valueToAdd)
25 {
26 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
27 }
28
29 // Token: 0x06001037 RID: 4151 RVA: 0x0004FCC0 File Offset: 0x0004DEC0
30 public bool Contains(int valueToCheck)
31 {
32 /*
33An exception occurred when decompiling this method (06001037)
34
35ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean IntHashSet::Contains(System.Int32)
36
37 ---> System.Exception: Basic block has to end with unconditional control flow.
38{
39 Block_0:
40 stloc:int32(var_0_0B, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<int32>[exp:List`1](IntHashSet::ValuesInSet, ldloc:IntHashSet(this))))
41 stloc:class [mscorlib]System.Collections.Generic.List`1<int32>(var_2_14, ldfld:class [mscorlib]System.Collections.Generic.List`1<int32>(IntHashSet::ValuesInSet, ldloc:IntHashSet(this)))
42}
43
44 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
45 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
46 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
47 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
48 --- End of inner exception stack trace ---
49 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
50 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
51*/;
52 }
53
54 // Token: 0x06001038 RID: 4152 RVA: 0x0004FCE8 File Offset: 0x0004DEE8
55 public bool ContainsSet(int[] values)
56 {
57 /*
58An exception occurred when decompiling this method (06001038)
59
60ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean IntHashSet::ContainsSet(System.Int32[])
61
62 ---> System.Exception: Basic block has to end with unconditional control flow.
63{
64 Block_0:
65 stloc:bool(var_1_09, call:bool(IntHashSet::Contains, ldloc:IntHashSet(this), ldloc:int32[][exp:int32](values)))
66}
67
68 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
69 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
70 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
71 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
72 --- End of inner exception stack trace ---
73 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
74 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
75*/;
76 }
77
78 // Token: 0x17000193 RID: 403
79 // (get) Token: 0x06001039 RID: 4153 RVA: 0x0004FD04 File Offset: 0x0004DF04
80 public int Count
81 {
82 get
83 {
84 return this.ValuesInSet._size;
85 }
86 }
87
88 // Token: 0x0600103A RID: 4154 RVA: 0x0004FD1C File Offset: 0x0004DF1C
89 public IntHashSet()
90 {
91 }
92
93 // Token: 0x04001F1E RID: 7966
95}
class f__AnonymousType0<< Count > j__TPar
List< int > Values
Definition IntHashSet.cs:12
List< int > ValuesInSet
Definition IntHashSet.cs:94
bool ContainsSet(int[] values)
Definition IntHashSet.cs:55
void Add(int valueToAdd)
Definition IntHashSet.cs:24
bool Contains(int valueToCheck)
Definition IntHashSet.cs:30