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
InfTree.cs
Go to the documentation of this file.
1using System;
2
3namespace Ionic.Zlib
4{
5 // Token: 0x0200004B RID: 75
6 internal sealed class InfTree
7 {
8 // Token: 0x06000393 RID: 915 RVA: 0x0000E030 File Offset: 0x0000C230
9 private int huft_build(int[] b, int bindex, int n, int s, int[] d, int[] e, int[] t, int[] m, int[] hp, int[] hn, int[] v)
10 {
11 int[] array = this.c;
12 int[] array2 = this.x;
13 int[] array3 = this.u;
14 if (s != 0)
15 {
16 if (array != null)
17 {
18 int[] array4 = this.c;
19 int[] array5 = this.u;
20 int[] array6 = this.x;
21 int[] array7 = this.r;
22 int num = 3;
23 long num2 = 0L;
24 Array.Copy(array7, (int)num2, t, n, num);
25 return array7;
26 }
27 int[] array8 = this.c;
28 int[] array9;
29 return array9;
30 }
31 }
32
33 // Token: 0x06000394 RID: 916 RVA: 0x0000E12C File Offset: 0x0000C32C
34 internal int inflate_trees_bits(int[] c, int[] bb, int[] tb, int[] hp, ZlibCodec z)
35 {
36 this.initWorkArea(19);
37 int[] array = this.hn;
38 int[] array2 = this.v;
39 int num;
40 return num;
41 }
42
43 // Token: 0x06000395 RID: 917 RVA: 0x0000E168 File Offset: 0x0000C368
44 internal int inflate_trees_dynamic(int nl, int nd, int[] c, int[] bl, int[] bd, int[] tl, int[] td, int[] hp, ZlibCodec z)
45 {
46 int num = 288;
47 this.initWorkArea(num);
48 int[] array = this.hn;
49 int[] array2 = this.hn;
50 int[] array3 = this.v;
51 int num2;
52 int num4;
53 if (num2 == 0 && array2 != null)
54 {
55 int num3 = 288;
56 this.initWorkArea(num3);
57 if (array2 == null)
58 {
59 }
60 int[] array4 = this.hn;
61 int[] array5 = this.v;
62 return num4;
63 }
64 return num4;
65 }
66
67 // Token: 0x06000396 RID: 918 RVA: 0x0000E1D8 File Offset: 0x0000C3D8
68 internal static int inflate_trees_fixed(int[] bl, int[] bd, int[][] tl, int[][] td, ZlibCodec z)
69 {
70 if (9 == 0)
71 {
72 }
73 if ((9 == 0 || 9 != 0) && (bd == null || bd != null))
74 {
75 }
77 }
78
79 // Token: 0x06000397 RID: 919 RVA: 0x0000E200 File Offset: 0x0000C400
80 private void initWorkArea(int vsize)
81 {
82 if (this.hn != null)
83 {
84 int[] array = this.v;
85 int[] array2 = this.c;
86 long num = 0L;
87 Array.Clear(array2, (int)num, 16);
88 int[] array3 = this.r;
89 long num2 = 0L;
90 Array.Clear(this.u, (int)num2, 15);
91 int[] array4 = this.x;
92 long num3 = 0L;
93 Array.Clear(array4, (int)num3, 16);
94 return;
95 }
96 }
97
98 // Token: 0x06000398 RID: 920 RVA: 0x0000E260 File Offset: 0x0000C460
99 public InfTree()
100 {
101 }
102
103 // Token: 0x06000399 RID: 921 RVA: 0x0000E274 File Offset: 0x0000C474
104 // Note: this type is marked as 'beforefieldinit'.
105 static InfTree()
106 {
107 }
108
109 // Token: 0x0400028E RID: 654
110 private const int MANY = 1440;
111
112 // Token: 0x0400028F RID: 655
113 private const int Z_OK = 0;
114
115 // Token: 0x04000290 RID: 656
116 private const int Z_STREAM_END = 1;
117
118 // Token: 0x04000291 RID: 657
119 private const int Z_NEED_DICT = 2;
120
121 // Token: 0x04000292 RID: 658
122 private const int Z_ERRNO = -1;
123
124 // Token: 0x04000293 RID: 659
125 private const int Z_STREAM_ERROR = -2;
126
127 // Token: 0x04000294 RID: 660
128 private const int Z_DATA_ERROR = -3;
129
130 // Token: 0x04000295 RID: 661
131 private const int Z_MEM_ERROR = -4;
132
133 // Token: 0x04000296 RID: 662
134 private const int Z_BUF_ERROR = -5;
135
136 // Token: 0x04000297 RID: 663
137 private const int Z_VERSION_ERROR = -6;
138
139 // Token: 0x04000298 RID: 664
140 internal const int fixed_bl = 9;
141
142 // Token: 0x04000299 RID: 665
143 internal const int fixed_bd = 5;
144
145 // Token: 0x0400029A RID: 666
146 internal const int BMAX = 15;
147
148 // Token: 0x0400029B RID: 667
149 internal static readonly int[] fixed_tl;
150
151 // Token: 0x0400029C RID: 668
152 internal static readonly int[] fixed_td;
153
154 // Token: 0x0400029D RID: 669
155 internal static readonly int[] cplens;
156
157 // Token: 0x0400029E RID: 670
158 internal static readonly int[] cplext;
159
160 // Token: 0x0400029F RID: 671
161 internal static readonly int[] cpdist;
162
163 // Token: 0x040002A0 RID: 672
164 internal static readonly int[] cpdext;
165
166 // Token: 0x040002A1 RID: 673
167 internal int[] hn;
168
169 // Token: 0x040002A2 RID: 674
170 internal int[] v;
171
172 // Token: 0x040002A3 RID: 675
173 internal int[] c;
174
175 // Token: 0x040002A4 RID: 676
176 internal int[] r;
177
178 // Token: 0x040002A5 RID: 677
179 internal int[] u;
180
181 // Token: 0x040002A6 RID: 678
182 internal int[] x;
183 }
184}
class f__AnonymousType0<< Count > j__TPar
const int Z_OK
Definition InfTree.cs:113
const int Z_STREAM_END
Definition InfTree.cs:116
const int Z_MEM_ERROR
Definition InfTree.cs:131
int inflate_trees_bits(int[] c, int[] bb, int[] tb, int[] hp, ZlibCodec z)
Definition InfTree.cs:34
const int Z_STREAM_ERROR
Definition InfTree.cs:125
const int Z_BUF_ERROR
Definition InfTree.cs:134
const int fixed_bd
Definition InfTree.cs:143
static int inflate_trees_fixed(int[] bl, int[] bd, int[][] tl, int[][] td, ZlibCodec z)
Definition InfTree.cs:68
static InfTree()
Definition InfTree.cs:105
static readonly int[] fixed_tl
Definition InfTree.cs:149
const int MANY
Definition InfTree.cs:110
int inflate_trees_dynamic(int nl, int nd, int[] c, int[] bl, int[] bd, int[] tl, int[] td, int[] hp, ZlibCodec z)
Definition InfTree.cs:44
static readonly int[] fixed_td
Definition InfTree.cs:152
static readonly int[] cpdist
Definition InfTree.cs:161
const int BMAX
Definition InfTree.cs:146
const int Z_DATA_ERROR
Definition InfTree.cs:128
static readonly int[] cplens
Definition InfTree.cs:155
static readonly int[] cplext
Definition InfTree.cs:158
const int Z_VERSION_ERROR
Definition InfTree.cs:137
static readonly int[] cpdext
Definition InfTree.cs:164
const int fixed_bl
Definition InfTree.cs:140
void initWorkArea(int vsize)
Definition InfTree.cs:80
int huft_build(int[] b, int bindex, int n, int s, int[] d, int[] e, int[] t, int[] m, int[] hp, int[] hn, int[] v)
Definition InfTree.cs:9
const int Z_ERRNO
Definition InfTree.cs:122
const int Z_NEED_DICT
Definition InfTree.cs:119
void IList. Clear()
Definition Array.cs:99
static void Copy(Array sourceArray, Array destinationArray, long length)
Definition Array.cs:205