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
Tree.cs
Go to the documentation of this file.
1using System;
3
4namespace Ionic.Zlib
5{
6 // Token: 0x0200004C RID: 76
7 internal sealed class Tree
8 {
9 // Token: 0x0600039A RID: 922 RVA: 0x0000E284 File Offset: 0x0000C484
10 internal static int DistanceCode(int dist)
11 {
12 /*
13An exception occurred when decompiling this method (0600039A)
14
15ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Ionic.Zlib.Tree::DistanceCode(System.Int32)
16
17 ---> System.Exception: Basic block has to end with unconditional control flow.
18{
19 IL_0000:
20 brtrue(IL_0000, ldc.i4:bool(1))
21}
22
23 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
24 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
25 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
26 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
27 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
28 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
29 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
30 --- End of inner exception stack trace ---
31 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
32 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
33*/;
34 }
35
36 // Token: 0x0600039B RID: 923 RVA: 0x0000E294 File Offset: 0x0000C494
38 {
40 short[] array = this.dyn_tree;
41 int maxLength = staticTree.maxLength;
42 short[] treeCodes = staticTree.treeCodes;
43 int[] extraBits = staticTree.extraBits;
44 int extraBase = staticTree.extraBase;
45 if (staticTree == null)
46 {
47 }
48 short[] bl_count = s.bl_count;
49 }
50
51 // Token: 0x0600039C RID: 924 RVA: 0x0000E374 File Offset: 0x0000C574
53 {
55 short[] array = this.dyn_tree;
56 short[] treeCodes = staticTree.treeCodes;
57 int elems = staticTree.elems;
58 if (staticTree == null)
59 {
60 }
61 int heap_len = s.heap_len;
62 int[] heap = s.heap;
63 s.heap_len = heap_len;
64 sbyte[] depth = s.depth;
65 }
66
67 // Token: 0x0600039D RID: 925 RVA: 0x0000E4C8 File Offset: 0x0000C6C8
68 internal static void gen_codes(short[] tree, int max_code, short[] bl_count)
69 {
70 if (!true)
71 {
72 }
73 }
74
75 // Token: 0x0600039E RID: 926 RVA: 0x00002122 File Offset: 0x00000322
76 internal static int bi_reverse(int code, int len)
77 {
78 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
79 }
80
81 // Token: 0x0600039F RID: 927 RVA: 0x0000E4E0 File Offset: 0x0000C6E0
82 public Tree()
83 {
84 }
85
86 // Token: 0x060003A0 RID: 928 RVA: 0x0000E4F4 File Offset: 0x0000C6F4
87 // Note: this type is marked as 'beforefieldinit'.
88 static Tree()
89 {
90 if (!true)
91 {
92 }
93 }
94
95 // Token: 0x040002A7 RID: 679
96 internal const int Buf_size = 16;
97
98 // Token: 0x040002A8 RID: 680
99 private static readonly int HEAP_SIZE;
100
101 // Token: 0x040002A9 RID: 681
102 internal static readonly int[] ExtraLengthBits;
103
104 // Token: 0x040002AA RID: 682
105 internal static readonly int[] ExtraDistanceBits;
106
107 // Token: 0x040002AB RID: 683
108 internal static readonly int[] extra_blbits;
109
110 // Token: 0x040002AC RID: 684
111 internal static readonly sbyte[] bl_order;
112
113 // Token: 0x040002AD RID: 685
114 private static readonly sbyte[] _dist_code;
115
116 // Token: 0x040002AE RID: 686
117 internal static readonly sbyte[] LengthCode;
118
119 // Token: 0x040002AF RID: 687
120 internal static readonly int[] LengthBase;
121
122 // Token: 0x040002B0 RID: 688
123 internal static readonly int[] DistanceBase;
124
125 // Token: 0x040002B1 RID: 689
126 internal short[] dyn_tree;
127
128 // Token: 0x040002B2 RID: 690
129 internal int max_code;
130
131 // Token: 0x040002B3 RID: 691
133 }
134}
class f__AnonymousType0<< Count > j__TPar
static readonly int[] LengthBase
Definition Tree.cs:120
static readonly sbyte[] bl_order
Definition Tree.cs:111
static readonly sbyte[] _dist_code
Definition Tree.cs:114
void build_tree(DeflateManager s)
Definition Tree.cs:52
short[] dyn_tree
Definition Tree.cs:126
static readonly int[] ExtraLengthBits
Definition Tree.cs:102
void gen_bitlen(DeflateManager s)
Definition Tree.cs:37
static readonly sbyte[] LengthCode
Definition Tree.cs:117
static readonly int[] ExtraDistanceBits
Definition Tree.cs:105
static readonly int[] extra_blbits
Definition Tree.cs:108
static int DistanceCode(int dist)
Definition Tree.cs:10
static readonly int HEAP_SIZE
Definition Tree.cs:99
static readonly int[] DistanceBase
Definition Tree.cs:123
static int bi_reverse(int code, int len)
Definition Tree.cs:76
static void gen_codes(short[] tree, int max_code, short[] bl_count)
Definition Tree.cs:68
StaticTree staticTree
Definition Tree.cs:132
const int Buf_size
Definition Tree.cs:96
static Tree()
Definition Tree.cs:88