Files
SabreTools.Models/NewExecutable/PerSegmentData.cs

28 lines
925 B
C#
Raw Normal View History

2023-09-04 00:12:49 -04:00
namespace SabreTools.Models.NewExecutable
2023-09-04 00:11:04 -04:00
{
/// <summary>
/// The location and size of the per-segment data is defined in the
/// segment table entry for the segment. If the segment has relocation
/// fixups, as defined in the segment table entry flags, they directly
/// follow the segment data in the file. The relocation fixup information
/// is defined as follows:
/// </summary>
/// <see href="http://bytepointer.com/resources/win16_ne_exe_format_win3.0.htm"/>
public sealed class PerSegmentData
{
/// <summary>
/// Number of relocation records that follow.
/// </summary>
public ushort RelocationRecordCount;
/// <summary>
/// A table of relocation records follows.
/// </summary>
2023-09-04 21:14:41 -04:00
#if NET48
2023-09-04 00:11:04 -04:00
public RelocationRecord[] RelocationRecords;
2023-09-04 21:14:41 -04:00
#else
public RelocationRecord[]? RelocationRecords;
#endif
2023-09-04 00:11:04 -04:00
}
}