Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SectionHeader.cs
Go to the documentation of this file.
2
3public readonly struct SectionHeader
4{
5 internal const int NameSize = 8;
6
7 internal const int Size = 40;
8
9 public string Name { get; }
10
11 public int VirtualSize { get; }
12
13 public int VirtualAddress { get; }
14
15 public int SizeOfRawData { get; }
16
17 public int PointerToRawData { get; }
18
19 public int PointerToRelocations { get; }
20
21 public int PointerToLineNumbers { get; }
22
23 public ushort NumberOfRelocations { get; }
24
25 public ushort NumberOfLineNumbers { get; }
26
28
29 internal SectionHeader(ref PEBinaryReader reader)
30 {
31 Name = reader.ReadNullPaddedUTF8(8);
32 VirtualSize = reader.ReadInt32();
33 VirtualAddress = reader.ReadInt32();
34 SizeOfRawData = reader.ReadInt32();
35 PointerToRawData = reader.ReadInt32();
36 PointerToRelocations = reader.ReadInt32();
37 PointerToLineNumbers = reader.ReadInt32();
38 NumberOfRelocations = reader.ReadUInt16();
39 NumberOfLineNumbers = reader.ReadUInt16();
41 }
42}