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
Type2Message.cs
Go to the documentation of this file.
1using System;
2using System.Text;
3
5{
6 // Token: 0x02000040 RID: 64
7 public class Type2Message : MessageBase
8 {
9 // Token: 0x060001D7 RID: 471 RVA: 0x0000855C File Offset: 0x0000675C
10 public Type2Message(byte[] message)
11 {
12 if (!true)
13 {
14 }
15 base..ctor();
16 this._type = 2;
17 }
18
19 // Token: 0x060001D8 RID: 472 RVA: 0x0000857C File Offset: 0x0000677C
20 protected override void Finalize()
21 {
22 if (this._nonce != null)
23 {
24 }
25 base.Finalize();
26 }
27
28 // Token: 0x17000088 RID: 136
29 // (get) Token: 0x060001D9 RID: 473 RVA: 0x000085B8 File Offset: 0x000067B8
30 public byte[] Nonce
31 {
32 get
33 {
34 byte[] nonce = this._nonce;
35 object obj;
36 if (obj == null || obj != null)
37 {
38 }
39 throw new InvalidCastException();
40 }
41 }
42
43 // Token: 0x17000089 RID: 137
44 // (get) Token: 0x060001DA RID: 474 RVA: 0x000085D8 File Offset: 0x000067D8
45 public string TargetName
46 {
47 get
48 {
49 return this._targetName;
50 }
51 }
52
53 // Token: 0x1700008A RID: 138
54 // (get) Token: 0x060001DB RID: 475 RVA: 0x000085EC File Offset: 0x000067EC
55 public byte[] TargetInfo
56 {
57 get
58 {
59 byte[] targetInfo = this._targetInfo;
60 object obj;
61 if (obj == null || obj != null)
62 {
63 }
64 throw new InvalidCastException();
65 }
66 }
67
68 // Token: 0x060001DC RID: 476 RVA: 0x0000860C File Offset: 0x0000680C
69 protected override void Decode(byte[] message)
70 {
71 base.Decode(message);
72 uint num = BitConverterLE.ToUInt32(message, 20);
73 byte[] nonce = this._nonce;
75 long num2 = 0L;
76 Buffer.BlockCopy(message, 24, nonce, (int)num2, 8);
77 ushort num3 = BitConverterLE.ToUInt16(message, 12);
78 ushort num4 = BitConverterLE.ToUInt16(message, 16);
79 NtlmFlags flags = this._flags;
81 }
82
83 // Token: 0x060001DD RID: 477 RVA: 0x00008694 File Offset: 0x00006894
84 public override byte[] GetBytes()
85 {
86 byte[] array = base.PrepareMessage(40);
87 NtlmFlags flags = this._flags;
88 NtlmFlags flags2 = this._flags;
89 byte[] nonce = this._nonce;
90 return array;
91 }
92
93 // Token: 0x040000EB RID: 235
94 private byte[] _nonce;
95
96 // Token: 0x040000EC RID: 236
97 private string _targetName;
98
99 // Token: 0x040000ED RID: 237
100 private byte[] _targetInfo;
101 }
102}
class f__AnonymousType0<< Count > j__TPar
static uint ToUInt32(byte[] value, int startIndex)
static ushort ToUInt16(byte[] value, int startIndex)
override void Decode(byte[] message)
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
Definition Buffer.cs:60
static Encoding Unicode
Definition Encoding.cs:799