Files
SabreTools.Models/PortableExecutable/BaseRelocationTypeOffsetFieldEntry.cs

23 lines
934 B
C#
Raw Normal View History

2023-09-04 00:12:49 -04:00
namespace SabreTools.Models.PortableExecutable
2023-09-04 00:11:04 -04:00
{
/// <summary>
/// Type or Offset field entry is a WORD (2 bytes).
/// </summary>
/// <see href="https://learn.microsoft.com/en-us/windows/win32/debug/pe-format"/>
public sealed class BaseRelocationTypeOffsetFieldEntry
{
/// <summary>
/// Stored in the high 4 bits of the WORD, a value that indicates the type
/// of base relocation to be applied. For more information, see <see cref="BaseRelocationTypes"/>
/// </summary>
2023-09-10 21:24:10 -04:00
public BaseRelocationTypes BaseRelocationType { get; set; }
2023-09-04 00:11:04 -04:00
/// <summary>
/// Stored in the remaining 12 bits of the WORD, an offset from the starting
/// address that was specified in the Page RVA field for the block. This
/// offset specifies where the base relocation is to be applied.
/// </summary>
2023-09-10 21:24:10 -04:00
public ushort Offset { get; set; }
2023-09-04 00:11:04 -04:00
}
}