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
MD2Managed.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x02000046 RID: 70
6 internal class MD2Managed : MD2
7 {
8 // Token: 0x0600014E RID: 334 RVA: 0x000050AC File Offset: 0x000032AC
9 private byte[] Padding(int nLength)
10 {
11 }
12
13 // Token: 0x0600014F RID: 335 RVA: 0x000050BC File Offset: 0x000032BC
14 public MD2Managed()
15 {
17 }
18
19 // Token: 0x06000150 RID: 336 RVA: 0x000050DC File Offset: 0x000032DC
20 public override void Initialize()
21 {
22 byte[] array = this.state;
23 long num = 0L;
24 Array.Clear(array, (int)num, 16);
25 byte[] array2 = this.checksum;
26 long num2 = 0L;
27 Array.Clear(array2, (int)num2, 16);
28 byte[] array3 = this.buffer;
29 long num3 = 0L;
30 Array.Clear(array3, (int)num3, 16);
31 byte[] array4 = this.x;
32 long num4 = 0L;
33 Array.Clear(array4, (int)num4, 48);
34 }
35
36 // Token: 0x06000151 RID: 337 RVA: 0x0000513C File Offset: 0x0000333C
37 protected override void HashCore(byte[] array, int ibStart, int cbSize)
38 {
39 int num = this.count;
40 int num2 = 16;
42 }
43
44 // Token: 0x06000152 RID: 338 RVA: 0x000051C0 File Offset: 0x000033C0
45 protected override byte[] HashFinal()
46 {
47 object obj;
48 do
49 {
50 int num = this.count;
51 byte[] array = this.checksum;
52 byte[] array2 = this.state;
53 if (obj == null)
54 {
55 return;
56 }
57 }
58 while (obj != null);
59 throw new InvalidCastException();
60 }
61
62 // Token: 0x06000153 RID: 339 RVA: 0x000051F4 File Offset: 0x000033F4
63 private void MD2Transform(byte[] state, byte[] checksum, byte[] block, int index)
64 {
65 byte[] array = this.x;
66 byte[] array2 = this.x;
67 int num = 16;
68 int num2 = 16;
69 Buffer.BlockCopy(block, index, array2, num, num2);
70 long num3 = 0L;
71 byte[] array3 = this.x;
72 byte[] array4 = this.x;
73 if (num3 == 0L)
74 {
75 }
76 byte[] array5 = this.x;
77 int num4 = 16;
78 long num5 = 0L;
79 long num6 = 0L;
80 Buffer.BlockCopy(array5, (int)num5, array2, (int)num6, num4);
81 checksum.m_value = this;
82 }
83
84 // Token: 0x06000154 RID: 340 RVA: 0x00005268 File Offset: 0x00003468
85 // Note: this type is marked as 'beforefieldinit'.
86 static MD2Managed()
87 {
88 }
89
90 // Token: 0x04000148 RID: 328
91 private byte[] state;
92
93 // Token: 0x04000149 RID: 329
94 private byte[] checksum;
95
96 // Token: 0x0400014A RID: 330
97 private byte[] buffer;
98
99 // Token: 0x0400014B RID: 331
100 private int count;
101
102 // Token: 0x0400014C RID: 332
103 private byte[] x;
104
105 // Token: 0x0400014D RID: 333
106 private static readonly byte[] PI_SUBST;
107 }
108}
class f__AnonymousType0<< Count > j__TPar
void MD2Transform(byte[] state, byte[] checksum, byte[] block, int index)
Definition MD2Managed.cs:63
static readonly byte[] PI_SUBST
override void HashCore(byte[] array, int ibStart, int cbSize)
Definition MD2Managed.cs:37
void IList. Clear()
Definition Array.cs:99
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
Definition Buffer.cs:60