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:
@@ -26,7 +26,7 @@
|
||||
/// are either moveable or refer to the same fixed segment. A zero
|
||||
/// value in this field indicates the end of the entry table.
|
||||
/// </summary>
|
||||
public byte EntryCount;
|
||||
public byte EntryCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Segment indicator for this bundle. This defines the type of
|
||||
@@ -41,19 +41,19 @@
|
||||
/// segment number for the entry points. A moveable segment
|
||||
/// entry is 6 bytes long.
|
||||
/// </summary>
|
||||
public byte SegmentIndicator;
|
||||
public byte SegmentIndicator { get; set; }
|
||||
|
||||
#region Fixed Segment Entry
|
||||
|
||||
/// <summary>
|
||||
/// Flag word.
|
||||
/// </summary>
|
||||
public FixedSegmentEntryFlag FixedFlagWord;
|
||||
public FixedSegmentEntryFlag FixedFlagWord { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Offset within segment to entry point.
|
||||
/// </summary>
|
||||
public ushort FixedOffset;
|
||||
public ushort FixedOffset { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -62,22 +62,22 @@
|
||||
/// <summary>
|
||||
/// Flag word.
|
||||
/// </summary>
|
||||
public MoveableSegmentEntryFlag MoveableFlagWord;
|
||||
public MoveableSegmentEntryFlag MoveableFlagWord { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// INT 3FH.
|
||||
/// </summary>
|
||||
public ushort MoveableReserved;
|
||||
public ushort MoveableReserved { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Segment number.
|
||||
/// </summary>
|
||||
public byte MoveableSegmentNumber;
|
||||
public byte MoveableSegmentNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Offset within segment to entry point.
|
||||
/// </summary>
|
||||
public ushort MoveableOffset;
|
||||
public ushort MoveableOffset { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -26,33 +26,33 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// <summary>
|
||||
/// Version number of the linker.
|
||||
/// </summary>
|
||||
public byte LinkerVersion;
|
||||
public byte LinkerVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Revision number of the linker.
|
||||
/// </summary>
|
||||
public byte LinkerRevision;
|
||||
public byte LinkerRevision { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Entry Table file offset, relative to the beginning of the segmented EXE header.
|
||||
/// </summary>
|
||||
public ushort EntryTableOffset;
|
||||
public ushort EntryTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of bytes in the entry table.
|
||||
/// </summary>
|
||||
public ushort EntryTableSize;
|
||||
public ushort EntryTableSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 32-bit CRC of entire contents of file.
|
||||
/// </summary>
|
||||
/// <remarks>These words are taken as 00 during the calculation.</remarks>
|
||||
public uint CrcChecksum;
|
||||
public uint CrcChecksum { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Flag word
|
||||
/// </summary>
|
||||
public HeaderFlag FlagWord;
|
||||
public HeaderFlag FlagWord { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Segment number of automatic data segment.
|
||||
@@ -65,26 +65,26 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// table. The first entry in the segment table is segment
|
||||
/// number 1.
|
||||
/// </remarks>
|
||||
public ushort AutomaticDataSegmentNumber;
|
||||
public ushort AutomaticDataSegmentNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initial size, in bytes, of dynamic heap added to the
|
||||
/// data segment. This value is zero if no initial local
|
||||
/// heap is allocated.
|
||||
/// </summary>
|
||||
public ushort InitialHeapAlloc;
|
||||
public ushort InitialHeapAlloc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initial size, in bytes, of stack added to the data
|
||||
/// segment. This value is zero to indicate no initial
|
||||
/// stack allocation, or when SS is not equal to DS.
|
||||
/// </summary>
|
||||
public ushort InitialStackAlloc;
|
||||
public ushort InitialStackAlloc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Segment number:offset of CS:IP.
|
||||
/// </summary>
|
||||
public uint InitialCSIPSetting;
|
||||
public uint InitialCSIPSetting { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Segment number:offset of SS:SP.
|
||||
@@ -95,108 +95,108 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// automatic data segment just below the additional heap
|
||||
/// area.
|
||||
/// </remarks>
|
||||
public uint InitialSSSPSetting;
|
||||
public uint InitialSSSPSetting { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of entries in the Segment Table.
|
||||
/// </summary>
|
||||
public ushort FileSegmentCount;
|
||||
public ushort FileSegmentCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of entries in the Module Reference Table.
|
||||
/// </summary>
|
||||
public ushort ModuleReferenceTableSize;
|
||||
public ushort ModuleReferenceTableSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of bytes in the Non-Resident Name Table.
|
||||
/// </summary>
|
||||
public ushort NonResidentNameTableSize;
|
||||
public ushort NonResidentNameTableSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Segment Table file offset, relative to the beginning
|
||||
/// of the segmented EXE header.
|
||||
/// </summary>
|
||||
public ushort SegmentTableOffset;
|
||||
public ushort SegmentTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Resource Table file offset, relative to the beginning
|
||||
/// of the segmented EXE header.
|
||||
/// </summary>
|
||||
public ushort ResourceTableOffset;
|
||||
public ushort ResourceTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Resident Name Table file offset, relative to the
|
||||
/// beginning of the segmented EXE header.
|
||||
/// </summary>
|
||||
public ushort ResidentNameTableOffset;
|
||||
public ushort ResidentNameTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Module Reference Table file offset, relative to the
|
||||
/// beginning of the segmented EXE header.
|
||||
/// </summary>
|
||||
public ushort ModuleReferenceTableOffset;
|
||||
public ushort ModuleReferenceTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Imported Names Table file offset, relative to the
|
||||
/// beginning of the segmented EXE header.
|
||||
/// </summary>
|
||||
public ushort ImportedNamesTableOffset;
|
||||
public ushort ImportedNamesTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Non-Resident Name Table offset, relative to the
|
||||
/// beginning of the file.
|
||||
/// </summary>
|
||||
public uint NonResidentNamesTableOffset;
|
||||
public uint NonResidentNamesTableOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of movable entries in the Entry Table.
|
||||
/// </summary>
|
||||
public ushort MovableEntriesCount;
|
||||
public ushort MovableEntriesCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Logical sector alignment shift count, log(base 2) of
|
||||
/// the segment sector size (default 9).
|
||||
/// </summary>
|
||||
public ushort SegmentAlignmentShiftCount;
|
||||
public ushort SegmentAlignmentShiftCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of resource entries.
|
||||
/// </summary>
|
||||
public ushort ResourceEntriesCount;
|
||||
public ushort ResourceEntriesCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Executable type, used by loader.
|
||||
/// </summary>
|
||||
public OperatingSystem TargetOperatingSystem;
|
||||
public OperatingSystem TargetOperatingSystem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Other OS/2 flags
|
||||
/// </summary>
|
||||
public OS2Flag AdditionalFlags;
|
||||
public OS2Flag AdditionalFlags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Offset to return thunks or start of gangload area
|
||||
/// </summary>
|
||||
public ushort ReturnThunkOffset;
|
||||
public ushort ReturnThunkOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Offset to segment reference thunks or size of gangload area
|
||||
/// </summary>
|
||||
public ushort SegmentReferenceThunkOffset;
|
||||
public ushort SegmentReferenceThunkOffset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Minimum code swap area size
|
||||
/// </summary>
|
||||
public ushort MinCodeSwapAreaSize;
|
||||
public ushort MinCodeSwapAreaSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Windows SDK revison number
|
||||
/// </summary>
|
||||
public byte WindowsSDKRevision;
|
||||
public byte WindowsSDKRevision { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Windows SDK version number
|
||||
/// </summary>
|
||||
public byte WindowsSDKVersion;
|
||||
public byte WindowsSDKVersion { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// <summary>
|
||||
/// Index into module reference table for the imported module.
|
||||
/// </summary>
|
||||
public ushort Index;
|
||||
public ushort Index { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Offset within Imported Names Table to procedure name string.
|
||||
/// </summary>
|
||||
public ushort Offset;
|
||||
public ushort Offset { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,11 +9,11 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// <summary>
|
||||
/// Index into module reference table for the imported module.
|
||||
/// </summary>
|
||||
public ushort Index;
|
||||
public ushort Index { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Procedure ordinal number.
|
||||
/// </summary>
|
||||
public ushort Ordinal;
|
||||
public ushort Ordinal { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,15 +18,15 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// Length of the name string that follows. A zero value indicates
|
||||
/// the end of the name table.
|
||||
/// </summary>
|
||||
public byte Length;
|
||||
public byte Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ASCII text of the name string.
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public byte[] NameString;
|
||||
public byte[] NameString { get; set; }
|
||||
#else
|
||||
public byte[]? NameString;
|
||||
public byte[]? NameString { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,17 +10,17 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// Segment number for a fixed segment, or 0FFh for a
|
||||
/// movable segment.
|
||||
/// </summary>
|
||||
public byte SegmentNumber;
|
||||
public byte SegmentNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0
|
||||
/// </summary>
|
||||
public byte Reserved;
|
||||
public byte Reserved { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Offset into segment if fixed segment, or ordinal
|
||||
/// number index into Entry Table if movable segment.
|
||||
/// </summary>
|
||||
public ushort Offset;
|
||||
public ushort Offset { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// <summary>
|
||||
/// Offset within Imported Names Table to referenced module name string.
|
||||
/// </summary>
|
||||
public ushort Offset;
|
||||
public ushort Offset { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,21 +18,21 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// Length of the name string that follows. A zero value indicates
|
||||
/// the end of the name table.
|
||||
/// </summary>
|
||||
public byte Length;
|
||||
public byte Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ASCII text of the name string.
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public byte[] NameString;
|
||||
public byte[] NameString { get; set; }
|
||||
#else
|
||||
public byte[]? NameString;
|
||||
public byte[]? NameString { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Ordinal number (index into entry table). This value is ignored
|
||||
/// for the module name.
|
||||
/// </summary>
|
||||
public ushort OrdinalNumber;
|
||||
public ushort OrdinalNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,11 +10,11 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// Operating system fixup type.
|
||||
/// Floating-point fixups.
|
||||
/// </summary>
|
||||
public OSFixupType FixupType;
|
||||
public OSFixupType FixupType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 0
|
||||
/// </summary>
|
||||
public ushort Reserved;
|
||||
public ushort Reserved { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,15 +13,15 @@
|
||||
/// <summary>
|
||||
/// Number of relocation records that follow.
|
||||
/// </summary>
|
||||
public ushort RelocationRecordCount;
|
||||
public ushort RelocationRecordCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A table of relocation records follows.
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public RelocationRecord[] RelocationRecords;
|
||||
public RelocationRecord[] RelocationRecords { get; set; }
|
||||
#else
|
||||
public RelocationRecord?[]? RelocationRecords;
|
||||
public RelocationRecord?[]? RelocationRecords { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// <summary>
|
||||
/// Source type.
|
||||
/// </summary>
|
||||
public RelocationRecordSourceType SourceType;
|
||||
public RelocationRecordSourceType SourceType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Flags byte.
|
||||
@@ -21,7 +21,7 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// The target value has four types that are defined in the flag
|
||||
/// byte field.
|
||||
/// </summary>
|
||||
public RelocationRecordFlag Flags;
|
||||
public RelocationRecordFlag Flags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Offset within this segment of the source chain.
|
||||
@@ -31,16 +31,16 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// terminated linked list within this segment of all
|
||||
/// references to the target.
|
||||
/// </summary>
|
||||
public ushort Offset;
|
||||
public ushort Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// INTERNALREF
|
||||
/// </summary>
|
||||
/// <remarks>Must be <c>NULL</c> if <see cref="Flags"/> is not set to <see cref="RelocationRecordFlag.INTERNALREF"/></remarks>
|
||||
#if NET48
|
||||
public InternalRefRelocationRecord InternalRefRelocationRecord;
|
||||
public InternalRefRelocationRecord InternalRefRelocationRecord { get; set; }
|
||||
#else
|
||||
public InternalRefRelocationRecord? InternalRefRelocationRecord;
|
||||
public InternalRefRelocationRecord? InternalRefRelocationRecord { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
@@ -48,9 +48,9 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// </summary>
|
||||
/// <remarks>Must be <c>NULL</c> if <see cref="Flags"/> is not set to <see cref="RelocationRecordFlag.IMPORTNAME"/></remarks>
|
||||
#if NET48
|
||||
public ImportNameRelocationRecord ImportNameRelocationRecord;
|
||||
public ImportNameRelocationRecord ImportNameRelocationRecord { get; set; }
|
||||
#else
|
||||
public ImportNameRelocationRecord? ImportNameRelocationRecord;
|
||||
public ImportNameRelocationRecord? ImportNameRelocationRecord { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
@@ -58,9 +58,9 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// </summary>
|
||||
/// <remarks>Must be <c>NULL</c> if <see cref="Flags"/> is not set to <see cref="RelocationRecordFlag.IMPORTORDINAL"/></remarks>
|
||||
#if NET48
|
||||
public ImportOrdinalRelocationRecord ImportOrdinalRelocationRecord;
|
||||
public ImportOrdinalRelocationRecord ImportOrdinalRelocationRecord { get; set; }
|
||||
#else
|
||||
public ImportOrdinalRelocationRecord? ImportOrdinalRelocationRecord;
|
||||
public ImportOrdinalRelocationRecord? ImportOrdinalRelocationRecord { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
@@ -68,9 +68,9 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// </summary>
|
||||
/// <remarks>Must be <c>NULL</c> if <see cref="Flags"/> is not set to <see cref="RelocationRecordFlag.OSFIXUP"/></remarks>
|
||||
#if NET48
|
||||
public OSFixupRelocationRecord OSFixupRelocationRecord;
|
||||
public OSFixupRelocationRecord OSFixupRelocationRecord { get; set; }
|
||||
#else
|
||||
public OSFixupRelocationRecord? OSFixupRelocationRecord;
|
||||
public OSFixupRelocationRecord? OSFixupRelocationRecord { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,21 +17,21 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// Length of the name string that follows. A zero value indicates
|
||||
/// the end of the name table.
|
||||
/// </summary>
|
||||
public byte Length;
|
||||
public byte Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ASCII text of the name string.
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public byte[] NameString;
|
||||
public byte[] NameString { get; set; }
|
||||
#else
|
||||
public byte[]? NameString;
|
||||
public byte[]? NameString { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Ordinal number (index into entry table). This value is ignored
|
||||
/// for the module name.
|
||||
/// </summary>
|
||||
public ushort OrdinalNumber;
|
||||
public ushort OrdinalNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,15 +20,15 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// <summary>
|
||||
/// Alignment shift count for resource data.
|
||||
/// </summary>
|
||||
public ushort AlignmentShiftCount;
|
||||
public ushort AlignmentShiftCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A table of resource type information blocks follows.
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public ResourceTypeInformationEntry[] ResourceTypes;
|
||||
public ResourceTypeInformationEntry[] ResourceTypes { get; set; }
|
||||
#else
|
||||
public ResourceTypeInformationEntry?[]? ResourceTypes;
|
||||
public ResourceTypeInformationEntry?[]? ResourceTypes { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
@@ -36,9 +36,9 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// resource table.
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public Dictionary<ushort, ResourceTypeAndNameString> TypeAndNameStrings;
|
||||
public Dictionary<ushort, ResourceTypeAndNameString> TypeAndNameStrings { get; set; }
|
||||
#else
|
||||
public Dictionary<ushort, ResourceTypeAndNameString?>? TypeAndNameStrings;
|
||||
public Dictionary<ushort, ResourceTypeAndNameString?>? TypeAndNameStrings { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,15 +16,15 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// indicates the end of the resource type and name string, also
|
||||
/// the end of the resource table.
|
||||
/// </summary>
|
||||
public byte Length;
|
||||
public byte Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ASCII text of the type or name string.
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public byte[] Text;
|
||||
public byte[] Text { get; set; }
|
||||
#else
|
||||
public byte[]? Text;
|
||||
public byte[]? Text { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,25 +17,25 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// table. A zero type ID marks the end of the resource type
|
||||
/// information blocks.
|
||||
/// </summary>
|
||||
public ushort TypeID;
|
||||
public ushort TypeID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of resources for this type.
|
||||
/// </summary>
|
||||
public ushort ResourceCount;
|
||||
public ushort ResourceCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Reserved.
|
||||
/// </summary>
|
||||
public uint Reserved;
|
||||
public uint Reserved { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A table of resources for this type follows.
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public ResourceTypeResourceEntry[] Resources;
|
||||
public ResourceTypeResourceEntry[] Resources { get; set; }
|
||||
#else
|
||||
public ResourceTypeResourceEntry?[]? Resources;
|
||||
public ResourceTypeResourceEntry?[]? Resources { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,17 +16,17 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// of the alignment shift count value specified at
|
||||
/// beginning of the resource table.
|
||||
/// </summary>
|
||||
public ushort Offset;
|
||||
public ushort Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Length of the resource in the file (in bytes).
|
||||
/// </summary>
|
||||
public ushort Length;
|
||||
public ushort Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Flag word.
|
||||
/// </summary>
|
||||
public ResourceTypeResourceFlag FlagWord;
|
||||
public ResourceTypeResourceFlag FlagWord { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Resource ID. This is an integer type if the high-order
|
||||
@@ -34,11 +34,11 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// resource string, the offset is relative to the
|
||||
/// beginning of the resource table.
|
||||
/// </summary>
|
||||
public ushort ResourceID;
|
||||
public ushort ResourceID { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Reserved.
|
||||
/// </summary>
|
||||
public uint Reserved;
|
||||
public uint Reserved { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,22 +17,22 @@ namespace SabreTools.Models.NewExecutable
|
||||
/// data, relative to the beginning of the file. Zero means no
|
||||
/// file data.
|
||||
/// </summary>
|
||||
public ushort Offset;
|
||||
public ushort Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Length of the segment in the file, in bytes. Zero means 64K.
|
||||
/// </summary>
|
||||
public ushort Length;
|
||||
public ushort Length { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Flag word.
|
||||
/// </summary>
|
||||
public SegmentTableEntryFlag FlagWord;
|
||||
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;
|
||||
public ushort MinimumAllocationSize { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user