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
sockaddr_dl.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020002D0 RID: 720
7 internal struct sockaddr_dl
8 {
9 // Token: 0x060012D8 RID: 4824 RVA: 0x0003A848 File Offset: 0x00038A48
10 internal void Read(IntPtr ptr)
11 {
12 int num = 1;
13 if (num == 0)
14 {
15 }
16 long num2 = 0L;
17 byte b = Marshal.ReadByte(ptr, (int)num2);
18 this.sdl_len = b;
19 int num3 = 1;
20 byte b2 = Marshal.ReadByte(ptr, num3);
22 int num4 = 2;
23 short num5 = Marshal.ReadInt16(ptr, num4);
24 this.sdl_index = (ushort)num5;
25 int num6 = 4;
26 byte b3 = Marshal.ReadByte(ptr, num6);
28 int num7 = 5;
29 byte b4 = Marshal.ReadByte(ptr, num7);
31 int num8 = 6;
32 byte b5 = Marshal.ReadByte(ptr, num8);
34 int num9 = 7;
35 byte b6 = Marshal.ReadByte(ptr, num9);
37 if (num == 0)
38 {
39 }
40 int num10 = Math.Max(12, num9);
41 byte[] array = this.sdl_data;
42 }
43
44 // Token: 0x04000F2F RID: 3887
45 public byte sdl_len;
46
47 // Token: 0x04000F30 RID: 3888
48 public byte sdl_family;
49
50 // Token: 0x04000F31 RID: 3889
51 public ushort sdl_index;
52
53 // Token: 0x04000F32 RID: 3890
54 public byte sdl_type;
55
56 // Token: 0x04000F33 RID: 3891
57 public byte sdl_nlen;
58
59 // Token: 0x04000F34 RID: 3892
60 public byte sdl_alen;
61
62 // Token: 0x04000F35 RID: 3893
63 public byte sdl_slen;
64
65 // Token: 0x04000F36 RID: 3894
66 public byte[] sdl_data;
67 }
68}
class f__AnonymousType0<< Count > j__TPar
static byte Max(byte val1, byte val2)
Definition Math.cs:111
static short ReadInt16(IntPtr ptr, int ofs)
Definition Marshal.cs:276
static byte ReadByte(IntPtr ptr, int ofs)
Definition Marshal.cs:270