terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
CRC32.cs
Go to the documentation of this file.
1using System;
2using System.IO;
6using Ionic.BZip2;
7using Ionic.Zip;
8using Ionic.Zlib;
9
10namespace Ionic.Crc
11{
12 [Guid("ebc25cf6-9120-4283-b972-0e5520d0000C")]
13 [ComVisible(true)]
14 [global::Cpp2ILInjected.Token(Token = "0x200005C")]
15 public class CRC32
16 {
17 [global::Cpp2ILInjected.Token(Token = "0x170000F5")]
18 public long TotalBytesRead
19 {
20 [global::Cpp2ILInjected.Token(Token = "0x60003F8")]
21 [global::Cpp2ILInjected.Address(RVA = "0x1A77410", Offset = "0x1A77410", Length = "0x8")]
22 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
23 get
24 {
25 throw null;
26 }
27 }
28
29 [global::Cpp2ILInjected.Token(Token = "0x170000F6")]
30 public int Crc32Result
31 {
32 [global::Cpp2ILInjected.Token(Token = "0x60003F9")]
33 [global::Cpp2ILInjected.Address(RVA = "0x1A74994", Offset = "0x1A74994", Length = "0xC")]
34 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
35 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2Compressor), Member = "CompressAndWrite", ReturnType = typeof(void))]
36 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2InputStream), Member = "EndBlock", ReturnType = typeof(void))]
37 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
38 get
39 {
40 throw null;
41 }
42 }
43
44 [global::Cpp2ILInjected.Token(Token = "0x60003FA")]
45 [global::Cpp2ILInjected.Address(RVA = "0x1A77418", Offset = "0x1A77418", Length = "0x8")]
46 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipEntry), Member = "FigureCrc32", ReturnType = typeof(int))]
47 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
48 public int GetCrc32(Stream input)
49 {
50 throw null;
51 }
52
53 [global::Cpp2ILInjected.Token(Token = "0x60003FB")]
54 [global::Cpp2ILInjected.Address(RVA = "0x1A77420", Offset = "0x1A77420", Length = "0x184")]
55 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
56 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
57 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CRC32), Member = "SlurpBlock", MemberParameters = new object[]
58 {
59 typeof(byte[]),
60 typeof(int),
61 typeof(int)
62 }, ReturnType = typeof(void))]
63 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Exception), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
64 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
65 public int GetCrc32AndCopy(Stream input, Stream output)
66 {
67 throw null;
68 }
69
70 [global::Cpp2ILInjected.Token(Token = "0x60003FC")]
71 [global::Cpp2ILInjected.Address(RVA = "0x1A775A4", Offset = "0x1A775A4", Length = "0x1C")]
72 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCrypto), Member = "UpdateKeys", MemberParameters = new object[] { typeof(byte) }, ReturnType = typeof(void))]
73 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
74 public int ComputeCrc32(int W, byte B)
75 {
76 throw null;
77 }
78
79 [global::Cpp2ILInjected.Token(Token = "0x60003FD")]
80 [global::Cpp2ILInjected.Address(RVA = "0x1A775C0", Offset = "0x1A775C0", Length = "0x1C")]
81 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
82 internal int _InternalComputeCrc32(uint W, byte B)
83 {
84 throw null;
85 }
86
87 [global::Cpp2ILInjected.Token(Token = "0x60003FE")]
88 [global::Cpp2ILInjected.Address(RVA = "0x1A74D24", Offset = "0x1A74D24", Length = "0xC4")]
89 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
90 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZlibBaseStream), Member = "Write", MemberParameters = new object[]
91 {
92 typeof(byte[]),
93 typeof(int),
94 typeof(int)
95 }, ReturnType = typeof(void))]
96 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZlibBaseStream), Member = "Read", MemberParameters = new object[]
97 {
98 typeof(byte[]),
99 typeof(int),
100 typeof(int)
101 }, ReturnType = typeof(int))]
102 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CRC32), Member = "GetCrc32AndCopy", MemberParameters = new object[]
103 {
104 typeof(Stream),
106 }, ReturnType = typeof(int))]
107 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CrcCalculatorStream), Member = "Read", MemberParameters = new object[]
108 {
109 typeof(byte[]),
110 typeof(int),
111 typeof(int)
112 }, ReturnType = typeof(int))]
113 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CrcCalculatorStream), Member = "Write", MemberParameters = new object[]
114 {
115 typeof(byte[]),
116 typeof(int),
117 typeof(int)
118 }, ReturnType = typeof(void))]
119 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
120 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Exception), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
122 public void SlurpBlock(byte[] block, int offset, int count)
123 {
124 throw null;
125 }
126
127 [global::Cpp2ILInjected.Token(Token = "0x60003FF")]
128 [global::Cpp2ILInjected.Address(RVA = "0x1A775DC", Offset = "0x1A775DC", Length = "0x48")]
129 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2InputStream), Member = "SetupRandPartA", ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2InputStream), Member = "SetupNoRandPartA", ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2InputStream), Member = "SetupRandPartC", ReturnType = typeof(void))]
132 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2InputStream), Member = "SetupNoRandPartC", ReturnType = typeof(void))]
133 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
134 public void UpdateCRC(byte b)
135 {
136 throw null;
137 }
138
139 [global::Cpp2ILInjected.Token(Token = "0x6000400")]
140 [global::Cpp2ILInjected.Address(RVA = "0x1A77624", Offset = "0x1A77624", Length = "0x5C")]
141 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
142 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2Compressor), Member = "AddRunToOutputBlock", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(bool))]
143 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
144 public void UpdateCRC(byte b, int n)
145 {
146 throw null;
147 }
148
149 [global::Cpp2ILInjected.Token(Token = "0x6000401")]
150 [global::Cpp2ILInjected.Address(RVA = "0x1A77680", Offset = "0x1A77680", Length = "0x8")]
151 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
152 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CRC32), Member = "GenerateLookupTable", ReturnType = typeof(void))]
153 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
154 private static uint ReverseBits(uint data)
155 {
156 throw null;
157 }
158
159 [global::Cpp2ILInjected.Token(Token = "0x6000402")]
160 [global::Cpp2ILInjected.Address(RVA = "0x1A77688", Offset = "0x1A77688", Length = "0x4C")]
161 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
162 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
163 private static byte ReverseBits(byte data)
164 {
165 throw null;
166 }
167
168 [global::Cpp2ILInjected.Token(Token = "0x6000403")]
169 [global::Cpp2ILInjected.Address(RVA = "0x1A776D4", Offset = "0x1A776D4", Length = "0x10C")]
170 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
171 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZlibBaseStream), Member = ".ctor", MemberParameters = new object[]
172 {
173 typeof(Stream),
177 typeof(bool)
178 }, ReturnType = typeof(void))]
179 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CRC32), Member = ".ctor", ReturnType = typeof(void))]
180 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CRC32), Member = ".ctor", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
181 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CRC32), Member = ".ctor", MemberParameters = new object[]
182 {
183 typeof(int),
184 typeof(bool)
185 }, ReturnType = typeof(void))]
186 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CrcCalculatorStream), Member = ".ctor", MemberParameters = new object[]
187 {
188 typeof(bool),
189 typeof(long),
190 typeof(Stream),
192 }, ReturnType = typeof(void))]
193 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
194 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CRC32), Member = "ReverseBits", MemberParameters = new object[] { typeof(uint) }, ReturnType = typeof(uint))]
195 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
196 private void GenerateLookupTable()
197 {
198 throw null;
199 }
200
201 [global::Cpp2ILInjected.Token(Token = "0x6000404")]
202 [global::Cpp2ILInjected.Address(RVA = "0x1A777E0", Offset = "0x1A777E0", Length = "0x28")]
203 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
204 private uint gf2_matrix_times(uint[] matrix, uint vec)
205 {
206 throw null;
207 }
208
209 [global::Cpp2ILInjected.Token(Token = "0x6000405")]
210 [global::Cpp2ILInjected.Address(RVA = "0x1A77808", Offset = "0x1A77808", Length = "0x54")]
211 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
212 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
213 private void gf2_matrix_square(uint[] square, uint[] mat)
214 {
215 throw null;
216 }
217
218 [global::Cpp2ILInjected.Token(Token = "0x6000406")]
219 [global::Cpp2ILInjected.Address(RVA = "0x1A7785C", Offset = "0x1A7785C", Length = "0x264")]
220 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
221 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
222 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
223 public void Combine(int crc, int length)
224 {
225 throw null;
226 }
227
228 [global::Cpp2ILInjected.Token(Token = "0x6000407")]
229 [global::Cpp2ILInjected.Address(RVA = "0x1A749A0", Offset = "0x1A749A0", Length = "0x34")]
230 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
231 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipCrypto), Member = ".ctor", ReturnType = typeof(void))]
232 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ZipEntry), Member = "FigureCrc32", ReturnType = typeof(int))]
233 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
234 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
235 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CRC32), Member = "GenerateLookupTable", ReturnType = typeof(void))]
236 public CRC32()
237 {
238 throw null;
239 }
240
241 [global::Cpp2ILInjected.Token(Token = "0x6000408")]
242 [global::Cpp2ILInjected.Address(RVA = "0x1A77AC0", Offset = "0x1A77AC0", Length = "0x40")]
243 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
244 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2Compressor), Member = ".ctor", MemberParameters = new object[]
245 {
247 typeof(int)
248 }, ReturnType = typeof(void))]
249 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2InputStream), Member = ".ctor", MemberParameters = new object[]
250 {
251 typeof(Stream),
252 typeof(bool)
253 }, ReturnType = typeof(void))]
254 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
255 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
256 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CRC32), Member = "GenerateLookupTable", ReturnType = typeof(void))]
257 public CRC32(bool reverseBits)
258 {
259 throw null;
260 }
261
262 [global::Cpp2ILInjected.Token(Token = "0x6000409")]
263 [global::Cpp2ILInjected.Address(RVA = "0x1A77B00", Offset = "0x1A77B00", Length = "0x3C")]
264 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
265 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
266 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(CRC32), Member = "GenerateLookupTable", ReturnType = typeof(void))]
267 public CRC32(int polynomial, bool reverseBits)
268 {
269 throw null;
270 }
271
272 [global::Cpp2ILInjected.Token(Token = "0x600040A")]
273 [global::Cpp2ILInjected.Address(RVA = "0x1A77B3C", Offset = "0x1A77B3C", Length = "0xC")]
274 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2Compressor), Member = ".ctor", MemberParameters = new object[]
275 {
277 typeof(int)
278 }, ReturnType = typeof(void))]
279 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2Compressor), Member = "Reset", ReturnType = typeof(void))]
280 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2Compressor), Member = "CompressAndWrite", ReturnType = typeof(void))]
281 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BZip2InputStream), Member = "InitBlock", ReturnType = typeof(void))]
282 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
283 public void Reset()
284 {
285 throw null;
286 }
287
288 [global::Cpp2ILInjected.Token(Token = "0x400031B")]
289 private const int BUFFER_SIZE = 8192;
290
291 [global::Cpp2ILInjected.Token(Token = "0x400031C")]
292 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
293 private uint dwPolynomial;
294
295 [global::Cpp2ILInjected.Token(Token = "0x400031D")]
296 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
297 private long _TotalBytesRead;
298
299 [global::Cpp2ILInjected.Token(Token = "0x400031E")]
300 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
301 private bool reverseBits;
302
303 [global::Cpp2ILInjected.Token(Token = "0x400031F")]
304 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
305 private uint[] crc32Table;
306
307 [global::Cpp2ILInjected.Token(Token = "0x4000320")]
308 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
309 private uint _register;
310 }
311}
class f__AnonymousType0<< Count > j__TPar
int ComputeCrc32(int W, byte B)
Definition CRC32.cs:74
const int BUFFER_SIZE
Definition CRC32.cs:289
int GetCrc32AndCopy(Stream input, Stream output)
Definition CRC32.cs:65
void Reset()
Definition CRC32.cs:283
void GenerateLookupTable()
Definition CRC32.cs:196
int _InternalComputeCrc32(uint W, byte B)
Definition CRC32.cs:82
CRC32(bool reverseBits)
Definition CRC32.cs:257
int Crc32Result
Definition CRC32.cs:31
void UpdateCRC(byte b, int n)
Definition CRC32.cs:144
void Combine(int crc, int length)
Definition CRC32.cs:223
void gf2_matrix_square(uint[] square, uint[] mat)
Definition CRC32.cs:213
int GetCrc32(Stream input)
Definition CRC32.cs:48
long TotalBytesRead
Definition CRC32.cs:19
long _TotalBytesRead
Definition CRC32.cs:297
static uint ReverseBits(uint data)
Definition CRC32.cs:154
uint _register
Definition CRC32.cs:309
uint gf2_matrix_times(uint[] matrix, uint vec)
Definition CRC32.cs:204
uint[] crc32Table
Definition CRC32.cs:305
CRC32(int polynomial, bool reverseBits)
Definition CRC32.cs:267
static byte ReverseBits(byte data)
Definition CRC32.cs:163
bool reverseBits
Definition CRC32.cs:301
uint dwPolynomial
Definition CRC32.cs:293
void SlurpBlock(byte[] block, int offset, int count)
Definition CRC32.cs:122
void UpdateCRC(byte b)
Definition CRC32.cs:134