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
SpanHelpers.cs
Go to the documentation of this file.
1using System;
5
6namespace System
7{
8 // Token: 0x020000FB RID: 251
9 internal static class SpanHelpers
10 {
11 // Token: 0x06000968 RID: 2408 RVA: 0x00016770 File Offset: 0x00014970
12 public static int IndexOfAny(byte searchSpace, int searchSpaceLength, byte value, int valueLength)
13 {
14 int num;
15 while (value != 0)
16 {
17 if (num != 0)
18 {
19 return num;
20 }
21 }
22 return num;
23 }
24
25 // Token: 0x06000969 RID: 2409 RVA: 0x00016788 File Offset: 0x00014988
26 public static int IndexOf(byte searchSpace, byte value, int length)
27 {
28 /*
29An exception occurred when decompiling this method (06000969)
30
31ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.SpanHelpers::IndexOf(System.Byte,System.Byte,System.Int32)
32
33 ---> System.Exception: Basic block has to end with unconditional control flow.
34{
35 Block_0:
36 stloc:native int(var_20_C3, call:native int(native int::op_Subtraction, ldloc:native int(var_8_48), ldc.i4:int32(1)))
37 stloc:void*(var_21_CC, call:void*(native int::op_Explicit, ldloc:native int(var_19_AD)))
38}
39
40 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
41 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
42 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
43 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
44 --- End of inner exception stack trace ---
45 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
46 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
47*/;
48 }
49
50 // Token: 0x0600096A RID: 2410 RVA: 0x00016864 File Offset: 0x00014A64
51 public unsafe static bool SequenceEqual(byte first, byte second, ulong length)
52 {
53 IntPtr intPtr = (IntPtr)0;
55 void* ptr = (void*)intPtr2;
57 void* ptr2 = (void*)intPtr3;
58 void* ptr3 = (void*)intPtr;
59 if (!true)
60 {
61 }
62 IntPtr intPtr4 = intPtr + 8;
63 void* ptr4 = (void*)intPtr3;
64 void* ptr5 = (void*)intPtr4;
66 void* ptr6 = (void*)intPtr3;
67 void* ptr7 = (void*)intPtr5;
68 if (!true)
69 {
70 }
71 bool flag;
72 return flag;
73 }
74
75 // Token: 0x0600096B RID: 2411 RVA: 0x000168D8 File Offset: 0x00014AD8
76 public unsafe static int SequenceCompareTo(char first, int firstLength, char second, int secondLength)
77 {
78 IntPtr intPtr = (IntPtr)0;
80 void* ptr = (void*)intPtr;
82 void* ptr2 = (void*)intPtr;
83 IntPtr intPtr3 = intPtr - 0;
84 if (!false)
85 {
86 }
87 return 42247576;
88 }
89
90 // Token: 0x0600096C RID: 2412 RVA: 0x000169D4 File Offset: 0x00014BD4
91 public static int IndexOf(char searchSpace, char value, int length)
92 {
93 /*
94An exception occurred when decompiling this method (0600096C)
95
96ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.SpanHelpers::IndexOf(System.Char,System.Char,System.Int32)
97
98 ---> System.Exception: Basic block has to end with unconditional control flow.
99{
100 IL_0017:
101 stloc:bool(var_3_1E, callgetter:bool(Vector::get_IsHardwareAccelerated))
102}
103
104 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
105 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
106 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
107 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
108 --- End of inner exception stack trace ---
109 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
110 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
111*/;
112 }
113
114 // Token: 0x0600096D RID: 2413 RVA: 0x00016A08 File Offset: 0x00014C08
115 public static int LastIndexOf(char searchSpace, char value, int length)
116 {
117 /*
118An exception occurred when decompiling this method (0600096D)
119
120ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.SpanHelpers::LastIndexOf(System.Char,System.Char,System.Int32)
121
122 ---> System.Exception: Basic block has to end with unconditional control flow.
123{
124 IL_0010:
125 stloc:bool(var_4_17, callgetter:bool(Vector::get_IsHardwareAccelerated))
126}
127
128 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
129 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
130 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
131 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
132 --- End of inner exception stack trace ---
133 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
134 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
135*/;
136 }
137
138 // Token: 0x0600096E RID: 2414 RVA: 0x00016A30 File Offset: 0x00014C30
140 {
141 int num = 1;
142 if (num == 0)
143 {
144 }
145 if (num == 0)
146 {
147 }
148 if (num == 0)
149 {
150 return;
151 }
152 }
153
154 // Token: 0x0600096F RID: 2415 RVA: 0x0000207A File Offset: 0x0000027A
155 private static int LocateFirstFoundChar(ulong match)
156 {
157 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
158 }
159
160 // Token: 0x06000970 RID: 2416 RVA: 0x00016A4C File Offset: 0x00014C4C
162 {
163 /*
164An exception occurred when decompiling this method (06000970)
165
166ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.SpanHelpers::LocateLastFoundChar(System.Numerics.Vector`1<System.UInt16>)
167
168 ---> System.Exception: Basic block has to end with unconditional control flow.
169{
170 IL_0000:
171 brtrue(IL_0000, ldc.i4:bool(1))
172}
173
174 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
175 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
176 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
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 1846
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: 0x06000971 RID: 2417 RVA: 0x00016A5C File Offset: 0x00014C5C
188 private static int LocateLastFoundChar(ulong match)
189 {
190 return 3;
191 }
192
193 // Token: 0x06000972 RID: 2418 RVA: 0x00016A6C File Offset: 0x00014C6C
194 public static int IndexOf<T>(T searchSpace, T value, int length) where T : IEquatable<T>
195 {
196 /*
197An exception occurred when decompiling this method (06000972)
198
199ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.SpanHelpers::IndexOf<T>(T,T,System.Int32)
200
201 ---> System.Exception: Basic block has to end with unconditional control flow.
202{
203 Block_0:
204 stloc:int64(var_0_01, ldc.i4:int64(0))
205 stloc:native int(var_2_0A, call:native int(native int::op_Explicit, ldloc:int64[exp:int32](var_0_01)))
206 stloc:int32(var_4_0C, ldc.i4:int32(1))
207 stloc:native int(var_5_16, call:native int(native int::op_Addition, ldloc:native int(var_2_0A), ldloc:int32(var_4_0C)))
208 stloc:int32(var_7_19, ldc.i4:int32(1))
209 stloc:native int(var_8_24, call:native int(native int::op_Addition, ldloc:native int(var_5_16), ldloc:int32(var_7_19)))
210 stloc:int32(var_10_27, ldc.i4:int32(2))
211 stloc:native int(var_11_32, call:native int(native int::op_Addition, ldloc:native int(var_5_16), ldloc:int32(var_10_27)))
212 stloc:int32(var_13_35, ldc.i4:int32(3))
213 stloc:native int(var_14_40, call:native int(native int::op_Addition, ldloc:native int(var_5_16), ldloc:int32(var_13_35)))
214 stloc:int32(var_16_43, ldc.i4:int32(4))
215 stloc:native int(var_17_4E, call:native int(native int::op_Addition, ldloc:native int(var_5_16), ldloc:int32(var_16_43)))
216 stloc:int32(var_19_51, ldc.i4:int32(5))
217 stloc:native int(var_20_5C, call:native int(native int::op_Addition, ldloc:native int(var_5_16), ldloc:int32(var_19_51)))
218 stloc:int32(var_22_5F, ldc.i4:int32(6))
219 stloc:native int(var_23_6A, call:native int(native int::op_Addition, ldloc:native int(var_5_16), ldloc:int32(var_22_5F)))
220 stloc:int32(var_25_6D, ldc.i4:int32(7))
221 stloc:native int(var_26_78, call:native int(native int::op_Addition, ldloc:native int(var_5_16), ldloc:int32(var_25_6D)))
222 stloc:int32(var_28_7B, ldc.i4:int32(8))
223 stloc:native int(var_29_86, call:native int(native int::op_Addition, ldloc:native int(var_5_16), ldloc:int32(var_28_7B)))
224 stloc:int32(var_31_89, ldc.i4:int32(1))
225 stloc:native int(var_32_94, call:native int(native int::op_Addition, ldloc:native int(var_29_86), ldloc:int32(var_31_89)))
226 stloc:int32(var_34_97, ldc.i4:int32(2))
227 stloc:native int(var_35_A2, call:native int(native int::op_Addition, ldloc:native int(var_29_86), ldloc:int32(var_34_97)))
228 stloc:int32(var_37_A5, ldc.i4:int32(3))
229 stloc:native int(var_38_B0, call:native int(native int::op_Addition, ldloc:native int(var_29_86), ldloc:int32(var_37_A5)))
230 stloc:int32(var_40_B3, ldc.i4:int32(3))
231 stloc:void*(var_41_C3, call:void*(native int::op_Explicit, call:native int(native int::op_Addition, ldloc:native int(var_29_86), ldloc:int32(var_40_B3))))
232 stloc:int32(var_42_C6, ldc.i4:int32(4))
233 stloc:native int(var_43_D1, call:native int(native int::op_Addition, ldloc:native int(var_29_86), ldloc:int32(var_42_C6)))
234}
235
236 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
237 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
238 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
239 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
240 --- End of inner exception stack trace ---
241 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
242 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
243*/;
244 }
245
246 // Token: 0x06000973 RID: 2419 RVA: 0x00016B4C File Offset: 0x00014D4C
247 public static int IndexOfAny<T>(T searchSpace, int searchSpaceLength, T value, int valueLength) where T : IEquatable<T>
248 {
249 if (value != null)
250 {
251 return;
252 }
253 }
254
255 // Token: 0x06000974 RID: 2420 RVA: 0x00016B60 File Offset: 0x00014D60
256 public static bool SequenceEqual<T>(T first, T second, int length) where T : IEquatable<T>
257 {
258 /*
259An exception occurred when decompiling this method (06000974)
260
261ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.SpanHelpers::SequenceEqual<T>(T,T,System.Int32)
262
263 ---> System.Exception: Basic block has to end with unconditional control flow.
264{
265 Block_0:
266 stloc:int64(var_0_01, ldc.i4:int64(0))
267 stloc:native int(var_2_0A, call:native int(native int::op_Explicit, ldloc:int64[exp:int32](var_0_01)))
268 stloc:int32(var_5_0E, ldc.i4:int32(1))
269 stloc:native int(var_6_18, call:native int(native int::op_Addition, ldloc:native int(var_2_0A), ldloc:int32(var_5_0E)))
270 stloc:int32(var_8_1B, ldc.i4:int32(1))
271 stloc:native int(var_9_26, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_8_1B)))
272 stloc:int32(var_10_29, ldc.i4:int32(1))
273 stloc:native int(var_11_34, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_10_29)))
274 stloc:int32(var_13_37, ldc.i4:int32(2))
275 stloc:native int(var_14_42, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_13_37)))
276 stloc:int32(var_15_45, ldc.i4:int32(2))
277 stloc:native int(var_16_50, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_15_45)))
278 stloc:int32(var_18_53, ldc.i4:int32(3))
279 stloc:native int(var_19_5E, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_18_53)))
280 stloc:int32(var_20_61, ldc.i4:int32(3))
281 stloc:native int(var_21_6C, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_20_61)))
282 stloc:int32(var_23_6F, ldc.i4:int32(4))
283 stloc:native int(var_24_7A, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_23_6F)))
284 stloc:int32(var_25_7D, ldc.i4:int32(4))
285 stloc:native int(var_26_88, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_25_7D)))
286 stloc:int32(var_28_8B, ldc.i4:int32(5))
287 stloc:native int(var_29_96, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_28_8B)))
288 stloc:int32(var_30_99, ldc.i4:int32(5))
289 stloc:native int(var_31_A4, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_30_99)))
290 stloc:int32(var_33_A7, ldc.i4:int32(6))
291 stloc:native int(var_34_B2, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_33_A7)))
292 stloc:int32(var_35_B5, ldc.i4:int32(6))
293 stloc:native int(var_36_C0, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_35_B5)))
294 stloc:int32(var_38_C3, ldc.i4:int32(7))
295 stloc:native int(var_39_CE, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_38_C3)))
296 stloc:int32(var_40_D1, ldc.i4:int32(7))
297 stloc:native int(var_41_DC, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_40_D1)))
298 stloc:int32(var_43_DF, ldc.i4:int32(8))
299 stloc:native int(var_44_EA, call:native int(native int::op_Addition, ldloc:native int(var_6_18), ldloc:int32(var_43_DF)))
300 stloc:int32(var_47_F0, ldc.i4:int32(1))
301 stloc:native int(var_48_FB, call:native int(native int::op_Addition, ldloc:native int(var_44_EA), ldloc:int32(var_47_F0)))
302 stloc:int32(var_49_FE, ldc.i4:int32(1))
303 stloc:native int(var_50_109, call:native int(native int::op_Addition, ldloc:native int(var_44_EA), ldloc:int32(var_49_FE)))
304 stloc:int32(var_52_10C, ldc.i4:int32(2))
305 stloc:native int(var_53_117, call:native int(native int::op_Addition, ldloc:native int(var_44_EA), ldloc:int32(var_52_10C)))
306 stloc:int32(var_54_11A, ldc.i4:int32(2))
307 stloc:native int(var_55_125, call:native int(native int::op_Addition, ldloc:native int(var_44_EA), ldloc:int32(var_54_11A)))
308 stloc:int32(var_57_128, ldc.i4:int32(3))
309 stloc:native int(var_58_133, call:native int(native int::op_Addition, ldloc:native int(var_44_EA), ldloc:int32(var_57_128)))
310 stloc:int32(var_59_136, ldc.i4:int32(3))
311 stloc:native int(var_60_141, call:native int(native int::op_Addition, ldloc:native int(var_44_EA), ldloc:int32(var_59_136)))
312 stloc:int32(var_62_144, ldc.i4:int32(4))
313 stloc:native int(var_63_14F, call:native int(native int::op_Addition, ldloc:native int(var_44_EA), ldloc:int32(var_62_144)))
314}
315
316 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
317 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
318 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
319 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
320 --- End of inner exception stack trace ---
321 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
322 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
323*/;
324 }
325
326 // Token: 0x06000975 RID: 2421 RVA: 0x00016CC0 File Offset: 0x00014EC0
328 {
329 if (!true)
330 {
331 }
332 if (!true)
333 {
334 }
335 int length = span._length;
336 int length2 = value._length;
337 int length3 = value._length;
338 bool flag;
339 return flag;
340 }
341
342 // Token: 0x06000976 RID: 2422 RVA: 0x00016D0C File Offset: 0x00014F0C
344 {
345 if (!true)
346 {
347 }
348 if (!true)
349 {
350 }
351 if (true)
352 {
353 bool flag;
354 return flag;
355 }
356 if (span != null)
357 {
358 bool flag2;
359 return flag2;
360 }
361 }
362
363 // Token: 0x06000977 RID: 2423 RVA: 0x00016D2C File Offset: 0x00014F2C
365 {
366 /*
367An exception occurred when decompiling this method (06000977)
368
369ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.SpanHelpers::EndsWithOrdinalIgnoreCaseHelper(System.ReadOnlySpan`1<System.Char>,System.ReadOnlySpan`1<System.Char>)
370
371 ---> System.Exception: Basic block has to end with unconditional control flow.
372{
373 Block_0:
374 stloc:int32(var_1_09, call:int32(CompareInfo::CompareOrdinalIgnoreCase, ldloc:valuetype System.ReadOnlySpan`1<char>[exp:ReadOnlySpan`1](span), ldloc:valuetype System.ReadOnlySpan`1<char>[exp:ReadOnlySpan`1](span)))
375 call:void(ThrowHelper::ThrowArgumentOutOfRangeException)
376}
377
378 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
379 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
380 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
381 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
382 --- End of inner exception stack trace ---
383 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
384 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
385*/;
386 }
387
388 // Token: 0x06000978 RID: 2424 RVA: 0x00016D48 File Offset: 0x00014F48
389 public static void ClearWithoutReferences(byte b, ulong byteLength)
390 {
391 if (byteLength != 0UL)
392 {
393 return;
394 }
395 }
396
397 // Token: 0x06000979 RID: 2425 RVA: 0x00016D7C File Offset: 0x00014F7C
413 }
414}
class f__AnonymousType0<< Count > j__TPar
static bool IsHardwareAccelerated
Definition Vector.2.cs:20
static int LocateLastFoundChar(Vector< ushort > match)
static bool SequenceEqual< T >(T first, T second, int length)
static void ClearWithoutReferences(byte b, ulong byteLength)
static bool EndsWithCultureHelper(ReadOnlySpan< char > span, ReadOnlySpan< char > value, CompareInfo compareInfo)
static int IndexOfAny< T >(T searchSpace, int searchSpaceLength, T value, int valueLength)
static int IndexOf(char searchSpace, char value, int length)
static int LocateFirstFoundChar(Vector< ushort > match)
static bool EndsWithCultureIgnoreCaseHelper(ReadOnlySpan< char > span, ReadOnlySpan< char > value, CompareInfo compareInfo)
static unsafe bool SequenceEqual(byte first, byte second, ulong length)
static int LocateLastFoundChar(ulong match)
static bool EndsWithOrdinalIgnoreCaseHelper(ReadOnlySpan< char > span, ReadOnlySpan< char > value)
static unsafe int SequenceCompareTo(char first, int firstLength, char second, int secondLength)
static int IndexOf< T >(T searchSpace, T value, int length)
static int LastIndexOf(char searchSpace, char value, int length)
static int IndexOf(byte searchSpace, byte value, int length)
static int IndexOfAny(byte searchSpace, int searchSpaceLength, byte value, int valueLength)
static int LocateFirstFoundChar(ulong match)
static void ClearWithReferences(IntPtr ip, ulong pointerSizeLength)