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
ReadOnlySpan.cs
Go to the documentation of this file.
1using System;
6
7namespace System
8{
9 // Token: 0x020000F3 RID: 243
12 [Obsolete("Types with embedded references are not supported in this version of your compiler.", true)]
13 [DebuggerDisplay("{ToString(),raw}")]
14 public readonly ref struct ReadOnlySpan<T>
15 {
16 // Token: 0x060008FF RID: 2303 RVA: 0x00015DDC File Offset: 0x00013FDC
17 public ReadOnlySpan(T[] array)
18 {
19 if (array != null)
20 {
21 return;
22 }
23 }
24
25 // Token: 0x06000900 RID: 2304 RVA: 0x00015DF0 File Offset: 0x00013FF0
26 public ReadOnlySpan(T[] array, int start, int length)
27 {
28 if (array != null)
29 {
32 return;
33 }
35 }
36
37 // Token: 0x06000901 RID: 2305 RVA: 0x00015E18 File Offset: 0x00014018
38 [CLSCompliant(false)]
45
46 // Token: 0x06000902 RID: 2306 RVA: 0x00015E3C File Offset: 0x0001403C
47 internal ReadOnlySpan(T ptr, int length)
48 {
50 }
51
52 // Token: 0x1700009F RID: 159
53 public T this[int index]
54 {
55 [Intrinsic]
57 get
58 {
59 /*
60An exception occurred when decompiling this method (06000903)
61
62ICSharpCode.Decompiler.DecompilerException: Error decompiling T System.ReadOnlySpan`1::get_Item(System.Int32)
63
64 ---> System.Exception: Basic block has to end with unconditional control flow.
65{
66 Block_0:
67 stloc:int32(var_0_06, ldfld:int32(ReadOnlySpan`1::_length, ldloc:valuetype System.ReadOnlySpan`1&(this)))
68 call:void(ThrowHelper::ThrowIndexOutOfRangeException)
69}
70
71 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
72 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
73 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
74 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
75 --- End of inner exception stack trace ---
76 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
77 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
78*/;
79 }
80 }
81
82 // Token: 0x06000904 RID: 2308 RVA: 0x00015E6C File Offset: 0x0001406C
88
89 // Token: 0x06000905 RID: 2309 RVA: 0x00015E8C File Offset: 0x0001408C
91 {
92 int length = this._length;
93 return true;
94 }
95
96 // Token: 0x06000906 RID: 2310 RVA: 0x00015EA4 File Offset: 0x000140A4
97 public override string ToString()
98 {
99 Type type;
100 Type type2;
101 bool flag = type == type2;
102 int length = this._length;
103 string text;
104 return text;
105 }
106
107 // Token: 0x06000907 RID: 2311 RVA: 0x00015ED0 File Offset: 0x000140D0
109 {
110 int length = this._length;
112 int length2 = this._length;
113 return ref this;
114 }
115
116 // Token: 0x06000908 RID: 2312 RVA: 0x00015EF4 File Offset: 0x000140F4
118 {
119 /*
120An exception occurred when decompiling this method (06000908)
121
122ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ReadOnlySpan`1<T> System.ReadOnlySpan`1::Slice(System.Int32,System.Int32)
123
124 ---> System.Exception: Basic block has to end with unconditional control flow.
125{
126 Block_0:
127 stloc:int32(var_0_06, ldfld:int32(ReadOnlySpan`1::_length, ldloc:valuetype System.ReadOnlySpan`1&(this)))
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: 0x06000909 RID: 2313 RVA: 0x00015F10 File Offset: 0x00014110
142 public T[] ToArray()
143 {
144 /*
145An exception occurred when decompiling this method (06000909)
146
147ICSharpCode.Decompiler.DecompilerException: Error decompiling T[] System.ReadOnlySpan`1::ToArray()
148
149 ---> System.Exception: Basic block has to end with unconditional control flow.
150{
151 IL_0000:
152 brtrue(IL_0000, logicnot:bool(ldfld:int32[exp:bool](ReadOnlySpan`1::_length, ldloc:valuetype System.ReadOnlySpan`1&(this))))
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
157 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
158 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
159 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
160 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
161 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
162 --- End of inner exception stack trace ---
163 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
164 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
165*/;
166 }
167
168 // Token: 0x170000A0 RID: 160
169 // (get) Token: 0x0600090A RID: 2314 RVA: 0x00015F24 File Offset: 0x00014124
170 public int Length
171 {
173 get
174 {
175 return this._length;
176 }
177 }
178
179 // Token: 0x170000A1 RID: 161
180 // (get) Token: 0x0600090B RID: 2315 RVA: 0x00015F38 File Offset: 0x00014138
181 public bool IsEmpty
182 {
184 get
185 {
186 /*
187An exception occurred when decompiling this method (0600090B)
188
189ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean System.ReadOnlySpan`1::get_IsEmpty()
190
191 ---> System.Exception: Basic block has to end with unconditional control flow.
192{
193 Block_0:
194 stloc:int32(var_0_06, ldfld:int32(ReadOnlySpan`1::_length, ldloc:valuetype System.ReadOnlySpan`1&(this)))
195}
196
197 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
198 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
199 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
200 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
201 --- End of inner exception stack trace ---
202 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
203 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
204*/;
205 }
206 }
207
208 // Token: 0x0600090C RID: 2316 RVA: 0x0000207A File Offset: 0x0000027A
209 [Obsolete("Equals() on ReadOnlySpan will always throw an exception. Use == instead.")]
210 public override bool Equals(object obj)
211 {
212 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
213 }
214
215 // Token: 0x0600090D RID: 2317 RVA: 0x0000207A File Offset: 0x0000027A
216 [Obsolete("GetHashCode() on ReadOnlySpan will always throw an exception.")]
217 public override int GetHashCode()
218 {
219 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
220 }
221
222 // Token: 0x0600090E RID: 2318 RVA: 0x00015F4C File Offset: 0x0001414C
223 public static implicit operator ReadOnlySpan<T>(T[] array)
224 {
225 }
226
227 // Token: 0x170000A2 RID: 162
228 // (get) Token: 0x0600090F RID: 2319 RVA: 0x00015F5C File Offset: 0x0001415C
229 public static ReadOnlySpan<T> Empty
230 {
231 get
232 {
233 }
234 }
235
236 // Token: 0x04000391 RID: 913
238
239 // Token: 0x04000392 RID: 914
240 private readonly int _length;
241 }
242}
class f__AnonymousType0<< Count > j__TPar
static void ThrowArgumentOutOfRangeException()
static void ThrowArgumentException_DestinationTooShort()
bool TryCopyTo(Span< T > destination)
unsafe ReadOnlySpan(void *pointer, int length)
void CopyTo(Span< T > destination)
ReadOnlySpan(T[] array)
ReadOnlySpan< T > Slice(int start, int length)
override bool Equals(object obj)
ReadOnlySpan(T[] array, int start, int length)
readonly int _length
override int GetHashCode()
readonly ByReference< T > _pointer
ReadOnlySpan< T > Slice(int start)
override string ToString()
ReadOnlySpan(T ptr, int length)