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
IntSizedArray.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000426 RID: 1062
8 internal sealed class IntSizedArray : ICloneable
9 {
10 // Token: 0x0600212F RID: 8495 RVA: 0x0004B850 File Offset: 0x00049A50
12 {
13 }
14
15 // Token: 0x06002130 RID: 8496 RVA: 0x0004B864 File Offset: 0x00049A64
17 {
18 int[] array = sizedArray.objects;
19 int[] array2 = sizedArray.objects;
20 int[] array3 = sizedArray.negObjects;
21 int[] array4 = sizedArray.negObjects;
22 }
23
24 // Token: 0x06002131 RID: 8497 RVA: 0x0000207A File Offset: 0x0000027A
25 public object Clone()
26 {
27 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
28 }
29
30 // Token: 0x17000452 RID: 1106
31 internal int this[int index]
32 {
33 get
34 {
35 /*
36An exception occurred when decompiling this method (06002132)
37
38ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 System.Runtime.Serialization.Formatters.Binary.IntSizedArray::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[](IntSizedArray::objects, ldloc:IntSizedArray(this)))
44}
45
46 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
47 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
48 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
49 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
50 --- End of inner exception stack trace ---
51 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
52 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
53*/;
54 }
55 set
56 {
57 int[] array = this.objects;
59 int[] array2 = this.objects;
60 }
61 }
62
63 // Token: 0x06002134 RID: 8500 RVA: 0x0004B8E8 File Offset: 0x00049AE8
64 internal void IncreaseCapacity(int index)
65 {
66 int[] array = this.objects;
67 int num = Math.Max(0, index);
68 }
69
70 // Token: 0x040011B2 RID: 4530
71 internal int[] objects;
72
73 // Token: 0x040011B3 RID: 4531
74 internal int[] negObjects;
75 }
76}
class f__AnonymousType0<< Count > j__TPar
static byte Max(byte val1, byte val2)
Definition Math.cs:111