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
MemoryExtensions.cs
Go to the documentation of this file.
1using System;
4
5namespace System
6{
7 // Token: 0x020000DA RID: 218
8 public static class MemoryExtensions
9 {
10 // Token: 0x06000823 RID: 2083 RVA: 0x00012F18 File Offset: 0x00011118
12 {
13 if (span != null)
14 {
15 int length = span._length;
16 int length2 = value._length;
17 int length3 = value._length;
18 bool flag;
19 return flag;
20 }
21 return true;
22 }
23
24 // Token: 0x06000824 RID: 2084 RVA: 0x00012F50 File Offset: 0x00011150
26 {
27 if (span != null)
28 {
29 }
30 return true;
31 }
32
33 // Token: 0x06000825 RID: 2085 RVA: 0x00012F64 File Offset: 0x00011164
34 internal static bool Contains(this ReadOnlySpan<char> source, char value)
35 {
36 }
37
38 // Token: 0x06000826 RID: 2086 RVA: 0x00012F78 File Offset: 0x00011178
40 {
41 /*
42An exception occurred when decompiling this method (06000826)
43
44ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.MemoryExtensions::ToUpperInvariant(System.ReadOnlySpan`1<System.Char>,System.Span`1<System.Char>)
45
46 ---> System.Exception: Basic block has to end with unconditional control flow.
47{
48 IL_0006:
49 stloc:CultureInfo(var_1_0D, callgetter:CultureInfo(CultureInfo::get_InvariantCulture))
50}
51
52 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
53 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
54 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
55 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
56 --- End of inner exception stack trace ---
57 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
58 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
59*/;
60 }
61
62 // Token: 0x06000827 RID: 2087 RVA: 0x00012F94 File Offset: 0x00011194
64 {
65 if (comparisonType != StringComparison.CurrentCulture)
66 {
68 }
69 int length = value._length;
70 int length2 = value._length;
71 bool flag;
72 return flag;
73 }
74
75 // Token: 0x06000828 RID: 2088 RVA: 0x00012FF0 File Offset: 0x000111F0
76 public static Span<T> AsSpan<T>(this T[] array, int start)
77 {
79 if (array != null)
80 {
82 return;
83 }
84 }
85
86 // Token: 0x06000829 RID: 2089 RVA: 0x00013014 File Offset: 0x00011214
87 public static ReadOnlySpan<char> AsSpan(this string text)
88 {
89 }
90
91 // Token: 0x0600082A RID: 2090 RVA: 0x00013024 File Offset: 0x00011224
92 public static ReadOnlySpan<char> AsSpan(this string text, int start)
93 {
94 if (text != null)
95 {
96 return;
97 }
98 }
99
100 // Token: 0x0600082B RID: 2091 RVA: 0x00013040 File Offset: 0x00011240
101 public static ReadOnlySpan<char> AsSpan(this string text, int start, int length)
102 {
103 int num = 1;
104 if (num != 0)
105 {
106 return;
107 }
108 }
109
110 // Token: 0x0600082C RID: 2092 RVA: 0x0001305C File Offset: 0x0001125C
116
117 // Token: 0x0600082D RID: 2093 RVA: 0x00013070 File Offset: 0x00011270
119 {
120 /*
121An exception occurred when decompiling this method (0600082D)
122
123ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ReadOnlySpan`1<System.Char> System.MemoryExtensions::TrimStart(System.ReadOnlySpan`1<System.Char>)
124
125 ---> System.Exception: Basic block has to end with unconditional control flow.
126{
127 IL_0007:
128 call:void(ThrowHelper::ThrowArgumentOutOfRangeException)
129}
130
131 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
132 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
133 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
134 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
135 --- End of inner exception stack trace ---
136 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
137 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
138*/;
139 }
140
141 // Token: 0x0600082E RID: 2094 RVA: 0x0001308C File Offset: 0x0001128C
143 {
144 /*
145An exception occurred when decompiling this method (0600082E)
146
147ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ReadOnlySpan`1<System.Char> System.MemoryExtensions::TrimEnd(System.ReadOnlySpan`1<System.Char>)
148
149 ---> System.Exception: Basic block has to end with unconditional control flow.
150{
151 IL_0003:
152 call:void(ThrowHelper::ThrowArgumentOutOfRangeException)
153}
154
155 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
156 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
157 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
158 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
159 --- End of inner exception stack trace ---
160 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
161 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
162*/;
163 }
164
165 // Token: 0x0600082F RID: 2095 RVA: 0x000130A4 File Offset: 0x000112A4
167 {
168 Type type;
169 Type type2;
170 bool flag = type == type2;
171 int num;
172 return num;
173 }
174
175 // Token: 0x06000830 RID: 2096 RVA: 0x000130CC File Offset: 0x000112CC
177 {
178 Type type;
179 Type type2;
180 bool flag = type == type2;
181 int num;
182 return num;
183 }
184
185 // Token: 0x06000831 RID: 2097 RVA: 0x000130EC File Offset: 0x000112EC
187 {
188 int length = span._length;
189 int length2 = other._length;
190 int length3 = other._length;
191 bool flag;
192 return flag;
193 }
194
195 // Token: 0x06000832 RID: 2098 RVA: 0x00013124 File Offset: 0x00011324
197 {
198 int length = span._length;
199 int length2 = value._length;
200 int length3 = value._length;
201 bool flag;
202 return flag;
203 }
204
205 // Token: 0x06000833 RID: 2099 RVA: 0x0001315C File Offset: 0x0001135C
207 {
208 int length = span._length;
209 int length2 = value._length;
210 int length3 = value._length;
211 bool flag;
212 return flag;
213 }
214
215 // Token: 0x06000834 RID: 2100 RVA: 0x00013194 File Offset: 0x00011394
216 public static Span<T> AsSpan<T>(this T[] array, int start, int length)
217 {
219 if (true)
220 {
222 return;
223 }
224 }
225
226 // Token: 0x06000835 RID: 2101 RVA: 0x000131B4 File Offset: 0x000113B4
227 public static void CopyTo<T>(this T[] source, Span<T> destination)
228 {
229 if (source != null)
230 {
231 return;
232 }
233 }
234
235 // Token: 0x06000836 RID: 2102 RVA: 0x000131C8 File Offset: 0x000113C8
236 private static bool IsTypeComparableAsBytes<T>([Out] ulong size)
237 {
238 Type type;
239 Type type2;
240 bool flag = type == type2;
241 Type type3;
242 Type type4;
243 bool flag2 = type3 == type4;
244 return true;
245 }
246 }
247}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo CurrentCulture
static int ToUpperInvariant(this ReadOnlySpan< char > source, Span< char > destination)
static bool SequenceEqual< T >(this ReadOnlySpan< T > span, ReadOnlySpan< T > other)
static Span< T > AsSpan< T >(this T[] array, int start)
static bool EndsWith< T >(this ReadOnlySpan< T > span, ReadOnlySpan< T > value)
static int IndexOf< T >(this ReadOnlySpan< T > span, T value)
static bool EndsWith(this ReadOnlySpan< char > span, ReadOnlySpan< char > value, StringComparison comparisonType)
static bool EqualsOrdinal(this ReadOnlySpan< char > span, ReadOnlySpan< char > value)
static bool EqualsOrdinalIgnoreCase(this ReadOnlySpan< char > span, ReadOnlySpan< char > value)
static ReadOnlySpan< char > AsSpan(this string text)
static ReadOnlySpan< char > TrimEnd(this ReadOnlySpan< char > span)
static bool StartsWith< T >(this ReadOnlySpan< T > span, ReadOnlySpan< T > value)
static void CopyTo< T >(this T[] source, Span< T > destination)
static int IndexOfAny< T >(this ReadOnlySpan< T > span, ReadOnlySpan< T > values)
static ReadOnlySpan< char > AsSpan(this string text, int start)
static ReadOnlySpan< char > AsSpan(this string text, int start, int length)
static ReadOnlySpan< char > TrimStart(this ReadOnlySpan< char > span)
static bool IsTypeComparableAsBytes< T >([Out] ulong size)
static bool Contains(this ReadOnlySpan< char > source, char value)
static ReadOnlySpan< char > Trim(this ReadOnlySpan< char > span)
static void ThrowArgumentOutOfRangeException()