mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-02-14 05:36:27 +00:00
36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
namespace SabreTools.Models.NewExecutable
|
|
{
|
|
/// <summary>
|
|
/// The segment table contains an entry for each segment in the executable
|
|
/// file. The number of segment table entries are defined in the segmented
|
|
/// EXE header. The first entry in the segment table is segment number 1.
|
|
/// The following is the structure of a segment table entry.
|
|
/// </summary>
|
|
/// <see href="http://bytepointer.com/resources/win16_ne_exe_format_win3.0.htm"/>
|
|
public sealed class SegmentTableEntry
|
|
{
|
|
/// <summary>
|
|
/// Logical-sector offset (n byte) to the contents of the segment
|
|
/// data, relative to the beginning of the file. Zero means no
|
|
/// file data.
|
|
/// </summary>
|
|
public ushort Offset { get; set; }
|
|
|
|
/// <summary>
|
|
/// Length of the segment in the file, in bytes. Zero means 64K.
|
|
/// </summary>
|
|
public ushort Length { get; set; }
|
|
|
|
/// <summary>
|
|
/// Flag word.
|
|
/// </summary>
|
|
public SegmentTableEntryFlag FlagWord { get; set; }
|
|
|
|
/// <summary>
|
|
/// Minimum allocation size of the segment, in bytes. Total size
|
|
/// of the segment. Zero means 64K.
|
|
/// </summary>
|
|
public ushort MinimumAllocationSize { get; set; }
|
|
}
|
|
}
|