using System.Runtime.InteropServices;
namespace SabreTools.Models.PortableExecutable
{
///
/// Type or Offset field entry is a WORD (2 bytes).
///
///
[StructLayout(LayoutKind.Sequential)]
public sealed class BaseRelocationTypeOffsetFieldEntry
{
///
/// 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
///
public BaseRelocationTypes BaseRelocationType { get; set; }
///
/// 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.
///
public ushort Offset { get; set; }
}
}