mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-24 15:47:27 +00:00
Ensure explicit getters and setters
This commit is contained in:
@@ -20,16 +20,16 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// The signature consists of a string of three (3) ASCII characters: "NB0"
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public string Signature;
|
||||
public string Signature { get; set; }
|
||||
#else
|
||||
public string? Signature;
|
||||
public string? Signature { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// This defines the type of debugger data that exists in the remainder of the
|
||||
/// debug information.
|
||||
/// </summary>
|
||||
public DebugFormatType FormatType;
|
||||
public DebugFormatType FormatType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The format of the debugger data is defined by the debugger that is being used.
|
||||
@@ -38,9 +38,9 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// for the type field that is defined here.
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public byte[] DebuggerData;
|
||||
public byte[] DebuggerData { get; set; }
|
||||
#else
|
||||
public byte[]? DebuggerData;
|
||||
public byte[]? DebuggerData { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,20 +44,20 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// this number of times.
|
||||
/// For <see cref="BundleType.ForwarderEntry"/>, this field is reserved for future use.
|
||||
/// </remarks>
|
||||
public byte Entries;
|
||||
public byte Entries { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// This defines the bundle type which determines the contents of the BUNDLE INFO.
|
||||
/// </summary>
|
||||
public BundleType BundleType;
|
||||
public BundleType BundleType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Table entries in the bundle
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public EntryTableEntry[] TableEntries;
|
||||
public EntryTableEntry[] TableEntries { get; set; }
|
||||
#else
|
||||
public EntryTableEntry?[]? TableEntries;
|
||||
public EntryTableEntry?[]? TableEntries { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,6 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// This field specifies the offset following the last fixup record in the
|
||||
/// fixup record table. This is the last entry in the fixup page table. (n + 1)
|
||||
/// </remarks>
|
||||
public uint Offset;
|
||||
public uint Offset { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
/// The source type specifies the size and type of the fixup to be performed
|
||||
/// on the fixup source.
|
||||
/// </remarks>
|
||||
public FixupRecordSourceType SourceType;
|
||||
public FixupRecordSourceType SourceType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Target Flags.
|
||||
@@ -28,7 +28,7 @@
|
||||
/// <remarks>
|
||||
/// The target flags specify how the target information is interpreted.
|
||||
/// </remarks>
|
||||
public FixupRecordTargetFlags TargetFlags;
|
||||
public FixupRecordTargetFlags TargetFlags { get; set; }
|
||||
|
||||
#region Source List Flag
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
/// address is on the page to be fixed up, then the offset would have a value
|
||||
/// of -3.)
|
||||
/// </remarks>
|
||||
public ushort SourceOffset;
|
||||
public ushort SourceOffset { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
/// address is on the page to be fixed up, then the offset would have a value
|
||||
/// of -3.)
|
||||
/// </remarks>
|
||||
public byte SourceOffsetListCount;
|
||||
public byte SourceOffsetListCount { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
/// Ordinal Flag' bit in the target flags field is clear and a Word value when
|
||||
/// the bit is set.
|
||||
/// </remarks>
|
||||
public ushort TargetObjectNumberWORD;
|
||||
public ushort TargetObjectNumberWORD { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
/// Ordinal Flag' bit in the target flags field is clear and a Word value when
|
||||
/// the bit is set.
|
||||
/// </remarks>
|
||||
public byte TargetObjectNumberByte;
|
||||
public byte TargetObjectNumberByte { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
/// is a Word value when the '32-bit Target Offset Flag' bit in the target
|
||||
/// flags field is clear and a Dword value when the bit is set.
|
||||
/// </remarks>
|
||||
public uint TargetOffsetDWORD;
|
||||
public uint TargetOffsetDWORD { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
/// is a Word value when the '32-bit Target Offset Flag' bit in the target
|
||||
/// flags field is clear and a Dword value when the bit is set.
|
||||
/// </remarks>
|
||||
public ushort TargetOffsetWORD;
|
||||
public ushort TargetOffsetWORD { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
/// by the loader to index into this table created by the loader to locate
|
||||
/// the referenced module.
|
||||
/// </remarks>
|
||||
public ushort OrdinalIndexImportModuleNameTableWORD;
|
||||
public ushort OrdinalIndexImportModuleNameTableWORD { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -190,7 +190,7 @@
|
||||
/// by the loader to index into this table created by the loader to locate
|
||||
/// the referenced module.
|
||||
/// </remarks>
|
||||
public byte OrdinalIndexImportModuleNameTableByte;
|
||||
public byte OrdinalIndexImportModuleNameTableByte { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -210,7 +210,7 @@
|
||||
/// a Word value when the '32-bit Target Offset Flag' bit in the target
|
||||
/// flags field is clear and a Dword value when the bit is set.
|
||||
/// </remarks>
|
||||
public uint OffsetImportProcedureNameTableDWORD;
|
||||
public uint OffsetImportProcedureNameTableDWORD { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
/// a Word value when the '32-bit Target Offset Flag' bit in the target
|
||||
/// flags field is clear and a Dword value when the bit is set.
|
||||
/// </remarks>
|
||||
public ushort OffsetImportProcedureNameTableWORD;
|
||||
public ushort OffsetImportProcedureNameTableWORD { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -247,7 +247,7 @@
|
||||
/// when the '32-bit Target Offset Flag' bit in the target flags field is clear and a
|
||||
/// Dword value when the bit is set.
|
||||
/// </remarks>
|
||||
public byte ImportedOrdinalNumberByte;
|
||||
public byte ImportedOrdinalNumberByte { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -266,7 +266,7 @@
|
||||
/// when the '32-bit Target Offset Flag' bit in the target flags field is clear and a
|
||||
/// Dword value when the bit is set.
|
||||
/// </remarks>
|
||||
public uint ImportedOrdinalNumberDWORD;
|
||||
public uint ImportedOrdinalNumberDWORD { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
/// when the '32-bit Target Offset Flag' bit in the target flags field is clear and a
|
||||
/// Dword value when the bit is set.
|
||||
/// </remarks>
|
||||
public uint ImportedOrdinalNumberWORD;
|
||||
public uint ImportedOrdinalNumberWORD { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -315,7 +315,7 @@
|
||||
/// This field is a Word value when the '32-bit Additive Flag' bit in the
|
||||
/// target flags field is clear and a Dword value when the bit is set.
|
||||
/// </remarks>
|
||||
public uint AdditiveFixupValueDWORD;
|
||||
public uint AdditiveFixupValueDWORD { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -335,7 +335,7 @@
|
||||
/// This field is a Word value when the '32-bit Additive Flag' bit in the
|
||||
/// target flags field is clear and a Dword value when the bit is set.
|
||||
/// </remarks>
|
||||
public ushort AdditiveFixupValueWORD;
|
||||
public ushort AdditiveFixupValueWORD { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -357,9 +357,9 @@
|
||||
/// fixups are to be made.
|
||||
/// </remarks>
|
||||
#if NET48
|
||||
public ushort[] SourceOffsetList;
|
||||
public ushort[] SourceOffsetList { get; set; }
|
||||
#else
|
||||
public ushort[]? SourceOffsetList;
|
||||
public ushort[]? SourceOffsetList { get; set; }
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// This defines the length of the string in bytes. The length of each
|
||||
/// ascii name string is limited to 127 characters.
|
||||
/// </remarks>
|
||||
public byte Length;
|
||||
public byte Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ASCII String.
|
||||
@@ -37,9 +37,9 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// the LEN field. The string is case sensitive and is not null terminated.
|
||||
/// </remarks>
|
||||
#if NET48
|
||||
public string Name;
|
||||
public string Name { get; set; }
|
||||
#else
|
||||
public string? Name;
|
||||
public string? Name { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// linear EXE module and will be used in the future for parameter type
|
||||
/// checking.
|
||||
/// </remarks>
|
||||
public byte Length;
|
||||
public byte Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ASCII String.
|
||||
@@ -45,9 +45,9 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// the LEN field. The string is case sensitive and is not null terminated.
|
||||
/// </remarks>
|
||||
#if NET48
|
||||
public string Name;
|
||||
public string Name { get; set; }
|
||||
#else
|
||||
public string? Name;
|
||||
public string? Name { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,9 +25,9 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// file as a valid 32-bit Linear Executable Module Format.
|
||||
/// </remarks>
|
||||
#if NET48
|
||||
public string Signature;
|
||||
public string Signature { get; set; }
|
||||
#else
|
||||
public string? Signature;
|
||||
public string? Signature { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
@@ -36,7 +36,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This byte specifies the byte ordering for the linear EXE format.
|
||||
/// </remarks>
|
||||
public ByteOrder ByteOrder;
|
||||
public ByteOrder ByteOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Word Ordering.
|
||||
@@ -44,7 +44,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This byte specifies the Word ordering for the linear EXE format.
|
||||
/// </remarks>
|
||||
public WordOrder WordOrder;
|
||||
public WordOrder WordOrder { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Linear EXE Format Level.
|
||||
@@ -56,7 +56,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// future EXE file versions so that an appropriate error message may be
|
||||
/// displayed if an attempt is made to load them.
|
||||
/// </remarks>
|
||||
public uint ExecutableFormatLevel;
|
||||
public uint ExecutableFormatLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Module CPU Type.
|
||||
@@ -64,7 +64,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This field specifies the type of CPU required by this module to run.
|
||||
/// </remarks>
|
||||
public CPUType CPUType;
|
||||
public CPUType CPUType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Module OS Type.
|
||||
@@ -72,7 +72,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This field specifies the type of Operating system required to run this module.
|
||||
/// </remarks>
|
||||
public OperatingSystem ModuleOS;
|
||||
public OperatingSystem ModuleOS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Module version
|
||||
@@ -81,12 +81,12 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// This is useful for differentiating between revisions of dynamic linked modules.
|
||||
/// This value is specified at link time by the user.
|
||||
/// </remarks>
|
||||
public uint ModuleVersion;
|
||||
public uint ModuleVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Module type flags
|
||||
/// </summary>
|
||||
public ModuleFlags ModuleTypeFlags;
|
||||
public ModuleFlags ModuleTypeFlags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of pages in module.
|
||||
@@ -101,7 +101,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// EXE module. This is used to determine the size of the page information tables
|
||||
/// in the linear EXE module.
|
||||
/// </remarks>
|
||||
public uint ModuleNumberPages;
|
||||
public uint ModuleNumberPages { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Object number to which the Entry Address is relative.
|
||||
@@ -116,7 +116,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// is set, then the object to which this field refers must be a 32-bit object (i.e.,
|
||||
/// the Big/Default bit must be set in the object flags; see below).
|
||||
/// </remarks>
|
||||
public uint InitialObjectCS;
|
||||
public uint InitialObjectCS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Entry Address of module.
|
||||
@@ -125,7 +125,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// The Entry Address is the starting address for program modules and the library
|
||||
/// initialization and Library termination address for library modules.
|
||||
/// </remarks>
|
||||
public uint InitialEIP;
|
||||
public uint InitialEIP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Object number to which the ESP is relative.
|
||||
@@ -135,7 +135,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// nonzero value for a program module to be correctly loaded. This field is ignored
|
||||
/// for a library module.
|
||||
/// </remarks>
|
||||
public uint InitialObjectSS;
|
||||
public uint InitialObjectSS { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Starting stack address of module.
|
||||
@@ -145,7 +145,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// value in this field indicates that the stack pointer is to be initialized to the
|
||||
/// highest address/offset in the object. This field is ignored for a library module.
|
||||
/// </remarks>
|
||||
public uint InitialESP;
|
||||
public uint InitialESP { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The size of one page for this system.
|
||||
@@ -155,7 +155,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// For the initial version of this linear EXE format the page size is 4Kbytes.
|
||||
/// (The 4K page size is specified by a value of 4096 in this field.)
|
||||
/// </remarks>
|
||||
public uint MemoryPageSize;
|
||||
public uint MemoryPageSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The shift left bits for page offsets.
|
||||
@@ -169,7 +169,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// 512 byte (disk sector) basis. The default value for this field is 12 (decimal),
|
||||
/// which give a 4096 byte alignment. All other offsets are byte aligned.
|
||||
/// </remarks>
|
||||
public uint BytesOnLastPage;
|
||||
public uint BytesOnLastPage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Total size of the fixup information in bytes.
|
||||
@@ -181,7 +181,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// - Import Module name Table
|
||||
/// - Import Procedure Name Table
|
||||
/// </remarks>
|
||||
public uint FixupSectionSize;
|
||||
public uint FixupSectionSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Checksum for fixup information.
|
||||
@@ -192,7 +192,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// not always loaded into main memory with the 'loader section'. If the checksum
|
||||
/// feature is not implemented, then the linker will set these fields to zero.
|
||||
/// </remarks>
|
||||
public uint FixupSectionChecksum;
|
||||
public uint FixupSectionChecksum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Size of memory resident tables.
|
||||
@@ -202,7 +202,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// for the module, while the module is in use. This total size includes all
|
||||
/// tables from the Object Table down to and including the Per-Page Checksum Table.
|
||||
/// </remarks>
|
||||
public uint LoaderSectionSize;
|
||||
public uint LoaderSectionSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Checksum for loader section.
|
||||
@@ -212,7 +212,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// If the checksum feature is not implemented, then the linker will set these fields
|
||||
/// to zero.
|
||||
/// </remarks>
|
||||
public uint LoaderSectionChecksum;
|
||||
public uint LoaderSectionChecksum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Object Table offset.
|
||||
@@ -220,7 +220,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint ObjectTableOffset;
|
||||
public uint ObjectTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Object Table Count.
|
||||
@@ -228,7 +228,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This defines the number of entries in Object Table.
|
||||
/// </remarks>
|
||||
public uint ObjectTableCount;
|
||||
public uint ObjectTableCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Object Page Table offset
|
||||
@@ -236,7 +236,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint ObjectPageMapOffset;
|
||||
public uint ObjectPageMapOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Object Iterated Pages offset.
|
||||
@@ -244,7 +244,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint ObjectIterateDataMapOffset;
|
||||
public uint ObjectIterateDataMapOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Resource Table offset
|
||||
@@ -252,12 +252,12 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint ResourceTableOffset;
|
||||
public uint ResourceTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of entries in Resource Table.
|
||||
/// </summary>
|
||||
public uint ResourceTableCount;
|
||||
public uint ResourceTableCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Resident Name Table offset.
|
||||
@@ -265,7 +265,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint ResidentNamesTableOffset;
|
||||
public uint ResidentNamesTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Entry Table offset.
|
||||
@@ -273,7 +273,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint EntryTableOffset;
|
||||
public uint EntryTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Module Format Directives Table offset.
|
||||
@@ -281,7 +281,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint ModuleDirectivesTableOffset;
|
||||
public uint ModuleDirectivesTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of Module Format Directives in the Table.
|
||||
@@ -290,7 +290,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// This field specifies the number of entries in the
|
||||
/// Module Format Directives Table.
|
||||
/// </remarks>
|
||||
public uint ModuleDirectivesCount;
|
||||
public uint ModuleDirectivesCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Fixup Page Table offset.
|
||||
@@ -298,7 +298,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint FixupPageTableOffset;
|
||||
public uint FixupPageTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Fixup Record Table offset.
|
||||
@@ -306,7 +306,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint FixupRecordTableOffset;
|
||||
public uint FixupRecordTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Import Module Name Table offset.
|
||||
@@ -314,12 +314,12 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint ImportedModulesNameTableOffset;
|
||||
public uint ImportedModulesNameTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of entries in the Import Module Name Table.
|
||||
/// </summary>
|
||||
public uint ImportedModulesCount;
|
||||
public uint ImportedModulesCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Import Procedure Name Table offset.
|
||||
@@ -327,7 +327,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint ImportProcedureNameTableOffset;
|
||||
public uint ImportProcedureNameTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Per-page Checksum Table offset.
|
||||
@@ -335,7 +335,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint PerPageChecksumTableOffset;
|
||||
public uint PerPageChecksumTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Data Pages Offset.
|
||||
@@ -343,7 +343,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the EXE file.
|
||||
/// </remarks>
|
||||
public uint DataPagesOffset;
|
||||
public uint DataPagesOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of Preload pages for this module.
|
||||
@@ -352,7 +352,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// Note that OS/2 2.0 does not respect the preload of pages as specified
|
||||
/// in the executable file for performance reasons.
|
||||
/// </remarks>
|
||||
public uint PreloadPageCount;
|
||||
public uint PreloadPageCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Non-Resident Name Table offset.
|
||||
@@ -360,12 +360,12 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the EXE file.
|
||||
/// </remarks>
|
||||
public uint NonResidentNamesTableOffset;
|
||||
public uint NonResidentNamesTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of bytes in the Non-resident name table.
|
||||
/// </summary>
|
||||
public uint NonResidentNamesTableLength;
|
||||
public uint NonResidentNamesTableLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Non-Resident Name Table Checksum.
|
||||
@@ -373,7 +373,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This is a cryptographic checksum of the Non-Resident Name Table.
|
||||
/// </remarks>
|
||||
public uint NonResidentNamesTableChecksum;
|
||||
public uint NonResidentNamesTableChecksum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The Auto Data Segment Object number.
|
||||
@@ -383,7 +383,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// This field is supported for 16-bit compatibility only and is not used by
|
||||
/// 32-bit modules.
|
||||
/// </remarks>
|
||||
public uint AutomaticDataObject;
|
||||
public uint AutomaticDataObject { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Debug Information offset.
|
||||
@@ -391,7 +391,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This offset is relative to the beginning of the linear EXE header.
|
||||
/// </remarks>
|
||||
public uint DebugInformationOffset;
|
||||
public uint DebugInformationOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Debug Information length.
|
||||
@@ -399,7 +399,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// The length of the debug information in bytes.
|
||||
/// </remarks>
|
||||
public uint DebugInformationLength;
|
||||
public uint DebugInformationLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Instance pages in preload section.
|
||||
@@ -407,7 +407,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// The number of instance data pages found in the preload section.
|
||||
/// </remarks>
|
||||
public uint PreloadInstancePagesNumber;
|
||||
public uint PreloadInstancePagesNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Instance pages in demand section.
|
||||
@@ -415,7 +415,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// The number of instance data pages found in the demand section.
|
||||
/// </remarks>
|
||||
public uint DemandInstancePagesNumber;
|
||||
public uint DemandInstancePagesNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Heap size added to the Auto DS Object.
|
||||
@@ -425,6 +425,6 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// by the loader. This field is supported for 16-bit compatibility only and
|
||||
/// is not used by 32-bit modules.
|
||||
/// </remarks>
|
||||
public uint ExtraHeapAllocation;
|
||||
public uint ExtraHeapAllocation { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// The directive number specifies the type of directive defined. This can be
|
||||
/// used to determine the format of the information in the directive data.
|
||||
/// </remarks>
|
||||
public DirectiveNumber DirectiveNumber;
|
||||
public DirectiveNumber DirectiveNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Directive data length.
|
||||
@@ -33,7 +33,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// This specifies the length in byte of the directive data for this directive number.
|
||||
/// </remarks>
|
||||
public ushort DirectiveDataLength;
|
||||
public ushort DirectiveDataLength { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Directive data offset.
|
||||
@@ -43,6 +43,6 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// to beginning of linear EXE header for a resident table, and relative to the
|
||||
/// beginning of the EXE file for non-resident tables.
|
||||
/// </remarks>
|
||||
public uint DirectiveDataOffset;
|
||||
public uint DirectiveDataOffset { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// signifies that additional information is contained in the linear EXE module and
|
||||
/// will be used in the future for parameter type checking.
|
||||
/// </remarks>
|
||||
public byte Length;
|
||||
public byte Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ASCII String.
|
||||
@@ -52,9 +52,9 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// The string is case case sensitive and is not null terminated.
|
||||
/// </remarks>
|
||||
#if NET48
|
||||
public string Name;
|
||||
public string Name { get; set; }
|
||||
#else
|
||||
public string? Name;
|
||||
public string? Name { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
@@ -63,6 +63,6 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// The ordinal number in an ordered index into the entry table for this entry point.
|
||||
/// </remarks>
|
||||
public ushort OrdinalNumber;
|
||||
public ushort OrdinalNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// The logical page number (Object Page Table index), is used to index the Fixup
|
||||
/// Page Table to find any fixups associated with the logical page.
|
||||
/// </remarks>
|
||||
public uint PageDataOffset;
|
||||
public uint PageDataOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of bytes of data for this page.
|
||||
@@ -50,11 +50,11 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// bytes are to be filled with zeros. If the FLAGS field indicates an Iterated Data
|
||||
/// Page, the iterated data records will completely fill out the remainder.
|
||||
/// </remarks>
|
||||
public ushort DataSize;
|
||||
public ushort DataSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Attributes specifying characteristics of this logical page.
|
||||
/// </summary>
|
||||
public ObjectPageFlags Flags;
|
||||
public ObjectPageFlags Flags { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// file for the object. This memory size must also be large enough to
|
||||
/// contain all of the iterated data and uninitialized data in the EXE file.
|
||||
/// </remarks>
|
||||
public uint VirtualSegmentSize;
|
||||
public uint VirtualSegmentSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Relocation Base Address.
|
||||
@@ -37,12 +37,12 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// internal relocation fixups for the module have been removed, this is the
|
||||
/// address the object will be allocated at by the loader.
|
||||
/// </remarks>
|
||||
public uint RelocationBaseAddress;
|
||||
public uint RelocationBaseAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Flag bits for the object.
|
||||
/// </summary>
|
||||
public ObjectFlags ObjectFlags;
|
||||
public ObjectFlags ObjectFlags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Object Page Table Index.
|
||||
@@ -56,7 +56,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// other words the object table entries are sorted based on the object page table
|
||||
/// index value.
|
||||
/// </remarks>
|
||||
public uint PageTableIndex;
|
||||
public uint PageTableIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// # of object page table entries for this object.
|
||||
@@ -72,11 +72,11 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// was neither a zero filled or invalid page, then the additional pages are treated
|
||||
/// as zero filled pages.
|
||||
/// </remarks>
|
||||
public uint PageTableEntries;
|
||||
public uint PageTableEntries { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Reserved for future use. Must be set to zero.
|
||||
/// </summary>
|
||||
public uint Reserved;
|
||||
public uint Reserved { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,6 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <summary>
|
||||
/// Cryptographic checksum.
|
||||
/// </summary>
|
||||
public uint Checksum;
|
||||
public uint Checksum { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// signifies that additional information is contained in the linear EXE module and
|
||||
/// will be used in the future for parameter type checking.
|
||||
/// </remarks>
|
||||
public byte Length;
|
||||
public byte Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ASCII String.
|
||||
@@ -52,9 +52,9 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// The string is case case sensitive and is not null terminated.
|
||||
/// </remarks>
|
||||
#if NET48
|
||||
public string Name;
|
||||
public string Name { get; set; }
|
||||
#else
|
||||
public string? Name;
|
||||
public string? Name { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
@@ -63,6 +63,6 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <remarks>
|
||||
/// The ordinal number in an ordered index into the entry table for this entry point.
|
||||
/// </remarks>
|
||||
public ushort OrdinalNumber;
|
||||
public ushort OrdinalNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,26 +21,26 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// <summary>
|
||||
/// Resource type ID.
|
||||
/// </summary>
|
||||
public ResourceTableEntryType TypeID;
|
||||
public ResourceTableEntryType TypeID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// An ID used as a name for the resource when referred to.
|
||||
/// </summary>
|
||||
public ushort NameID;
|
||||
public ushort NameID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of bytes the resource consists of.
|
||||
/// </summary>
|
||||
public uint ResourceSize;
|
||||
public uint ResourceSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of the object which contains the resource.
|
||||
/// </summary>
|
||||
public ushort ObjectNumber;
|
||||
public ushort ObjectNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The offset within the specified object where the resource begins.
|
||||
/// </summary>
|
||||
public uint Offset;
|
||||
public uint Offset { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// directive table. This is equal to the number of modules referenced by
|
||||
/// this module.
|
||||
/// </remarks>
|
||||
public ushort EntryCount;
|
||||
public ushort EntryCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ordinal index into the Import Module Name Table.
|
||||
@@ -31,7 +31,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// This value is an ordered index in to the Import Module Name Table for
|
||||
/// the referenced module.
|
||||
/// </remarks>
|
||||
public ushort OrdinalIndex;
|
||||
public ushort OrdinalIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Module Version.
|
||||
@@ -44,7 +44,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// number in a module to be incremented anytime the entry point offsets
|
||||
/// change.
|
||||
/// </remarks>
|
||||
public ushort Version;
|
||||
public ushort Version { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Module # of Object Entries.
|
||||
@@ -53,7 +53,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// This field is used to identify the number of object verify entries
|
||||
/// that follow for the referenced module.
|
||||
/// </remarks>
|
||||
public ushort ObjectEntriesCount;
|
||||
public ushort ObjectEntriesCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Object # in Module.
|
||||
@@ -62,7 +62,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// This field specifies the object number in the referenced module that
|
||||
/// is being verified.
|
||||
/// </remarks>
|
||||
public ushort ObjectNumberInModule;
|
||||
public ushort ObjectNumberInModule { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Object load base address.
|
||||
@@ -71,7 +71,7 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// This is the address that the object was loaded at when the fixups were
|
||||
/// performed.
|
||||
/// </remarks>
|
||||
public ushort ObjectLoadBaseAddress;
|
||||
public ushort ObjectLoadBaseAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Object virtual address size.
|
||||
@@ -80,6 +80,6 @@ namespace SabreTools.Models.LinearExecutable
|
||||
/// This field specifies the total amount of virtual memory required for
|
||||
/// this object.
|
||||
/// </remarks>
|
||||
public ushort ObjectVirtualAddressSize;
|
||||
public ushort ObjectVirtualAddressSize { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user