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
Type1Message.cs
Go to the documentation of this file.
1using System;
3using System.Text;
4
6{
7 // Token: 0x0200003F RID: 63
8 public class Type1Message : MessageBase
9 {
10 // Token: 0x060001D2 RID: 466 RVA: 0x000083AC File Offset: 0x000065AC
24
25 // Token: 0x17000086 RID: 134
26 // (set) Token: 0x060001D3 RID: 467 RVA: 0x000083F4 File Offset: 0x000065F4
27 public string Domain
28 {
29 set
30 {
31 bool flag = value == "";
32 NtlmFlags flags = this._flags;
34 this._flags = flags;
35 }
36 }
37
38 // Token: 0x17000087 RID: 135
39 // (set) Token: 0x060001D4 RID: 468 RVA: 0x00008424 File Offset: 0x00006624
40 public string Host
41 {
42 set
43 {
44 bool flag = value == "";
45 NtlmFlags flags = this._flags;
47 this._flags = flags;
48 }
49 }
50
51 // Token: 0x060001D5 RID: 469 RVA: 0x00008454 File Offset: 0x00006654
52 protected override void Decode(byte[] message)
53 {
54 base.Decode(message);
55 uint num = BitConverterLE.ToUInt32(message, 12);
57 ushort num2 = BitConverterLE.ToUInt16(message, 16);
58 ushort num3 = BitConverterLE.ToUInt16(message, 20);
61 ushort num4 = BitConverterLE.ToUInt16(message, 24);
64 }
65
66 // Token: 0x060001D6 RID: 470 RVA: 0x000084B8 File Offset: 0x000066B8
67 public override byte[] GetBytes()
68 {
69 string host = this._host;
70 string domain = this._domain;
71 int stringLength = host._stringLength;
72 int stringLength2 = domain._stringLength;
73 NtlmFlags flags = this._flags;
74 NtlmFlags flags2 = this._flags;
76 string host2 = this._host;
77 if (domain == null)
78 {
79 }
81 string text = host2.ToUpper(invariantCulture);
82 CodePageDataItem dataItem = ascii.dataItem;
84 string domain2 = this._domain;
86 string text2 = domain2.ToUpper(invariantCulture2);
88 byte[] array;
89 return array;
90 }
91
92 // Token: 0x040000E9 RID: 233
93 private string _host;
94
95 // Token: 0x040000EA RID: 234
96 private string _domain;
97 }
98}
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 string UserDomainName
static string MachineName
static CultureInfo InvariantCulture
static Encoding ASCII
Definition Encoding.cs:348