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
SizedArray.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000425 RID: 1061
8 internal sealed class SizedArray : ICloneable
9 {
10 // Token: 0x06002128 RID: 8488 RVA: 0x0004B73C File Offset: 0x0004993C
11 internal SizedArray()
12 {
13 }
14
15 // Token: 0x06002129 RID: 8489 RVA: 0x0004B750 File Offset: 0x00049950
16 internal SizedArray(int length)
17 {
18 }
19
20 // Token: 0x0600212A RID: 8490 RVA: 0x0004B764 File Offset: 0x00049964
22 {
23 object[] array = sizedArray.objects;
24 object[] array2 = sizedArray.objects;
25 object[] array3 = sizedArray.negObjects;
26 object[] array4 = sizedArray.negObjects;
27 }
28
29 // Token: 0x0600212B RID: 8491 RVA: 0x0000207A File Offset: 0x0000027A
30 public object Clone()
31 {
32 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
33 }
34
35 // Token: 0x17000451 RID: 1105
36 internal object this[int index]
37 {
38 get
39 {
40 /*
41An exception occurred when decompiling this method (0600212C)
42
43ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.Runtime.Serialization.Formatters.Binary.SizedArray::get_Item(System.Int32)
44
45 ---> System.Exception: Basic block has to end with unconditional control flow.
46{
47 Block_0:
48 stloc:object[](var_0_06, ldfld:object[](SizedArray::objects, ldloc:SizedArray(this)))
49 stloc:object[](var_1_0D, ldfld:object[](SizedArray::negObjects, ldloc:SizedArray(this)))
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 set
62 {
63 object[] array = this.objects;
65 object[] array2 = this.objects;
66 if (value != null && value == null)
67 {
68 return;
69 }
71 }
72 }
73
74 // Token: 0x0600212E RID: 8494 RVA: 0x0004B808 File Offset: 0x00049A08
75 internal void IncreaseCapacity(int index)
76 {
77 object[] array = this.objects;
78 int num = Math.Max(0, index);
79 }
80
81 // Token: 0x040011B0 RID: 4528
82 internal object[] objects;
83
84 // Token: 0x040011B1 RID: 4529
85 internal object[] negObjects;
86 }
87}
class f__AnonymousType0<< Count > j__TPar
static byte Max(byte val1, byte val2)
Definition Math.cs:111