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
BitSet.cs
Go to the documentation of this file.
1using System;
3
4namespace System.Xml.Schema
5{
6 // Token: 0x020000C3 RID: 195
7 internal sealed class BitSet
8 {
9 // Token: 0x06000801 RID: 2049 RVA: 0x00019C48 File Offset: 0x00017E48
10 private BitSet()
11 {
12 }
13
14 // Token: 0x06000802 RID: 2050 RVA: 0x00019C5C File Offset: 0x00017E5C
15 public BitSet(int count)
16 {
18 }
19
20 // Token: 0x170001F1 RID: 497
21 // (get) Token: 0x06000803 RID: 2051 RVA: 0x00019C78 File Offset: 0x00017E78
22 public int Count
23 {
24 get
25 {
26 return this.count;
27 }
28 }
29
30 // Token: 0x170001F2 RID: 498
31 public bool this[int index]
32 {
33 get
34 {
35 /*
36An exception occurred when decompiling this method (06000804)
37
38ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Xml.Schema.BitSet::get_Item(System.Int32)
39
40 ---> System.Exception: Basic block has to end with unconditional control flow.
41{
42 Block_0:
43 stloc:int32(var_0_06, ldfld:int32(BitSet::count, ldloc:BitSet(this)))
44 stloc:uint32[](var_1_0D, ldfld:uint32[](BitSet::bits, ldloc:BitSet(this)))
45}
46
47 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
48 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
49 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
50 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
51 --- End of inner exception stack trace ---
52 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
53 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
54*/;
55 }
56 }
57
58 // Token: 0x06000805 RID: 2053 RVA: 0x00019CA8 File Offset: 0x00017EA8
59 public void Clear()
60 {
61 uint[] array = this.bits;
62 }
63
64 // Token: 0x06000806 RID: 2054 RVA: 0x00019CBC File Offset: 0x00017EBC
65 public void Set(int index)
66 {
67 this.EnsureLength(index);
68 uint[] array = this.bits;
69 }
70
71 // Token: 0x06000807 RID: 2055 RVA: 0x00019CD8 File Offset: 0x00017ED8
72 public bool Get(int index)
73 {
74 /*
75An exception occurred when decompiling this method (06000807)
76
77ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.Xml.Schema.BitSet::Get(System.Int32)
78
79 ---> System.Exception: Basic block has to end with unconditional control flow.
80{
81 Block_0:
82 stloc:int32(var_0_06, ldfld:int32(BitSet::count, ldloc:BitSet(this)))
83 stloc:uint32[](var_1_0D, ldfld:uint32[](BitSet::bits, ldloc:BitSet(this)))
84}
85
86 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
87 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
88 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
89 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
90 --- End of inner exception stack trace ---
91 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
92 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
93*/;
94 }
95
96 // Token: 0x06000808 RID: 2056 RVA: 0x00019CF4 File Offset: 0x00017EF4
97 public int NextSet(int startFrom)
98 {
99 /*
100An exception occurred when decompiling this method (06000808)
101
102ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Xml.Schema.BitSet::NextSet(System.Int32)
103
104 ---> System.Exception: Basic block has to end with unconditional control flow.
105{
106 Block_0:
107 stloc:int32(var_0_06, ldfld:int32(BitSet::count, ldloc:BitSet(this)))
108 stloc:uint32[](var_1_0D, ldfld:uint32[](BitSet::bits, ldloc:BitSet(this)))
109}
110
111 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
112 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
113 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
114 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
115 --- End of inner exception stack trace ---
116 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
117 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
118*/;
119 }
120
121 // Token: 0x06000809 RID: 2057 RVA: 0x00019D10 File Offset: 0x00017F10
122 public void And(BitSet other)
123 {
124 uint[] array = this.bits;
125 uint[] array2 = other.bits;
126 }
127
128 // Token: 0x0600080A RID: 2058 RVA: 0x00019D2C File Offset: 0x00017F2C
129 public void Or(BitSet other)
130 {
131 uint[] array = other.bits;
132 uint[] array2 = this.bits;
133 uint[] array3 = other.bits;
134 }
135
136 // Token: 0x0600080B RID: 2059 RVA: 0x00003FFD File Offset: 0x000021FD
137 public override int GetHashCode()
138 {
139 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
140 }
141
142 // Token: 0x0600080C RID: 2060 RVA: 0x00019D50 File Offset: 0x00017F50
143 public override bool Equals(object obj)
144 {
145 if (obj != null)
146 {
147 uint[] array = this.bits;
148 }
149 throw new InvalidCastException();
150 }
151
152 // Token: 0x0600080D RID: 2061 RVA: 0x00019D70 File Offset: 0x00017F70
153 public BitSet Clone()
154 {
155 object obj;
156 do
157 {
158 int num = this.count;
159 uint[] array = this.bits;
160 }
161 while (obj == null || (obj != null && obj != null));
162 throw new InvalidCastException();
163 }
164
165 // Token: 0x0600080E RID: 2062 RVA: 0x00019D9C File Offset: 0x00017F9C
167 {
168 int num = 1;
169 uint[] array = this.bits;
170 uint[] array2 = other.bits;
171 if (num == 0)
172 {
173 }
174 uint[] array3 = this.bits;
175 uint[] array4 = other.bits;
176 while (array3 == null)
177 {
178 }
179 }
180
181 // Token: 0x0600080F RID: 2063 RVA: 0x00003FFD File Offset: 0x000021FD
182 private int Subscript(int bitIndex)
183 {
184 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
185 }
186
187 // Token: 0x06000810 RID: 2064 RVA: 0x00019DD8 File Offset: 0x00017FD8
189 {
190 uint[] array = this.bits;
191 uint[] array2 = this.bits;
192 }
193
194 // Token: 0x04000416 RID: 1046
195 private int count;
196
197 // Token: 0x04000417 RID: 1047
198 private uint[] bits;
199 }
200}
class f__AnonymousType0<< Count > j__TPar
int NextSet(int startFrom)
Definition BitSet.cs:97
void Or(BitSet other)
Definition BitSet.cs:129
bool Intersects(BitSet other)
Definition BitSet.cs:166
void EnsureLength(int nRequiredLength)
Definition BitSet.cs:188
int Subscript(int bitIndex)
Definition BitSet.cs:182
bool Get(int index)
Definition BitSet.cs:72
override int GetHashCode()
Definition BitSet.cs:137
void Set(int index)
Definition BitSet.cs:65
void And(BitSet other)
Definition BitSet.cs:122
override bool Equals(object obj)
Definition BitSet.cs:143