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: 0x02000055 RID: 85
6 public class MD2Managed : MD2
7 {
8 // Token: 0x06000244 RID: 580 RVA: 0x00009344 File Offset: 0x00007544
9 private byte[] Padding(int nLength)
10 {
11 }
12
13 // Token: 0x06000245 RID: 581 RVA: 0x00009354 File Offset: 0x00007554
14 public MD2Managed()
15 {
17 }
18
19 // Token: 0x06000246 RID: 582 RVA: 0x00009374 File Offset: 0x00007574
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: 0x06000247 RID: 583 RVA: 0x000093D4 File Offset: 0x000075D4
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: 0x06000248 RID: 584 RVA: 0x00009458 File Offset: 0x00007658
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: 0x06000249 RID: 585 RVA: 0x0000948C File Offset: 0x0000768C
63 private void MD2Transform(byte[] state, byte[] checksum, byte[] block, int index)
64 {
65 byte[] array = this.x;
66 int num = 16;
67 long num2 = 0L;
68 long num3 = 0L;
69 Buffer.BlockCopy(state, (int)num2, array, (int)num3, num);
70 byte[] array2 = this.x;
71 int num4 = 16;
72 int num5 = 16;
74 long num6 = 0L;
75 byte[] array3 = this.x;
76 byte[] array4 = this.x;
77 if (num6 == 0L)
78 {
79 }
80 byte[] array5 = this.x;
81 int num7 = 16;
82 long num8 = 0L;
83 long num9 = 0L;
84 Buffer.BlockCopy(array5, (int)num8, state, (int)num9, num7);
85 checksum.m_value = this;
86 }
87
88 // Token: 0x0600024A RID: 586 RVA: 0x00009518 File Offset: 0x00007718
89 // Note: this type is marked as 'beforefieldinit'.
90 static MD2Managed()
91 {
92 }
93
94 // Token: 0x04000254 RID: 596
95 private byte[] state;
96
97 // Token: 0x04000255 RID: 597
98 private byte[] checksum;
99
100 // Token: 0x04000256 RID: 598
101 private byte[] buffer;
102
103 // Token: 0x04000257 RID: 599
104 private int count;
105
106 // Token: 0x04000258 RID: 600
107 private byte[] x;
108
109 // Token: 0x04000259 RID: 601
110 private static readonly byte[] PI_SUBST;
111 }
112}
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