diff --git a/AACS/CopyrightRecord.cs b/AACS/CopyrightRecord.cs
index 357a6a2..5a3523e 100644
--- a/AACS/CopyrightRecord.cs
+++ b/AACS/CopyrightRecord.cs
@@ -9,9 +9,9 @@ namespace SabreTools.Models.AACS
/// Null-terminated ASCII string representing the copyright
///
#if NET48
- public string Copyright;
+ public string Copyright { get; set; }
#else
- public string? Copyright;
+ public string? Copyright { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/DriveRevocationListEntry.cs b/AACS/DriveRevocationListEntry.cs
index 8310af3..d12fd8d 100644
--- a/AACS/DriveRevocationListEntry.cs
+++ b/AACS/DriveRevocationListEntry.cs
@@ -9,7 +9,7 @@ namespace SabreTools.Models.AACS
/// field indicates that only one ID is being revoked, a value of one
/// in the Range field indicates two ID’s are being revoked, and so on.
///
- public ushort Range;
+ public ushort Range { get; set; }
///
/// A 6-byte Drive ID value identifying the Licensed Drive being revoked
@@ -17,9 +17,9 @@ namespace SabreTools.Models.AACS
/// case of a non-zero Range value).
///
#if NET48
- public byte[] DriveID;
+ public byte[] DriveID { get; set; }
#else
- public byte[]? DriveID;
+ public byte[]? DriveID { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/DriveRevocationListRecord.cs b/AACS/DriveRevocationListRecord.cs
index fe8ae22..3601f67 100644
--- a/AACS/DriveRevocationListRecord.cs
+++ b/AACS/DriveRevocationListRecord.cs
@@ -16,15 +16,15 @@ namespace SabreTools.Models.AACS
///
/// The total number of Drive Revocation List Entry fields that follow.
///
- public uint TotalNumberOfEntries;
+ public uint TotalNumberOfEntries { get; set; }
///
/// Revocation list entries
///
#if NET48
- public DriveRevocationSignatureBlock[] SignatureBlocks;
+ public DriveRevocationSignatureBlock[] SignatureBlocks { get; set; }
#else
- public DriveRevocationSignatureBlock?[]? SignatureBlocks;
+ public DriveRevocationSignatureBlock?[]? SignatureBlocks { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/DriveRevocationSignatureBlock.cs b/AACS/DriveRevocationSignatureBlock.cs
index 512c885..8da5925 100644
--- a/AACS/DriveRevocationSignatureBlock.cs
+++ b/AACS/DriveRevocationSignatureBlock.cs
@@ -6,16 +6,16 @@ namespace SabreTools.Models.AACS
///
/// The number of Drive Revocation List Entry fields in the signature block.
///
- public uint NumberOfEntries;
+ public uint NumberOfEntries { get; set; }
///
/// A list of 8-byte Host Drive List Entry fields, the length of this
/// list being equal to the number in the signature block.
///
#if NET48
- public DriveRevocationListEntry[] EntryFields;
+ public DriveRevocationListEntry[] EntryFields { get; set; }
#else
- public DriveRevocationListEntry?[]? EntryFields;
+ public DriveRevocationListEntry?[]? EntryFields { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/EndOfMediaKeyBlockRecord.cs b/AACS/EndOfMediaKeyBlockRecord.cs
index e988036..3f92bea 100644
--- a/AACS/EndOfMediaKeyBlockRecord.cs
+++ b/AACS/EndOfMediaKeyBlockRecord.cs
@@ -19,9 +19,9 @@ namespace SabreTools.Models.AACS
/// must refuse to use the Media Key.
///
#if NET48
- public byte[] SignatureData;
+ public byte[] SignatureData { get; set; }
#else
- public byte[]? SignatureData;
+ public byte[]? SignatureData { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/ExplicitSubsetDifferenceRecord.cs b/AACS/ExplicitSubsetDifferenceRecord.cs
index 4fdfcef..9c388b3 100644
--- a/AACS/ExplicitSubsetDifferenceRecord.cs
+++ b/AACS/ExplicitSubsetDifferenceRecord.cs
@@ -7,9 +7,9 @@ namespace SabreTools.Models.AACS
/// In this record, each subset-difference is encoded with 5 bytes.
///
#if NET48
- public SubsetDifference[] SubsetDifferences;
+ public SubsetDifference[] SubsetDifferences { get; set; }
#else
- public SubsetDifference?[]? SubsetDifferences;
+ public SubsetDifference?[]? SubsetDifferences { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/HostRevocationListEntry.cs b/AACS/HostRevocationListEntry.cs
index ba5566a..c91ac31 100644
--- a/AACS/HostRevocationListEntry.cs
+++ b/AACS/HostRevocationListEntry.cs
@@ -9,7 +9,7 @@ namespace SabreTools.Models.AACS
/// field indicates that only one ID is being revoked, a value of one
/// in the Range field indicates two ID’s are being revoked, and so on.
///
- public ushort Range;
+ public ushort Range { get; set; }
///
/// A 6-byte Host ID value identifying the host being revoked (or the
@@ -17,9 +17,9 @@ namespace SabreTools.Models.AACS
/// Range value).
///
#if NET48
- public byte[] HostID;
+ public byte[] HostID { get; set; }
#else
- public byte[]? HostID;
+ public byte[]? HostID { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/HostRevocationListRecord.cs b/AACS/HostRevocationListRecord.cs
index 1d20494..40fe7fc 100644
--- a/AACS/HostRevocationListRecord.cs
+++ b/AACS/HostRevocationListRecord.cs
@@ -19,15 +19,15 @@ namespace SabreTools.Models.AACS
///
/// The total number of Host Revocation List Entry fields that follow.
///
- public uint TotalNumberOfEntries;
+ public uint TotalNumberOfEntries { get; set; }
///
/// Revocation list entries
///
#if NET48
- public HostRevocationSignatureBlock[] SignatureBlocks;
+ public HostRevocationSignatureBlock[] SignatureBlocks { get; set; }
#else
- public HostRevocationSignatureBlock?[]? SignatureBlocks;
+ public HostRevocationSignatureBlock?[]? SignatureBlocks { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/HostRevocationSignatureBlock.cs b/AACS/HostRevocationSignatureBlock.cs
index b60cc4b..da70d63 100644
--- a/AACS/HostRevocationSignatureBlock.cs
+++ b/AACS/HostRevocationSignatureBlock.cs
@@ -6,16 +6,16 @@ namespace SabreTools.Models.AACS
///
/// The number of Host Revocation List Entry fields in the signature block.
///
- public uint NumberOfEntries;
+ public uint NumberOfEntries { get; set; }
///
/// A list of 8-byte Host Revocation List Entry fields, the length of this
/// list being equal to the number in the signature block.
///
#if NET48
- public HostRevocationListEntry[] EntryFields;
+ public HostRevocationListEntry[] EntryFields { get; set; }
#else
- public HostRevocationListEntry?[]? EntryFields;
+ public HostRevocationListEntry?[]? EntryFields { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/MediaKeyDataRecord.cs b/AACS/MediaKeyDataRecord.cs
index dc98a8a..b5ef0b4 100644
--- a/AACS/MediaKeyDataRecord.cs
+++ b/AACS/MediaKeyDataRecord.cs
@@ -14,9 +14,9 @@ namespace SabreTools.Models.AACS
/// key calculation.
///
#if NET48
- public byte[][] MediaKeyData;
+ public byte[][] MediaKeyData { get; set; }
#else
- public byte[][]? MediaKeyData;
+ public byte[][]? MediaKeyData { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/Record.cs b/AACS/Record.cs
index 9b06ae1..f96af20 100644
--- a/AACS/Record.cs
+++ b/AACS/Record.cs
@@ -15,7 +15,7 @@ namespace SabreTools.Models.AACS
///
/// The Record Type field value indicates the type of the Record.
///
- public RecordType RecordType;
+ public RecordType RecordType { get; set; }
///
/// The Record Length field value indicates the number of bytes in
@@ -23,6 +23,6 @@ namespace SabreTools.Models.AACS
/// fields themselves. Record lengths are always multiples of 4 bytes.
///
// UInt24 not UInt32
- public uint RecordLength;
+ public uint RecordLength { get; set; }
}
}
\ No newline at end of file
diff --git a/AACS/SubsetDifference.cs b/AACS/SubsetDifference.cs
index 51c8a38..32636d8 100644
--- a/AACS/SubsetDifference.cs
+++ b/AACS/SubsetDifference.cs
@@ -9,12 +9,12 @@ namespace SabreTools.Models.AACS
/// the mask. For example, the value 0x01 denotes a mask of
/// 0xFFFFFFFE; value 0x0A denotes a mask of 0xFFFFFC00.
///
- public byte Mask;
+ public byte Mask { get; set; }
///
/// The last 4 bytes are the uv number, most significant
/// byte first.
///
- public uint Number;
+ public uint Number { get; set; }
}
}
\ No newline at end of file
diff --git a/AACS/SubsetDifferenceIndexRecord.cs b/AACS/SubsetDifferenceIndexRecord.cs
index 2f16de8..79a3751 100644
--- a/AACS/SubsetDifferenceIndexRecord.cs
+++ b/AACS/SubsetDifferenceIndexRecord.cs
@@ -14,7 +14,7 @@ namespace SabreTools.Models.AACS
///
/// The number of devices per index offset.
///
- public uint Span;
+ public uint Span { get; set; }
///
/// These offsets refer to the offset within the following Explicit
@@ -22,9 +22,9 @@ namespace SabreTools.Models.AACS
///
// UInt24 not UInt32
#if NET48
- public uint[] Offsets;
+ public uint[] Offsets { get; set; }
#else
- public uint[]? Offsets;
+ public uint[]? Offsets { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/AACS/TypeAndVersionRecord.cs b/AACS/TypeAndVersionRecord.cs
index 21a6a31..32c5fb2 100644
--- a/AACS/TypeAndVersionRecord.cs
+++ b/AACS/TypeAndVersionRecord.cs
@@ -17,7 +17,7 @@ namespace SabreTools.Models.AACS
/// controlling access to AACS Content on pre- recorded media. In
/// this case, the device shall not use the KCD.
///
- public MediaKeyBlockType MediaKeyBlockType;
+ public MediaKeyBlockType MediaKeyBlockType { get; set; }
///
/// The Version Number is a 32-bit unsigned integer. Each time the
@@ -27,6 +27,6 @@ namespace SabreTools.Models.AACS
/// Version Numbers begin at 1; 0 is a special value used for test
/// Media Key Blocks.
///
- public uint VersionNumber;
+ public uint VersionNumber { get; set; }
}
}
\ No newline at end of file
diff --git a/AACS/VerifyMediaKeyRecord.cs b/AACS/VerifyMediaKeyRecord.cs
index e5acbb9..6b0f2d9 100644
--- a/AACS/VerifyMediaKeyRecord.cs
+++ b/AACS/VerifyMediaKeyRecord.cs
@@ -20,9 +20,9 @@ namespace SabreTools.Models.AACS
/// the correct final Media Key value.
///
#if NET48
- public byte[] CiphertextValue;
+ public byte[] CiphertextValue { get; set; }
#else
- public byte[]? CiphertextValue;
+ public byte[]? CiphertextValue { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/BDPlus/SVM.cs b/BDPlus/SVM.cs
index 05e133a..f0206a6 100644
--- a/BDPlus/SVM.cs
+++ b/BDPlus/SVM.cs
@@ -7,56 +7,56 @@ namespace SabreTools.Models.BDPlus
/// "BDSVM_CC"
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// 5 bytes of unknown data
///
#if NET48
- public byte[] Unknown1;
+ public byte[] Unknown1 { get; set; }
#else
- public byte[]? Unknown1;
+ public byte[]? Unknown1 { get; set; }
#endif
///
/// Version year
///
- public ushort Year;
+ public ushort Year { get; set; }
///
/// Version month
///
- public byte Month;
+ public byte Month { get; set; }
///
/// Version day
///
- public byte Day;
+ public byte Day { get; set; }
///
/// 4 bytes of unknown data
///
#if NET48
- public byte[] Unknown2;
+ public byte[] Unknown2 { get; set; }
#else
- public byte[]? Unknown2;
+ public byte[]? Unknown2 { get; set; }
#endif
///
/// Length
///
- public uint Length;
+ public uint Length { get; set; }
///
/// Length bytes of data
///
#if NET48
- public byte[] Data;
+ public byte[] Data { get; set; }
#else
- public byte[]? Data;
+ public byte[]? Data { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/BFPK/FileEntry.cs b/BFPK/FileEntry.cs
index 8b2cebe..781abe8 100644
--- a/BFPK/FileEntry.cs
+++ b/BFPK/FileEntry.cs
@@ -9,30 +9,30 @@
///
/// Name size
///
- public int NameSize;
+ public int NameSize { get; set; }
///
/// Name
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
/// Uncompressed size
///
- public int UncompressedSize;
+ public int UncompressedSize { get; set; }
///
/// Offset
///
- public int Offset;
+ public int Offset { get; set; }
///
/// Compressed size
///
- public int CompressedSize;
+ public int CompressedSize { get; set; }
}
}
diff --git a/BFPK/Header.cs b/BFPK/Header.cs
index 0f6c27b..5efbe70 100644
--- a/BFPK/Header.cs
+++ b/BFPK/Header.cs
@@ -13,19 +13,19 @@ namespace SabreTools.Models.BFPK
/// "BFPK"
///
#if NET48
- public string Magic;
+ public string Magic { get; set; }
#else
- public string? Magic;
+ public string? Magic { get; set; }
#endif
///
/// Version
///
- public int Version;
+ public int Version { get; set; }
///
/// Files
///
- public int Files;
+ public int Files { get; set; }
}
}
diff --git a/BMP/BITMAPFILEHEADER.cs b/BMP/BITMAPFILEHEADER.cs
index 0e246d2..1a58440 100644
--- a/BMP/BITMAPFILEHEADER.cs
+++ b/BMP/BITMAPFILEHEADER.cs
@@ -10,26 +10,26 @@ namespace SabreTools.Models.BMP
///
/// The file type; must be BM.
///
- public ushort Type;
+ public ushort Type { get; set; }
///
/// The size, in bytes, of the bitmap file.
///
- public uint Size;
+ public uint Size { get; set; }
///
/// Reserved; must be zero.
///
- public ushort Reserved1;
+ public ushort Reserved1 { get; set; }
///
/// Reserved; must be zero.
///
- public ushort Reserved2;
+ public ushort Reserved2 { get; set; }
///
/// The offset, in bytes, from the beginning of the BITMAPFILEHEADER structure to the bitmap bits.
///
- public uint OffBits;
+ public uint OffBits { get; set; }
}
}
diff --git a/BMP/BITMAPINFOHEADER.cs b/BMP/BITMAPINFOHEADER.cs
index 17cb677..67f0bf1 100644
--- a/BMP/BITMAPINFOHEADER.cs
+++ b/BMP/BITMAPINFOHEADER.cs
@@ -11,12 +11,12 @@ namespace SabreTools.Models.BMP
/// not include the size of the color table or the size of the color masks,
/// if they are appended to the end of structure.
///
- public uint Size;
+ public uint Size { get; set; }
///
/// Specifies the width of the bitmap, in pixels.
///
- public int Width;
+ public int Width { get; set; }
///
/// Specifies the height of the bitmap, in pixels.
@@ -30,19 +30,19 @@ namespace SabreTools.Models.BMP
/// or negative biHeight.
/// - For compressed formats, biHeight must be positive, regardless of image orientation.
///
- public int Height;
+ public int Height { get; set; }
///
/// Specifies the number of planes for the target device. This value must be set to 1.
///
- public ushort Planes;
+ public ushort Planes { get; set; }
///
/// Specifies the number of bits per pixel (bpp). For uncompressed formats, this value
/// is the average number of bits per pixel. For compressed formats, this value is the
/// implied bit depth of the uncompressed image, after the image has been decoded.
///
- public ushort BitCount;
+ public ushort BitCount { get; set; }
///
/// For compressed video and YUV formats, this member is a FOURCC code, specified as a
@@ -59,36 +59,36 @@ namespace SabreTools.Models.BMP
/// If biCompression equals BI_BITFIELDS, the format is either RGB 555 or RGB 565. Use
/// the subtype GUID in the AM_MEDIA_TYPE structure to determine the specific RGB type.
///
- public uint Compression;
+ public uint Compression { get; set; }
///
/// Specifies the size, in bytes, of the image. This can be set to 0 for uncompressed
/// RGB bitmaps.
///
- public uint SizeImage;
+ public uint SizeImage { get; set; }
///
/// Specifies the horizontal resolution, in pixels per meter, of the target device for
/// the bitmap.
///
- public int XPelsPerMeter;
+ public int XPelsPerMeter { get; set; }
///
/// Specifies the vertical resolution, in pixels per meter, of the target device for
/// the bitmap.
///
- public int YPelsPerMeter;
+ public int YPelsPerMeter { get; set; }
///
/// Specifies the number of color indices in the color table that are actually used by
/// the bitmap.
///
- public uint ClrUsed;
+ public uint ClrUsed { get; set; }
///
/// Specifies the number of color indices that are considered important for displaying
/// the bitmap. If this value is zero, all colors are important.
///
- public uint ClrImportant;
+ public uint ClrImportant { get; set; }
}
}
diff --git a/BSP/Header.cs b/BSP/Header.cs
index 77abddd..a88ee91 100644
--- a/BSP/Header.cs
+++ b/BSP/Header.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.BSP
///
/// Version
///
- public uint Version;
+ public uint Version { get; set; }
}
}
\ No newline at end of file
diff --git a/BSP/Lump.cs b/BSP/Lump.cs
index 87d3812..bcdf627 100644
--- a/BSP/Lump.cs
+++ b/BSP/Lump.cs
@@ -6,11 +6,11 @@ namespace SabreTools.Models.BSP
///
/// Offset
///
- public uint Offset;
+ public uint Offset { get; set; }
///
/// Length
///
- public uint Length;
+ public uint Length { get; set; }
}
}
\ No newline at end of file
diff --git a/BSP/Texture.cs b/BSP/Texture.cs
index 0c44350..c32b65c 100644
--- a/BSP/Texture.cs
+++ b/BSP/Texture.cs
@@ -7,51 +7,51 @@ namespace SabreTools.Models.BSP
/// Name
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
/// Width
///
- public uint Width;
+ public uint Width { get; set; }
///
/// Height
///
- public uint Height;
+ public uint Height { get; set; }
///
/// Offsets
///
#if NET48
- public uint[] Offsets;
+ public uint[] Offsets { get; set; }
#else
- public uint[]? Offsets;
+ public uint[]? Offsets { get; set; }
#endif
///
/// Texture data
///
#if NET48
- public byte[] TextureData;
+ public byte[] TextureData { get; set; }
#else
- public byte[]? TextureData;
+ public byte[]? TextureData { get; set; }
#endif
///
/// Palette size
///
- public uint PaletteSize;
+ public uint PaletteSize { get; set; }
///
/// Palette data
///
#if NET48
- public byte[] PaletteData;
+ public byte[] PaletteData { get; set; }
#else
- public byte[]? PaletteData;
+ public byte[]? PaletteData { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/BSP/TextureHeader.cs b/BSP/TextureHeader.cs
index 85a69e9..2537e3c 100644
--- a/BSP/TextureHeader.cs
+++ b/BSP/TextureHeader.cs
@@ -6,15 +6,15 @@ namespace SabreTools.Models.BSP
///
/// Texture count
///
- public uint TextureCount;
+ public uint TextureCount { get; set; }
///
/// Offsets
///
#if NET48
- public uint[] Offsets;
+ public uint[] Offsets { get; set; }
#else
- public uint[]? Offsets;
+ public uint[]? Offsets { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/CFB/DirectoryEntry.cs b/CFB/DirectoryEntry.cs
index 7797bea..03c79f7 100644
--- a/CFB/DirectoryEntry.cs
+++ b/CFB/DirectoryEntry.cs
@@ -17,16 +17,16 @@ namespace SabreTools.Models.CFB
/// name: '/', '\', ':', '!'.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
/// This field MUST be 0x00, 0x01, 0x02, or 0x05, depending on the
/// actual type of object. All other values are not valid.
///
- public ushort NameLength;
+ public ushort NameLength { get; set; }
///
/// This field MUST match the length of the Directory Entry Name Unicode
@@ -34,31 +34,31 @@ namespace SabreTools.Models.CFB
/// terminating null character in the count. This length MUST NOT exceed 64,
/// the maximum size of the Directory Entry Name field.
///
- public ObjectType ObjectType;
+ public ObjectType ObjectType { get; set; }
///
/// This field MUST be 0x00 (red) or 0x01 (black). All other values are not valid.
///
- public ColorFlag ColorFlag;
+ public ColorFlag ColorFlag { get; set; }
///
/// This field contains the stream ID of the left sibling. If there
/// is no left sibling, the field MUST be set to NOSTREAM (0xFFFFFFFF).
///
- public StreamID LeftSiblingID;
+ public StreamID LeftSiblingID { get; set; }
///
/// This field contains the stream ID of the right sibling. If there
/// is no right sibling, the field MUST be set to NOSTREAM (0xFFFFFFFF).
///
- public StreamID RightSiblingID;
+ public StreamID RightSiblingID { get; set; }
///
/// This field contains the stream ID of a child object. If there is no
/// child object, including all entries for stream objects, the field
/// MUST be set to NOSTREAM (0xFFFFFFFF).
///
- public StreamID ChildID;
+ public StreamID ChildID { get; set; }
///
/// This field contains an object class GUID, if this entry is for a
@@ -71,7 +71,7 @@ namespace SabreTools.Models.CFB
/// this value is not all zeroes, the object class GUID can be used as a
/// parameter to start applications.
///
- public Guid CLSID;
+ public Guid CLSID { get; set; }
///
/// This field contains the user-defined flags if this entry is for a storage
@@ -82,7 +82,7 @@ namespace SabreTools.Models.CFB
/// objects without explicitly setting state bits, it MUST write all zeroes
/// by default.
///
- public uint StateBits;
+ public uint StateBits { get; set; }
///
/// This field contains the creation time for a storage object, or all zeroes
@@ -92,7 +92,7 @@ namespace SabreTools.Models.CFB
/// object, this field MUST be all zeroes, and the creation time is retrieved
/// or set on the compound file itself.
///
- public ulong CreationTime;
+ public ulong CreationTime { get; set; }
///
/// This field contains the modification time for a storage object, or all
@@ -102,7 +102,7 @@ namespace SabreTools.Models.CFB
/// storage object, this field MAY<2> be set to all zeroes, and the modified
/// time is retrieved or set on the compound file itself.
///
- public ulong ModifiedTime;
+ public ulong ModifiedTime { get; set; }
///
/// This field contains the first sector location if this is a stream object.
@@ -110,7 +110,7 @@ namespace SabreTools.Models.CFB
/// mini stream, if the mini stream exists. For a storage object, this field MUST
/// be set to all zeroes.
///
- public uint StartingSectorLocation;
+ public uint StartingSectorLocation { get; set; }
///
/// This 64-bit integer field contains the size of the user-defined data if this
@@ -132,6 +132,6 @@ namespace SabreTools.Models.CFB
/// unless there is a specific reason to do otherwise (for example, a parser whose
/// purpose is to verify the correctness of a compound file).
///
- public ulong StreamSize;
+ public ulong StreamSize { get; set; }
}
}
\ No newline at end of file
diff --git a/CFB/FileHeader.cs b/CFB/FileHeader.cs
index 4ce4c95..a4f2b55 100644
--- a/CFB/FileHeader.cs
+++ b/CFB/FileHeader.cs
@@ -9,30 +9,30 @@ namespace SabreTools.Models.CFB
/// Iddentification signature for the compound file structure, and MUST be
/// set to the value 0xD0, 0xCF, 0x11, 0xE0, 0xA1, 0xB1, 0x1A, 0xE1.
///
- public ulong Signature;
+ public ulong Signature { get; set; }
///
/// Reserved and unused class ID that MUST be set to all zeroes (CLSID_NULL)
///
- public Guid CLSID;
+ public Guid CLSID { get; set; }
///
/// Version number for nonbreaking changes. This field SHOULD be set to
/// 0x003E if the major version field is either 0x0003 or 0x0004.
///
- public ushort MinorVersion;
+ public ushort MinorVersion { get; set; }
///
/// Version number for breaking changes. This field MUST be set to either
/// 0x0003 (version 3) or 0x0004 (version 4).
///
- public ushort MajorVersion;
+ public ushort MajorVersion { get; set; }
///
/// This field MUST be set to 0xFFFE. This field is a byte order mark for
/// all integer fields, specifying little-endian byte order.
///
- public ushort ByteOrder;
+ public ushort ByteOrder { get; set; }
///
/// This field MUST be set to 0x0009, or 0x000c, depending on the Major
@@ -45,22 +45,22 @@ namespace SabreTools.Models.CFB
/// If Major Version is 4, the Sector Shift MUST be 0x000C, specifying a
/// sector size of 4096 bytes.
///
- public ushort SectorShift;
+ public ushort SectorShift { get; set; }
///
/// This field MUST be set to 0x0006. This field specifies the sector size
/// of the Mini Stream as a power of 2. The sector size of the Mini Stream
/// MUST be 64 bytes.
///
- public ushort MiniSectorShift;
+ public ushort MiniSectorShift { get; set; }
///
/// This field MUST be set to all zeroes.
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
///
@@ -70,18 +70,18 @@ namespace SabreTools.Models.CFB
/// If Major Version is 3, the Number of Directory Sectors MUST be zero. This
/// field is not supported for version 3 compound files.
///
- public uint NumberOfDirectorySectors;
+ public uint NumberOfDirectorySectors { get; set; }
///
/// This integer field contains the count of the number of FAT sectors in the
/// compound file.
///
- public uint NumberOfFATSectors;
+ public uint NumberOfFATSectors { get; set; }
///
/// This integer field contains the starting sector number for the directory stream.
///
- public uint FirstDirectorySectorLocation;
+ public uint FirstDirectorySectorLocation { get; set; }
///
/// This integer field MAY contain a sequence number that is incremented every time
@@ -89,7 +89,7 @@ namespace SabreTools.Models.CFB
/// This is the field that MUST be set to all zeroes if file transactions are not
/// implemented.
///
- public uint TransactionSignatureNumber;
+ public uint TransactionSignatureNumber { get; set; }
///
/// This integer field MUST be set to 0x00001000. This field specifies the maximum
@@ -98,38 +98,38 @@ namespace SabreTools.Models.CFB
/// greater than or equal to this cutoff size must be allocated as normal sectors from
/// the FAT.
///
- public uint MiniStreamCutoffSize;
+ public uint MiniStreamCutoffSize { get; set; }
///
/// This integer field contains the starting sector number for the mini FAT.
///
- public uint FirstMiniFATSectorLocation;
+ public uint FirstMiniFATSectorLocation { get; set; }
///
/// This integer field contains the count of the number of mini FAT sectors in the
/// compound file.
///
- public uint NumberOfMiniFATSectors;
+ public uint NumberOfMiniFATSectors { get; set; }
///
/// This integer field contains the starting sector number for the DIFAT.
///
- public uint FirstDIFATSectorLocation;
+ public uint FirstDIFATSectorLocation { get; set; }
///
/// This integer field contains the count of the number of DIFAT sectors in the
/// compound file.
///
- public uint NumberOfDIFATSectors;
+ public uint NumberOfDIFATSectors { get; set; }
///
/// This array of 32-bit integer fields contains the first 109 FAT sector
/// locations of the compound file
///
#if NET48
- public SectorNumber[] DIFAT;
+ public SectorNumber[] DIFAT { get; set; }
#else
- public SectorNumber?[]? DIFAT;
+ public SectorNumber?[]? DIFAT { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/CFB/SummaryInformation.cs b/CFB/SummaryInformation.cs
index 19824ac..5b211bc 100644
--- a/CFB/SummaryInformation.cs
+++ b/CFB/SummaryInformation.cs
@@ -11,35 +11,35 @@ namespace SabreTools.Models.CFB
/// This field MUST be set to 0xFFFE. This field is a byte order mark for
/// all integer fields, specifying little-endian byte order.
///
- public ushort ByteOrder;
+ public ushort ByteOrder { get; set; }
///
/// Format
///
- public ushort Format;
+ public ushort Format { get; set; }
///
/// Build
///
- public ushort Build;
+ public ushort Build { get; set; }
///
/// Platform ID
///
- public ushort PlatformID;
+ public ushort PlatformID { get; set; }
///
/// CLSID
///
- public Guid CLSID;
+ public Guid CLSID { get; set; }
///
/// 4 bytes of reserved data
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
#endregion
@@ -49,15 +49,15 @@ namespace SabreTools.Models.CFB
///
/// Format ID, should be
///
- public Guid FormatID;
+ public Guid FormatID { get; set; }
///
/// 16 bytes of unknown data
///
#if NET48
- public byte[] Unknown;
+ public byte[] Unknown { get; set; }
#else
- public byte[]? Unknown;
+ public byte[]? Unknown { get; set; }
#endif
#endregion
@@ -67,26 +67,26 @@ namespace SabreTools.Models.CFB
///
/// Location of the section
///
- public uint Offset;
+ public uint Offset { get; set; }
///
/// Section count(?)
///
- public uint SectionCount;
+ public uint SectionCount { get; set; }
///
/// Property count
///
- public uint PropertyCount;
+ public uint PropertyCount { get; set; }
///
/// Properties
///
/// Each Variant might be followed by an index and offset value
#if NET48
- public Variant[] Properties;
+ public Variant[] Properties { get; set; }
#else
- public Variant?[]? Properties;
+ public Variant?[]? Properties { get; set; }
#endif
#endregion
diff --git a/CFB/Variant.cs b/CFB/Variant.cs
index 43ee448..db48d72 100644
--- a/CFB/Variant.cs
+++ b/CFB/Variant.cs
@@ -9,41 +9,41 @@ namespace SabreTools.Models.CFB
///
/// MUST be set to the size, in quad words (64 bits), of the structure.
///
- public uint Size;
+ public uint Size { get; set; }
///
/// MUST be set to 0 and MUST be ignored by the recipient.
///
- public uint RpcReserved;
+ public uint RpcReserved { get; set; }
///
/// MUST be set to one of the values specified with a "V".
///
- public VariantType VariantType;
+ public VariantType VariantType { get; set; }
///
/// MAY be set to 0 and MUST be ignored by the recipient.
///
- public ushort Reserved1;
+ public ushort Reserved1 { get; set; }
///
/// MAY be set to 0 and MUST be ignored by the recipient.
///
- public ushort Reserved2;
+ public ushort Reserved2 { get; set; }
///
/// MAY be set to 0 and MUST be ignored by the recipient.
///
- public ushort Reserved3;
+ public ushort Reserved3 { get; set; }
///
/// MUST contain an instance of the type, according to the value
/// in the field.
///
#if NET48
- public object Union;
+ public object Union { get; set; }
#else
- public object? Union;
+ public object? Union { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/Charts/TitlesIni.cs b/Charts/TitlesIni.cs
index f609639..f12c77d 100644
--- a/Charts/TitlesIni.cs
+++ b/Charts/TitlesIni.cs
@@ -23,7 +23,7 @@ namespace SabreTools.Models.Charts
#if NET48
public Dictionary Sections { get; set; }
#else
- public Dictionary? Sections { get; set; }
+ public Dictionary? Sections { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/Compression/LZ/FileHeader.cs b/Compression/LZ/FileHeader.cs
index a499bfd..9ab04d9 100644
--- a/Compression/LZ/FileHeader.cs
+++ b/Compression/LZ/FileHeader.cs
@@ -7,15 +7,15 @@ namespace SabreTools.Models.Compression.LZ
public sealed class FileHeaader
{
#if NET48
- public string Magic;
+ public string Magic { get; set; }
#else
- public string? Magic;
+ public string? Magic { get; set; }
#endif
- public byte CompressionType;
+ public byte CompressionType { get; set; }
- public char LastChar;
+ public char LastChar { get; set; }
- public uint RealLength;
+ public uint RealLength { get; set; }
}
}
\ No newline at end of file
diff --git a/Compression/LZX/AlignedOffsetBlock.cs b/Compression/LZX/AlignedOffsetBlock.cs
index f7c6ce4..483621e 100644
--- a/Compression/LZX/AlignedOffsetBlock.cs
+++ b/Compression/LZX/AlignedOffsetBlock.cs
@@ -11,9 +11,9 @@ namespace SabreTools.Models.Compression.LZX
/// Generic block header
///
#if NET48
- public BlockHeader Header;
+ public BlockHeader Header { get; set; }
#else
- public BlockHeader? Header;
+ public BlockHeader? Header { get; set; }
#endif
///
@@ -21,9 +21,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// 8 elements, 3 bits each
#if NET48
- public byte[] AlignedOffsetTree;
+ public byte[] AlignedOffsetTree { get; set; }
#else
- public byte[]? AlignedOffsetTree;
+ public byte[]? AlignedOffsetTree { get; set; }
#endif
///
@@ -31,9 +31,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// 20 elements, 4 bits each
#if NET48
- public byte[] PretreeFirst256;
+ public byte[] PretreeFirst256 { get; set; }
#else
- public byte[]? PretreeFirst256;
+ public byte[]? PretreeFirst256 { get; set; }
#endif
///
@@ -41,9 +41,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// Encoded using pretree
#if NET48
- public int[] PathLengthsFirst256;
+ public int[] PathLengthsFirst256 { get; set; }
#else
- public int[]? PathLengthsFirst256;
+ public int[]? PathLengthsFirst256 { get; set; }
#endif
///
@@ -51,9 +51,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// 20 elements, 4 bits each
#if NET48
- public byte[] PretreeRemainder;
+ public byte[] PretreeRemainder { get; set; }
#else
- public byte[]? PretreeRemainder;
+ public byte[]? PretreeRemainder { get; set; }
#endif
///
@@ -61,9 +61,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// Encoded using pretree
#if NET48
- public int[] PathLengthsRemainder;
+ public int[] PathLengthsRemainder { get; set; }
#else
- public int[]? PathLengthsRemainder;
+ public int[]? PathLengthsRemainder { get; set; }
#endif
///
@@ -71,9 +71,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// 20 elements, 4 bits each
#if NET48
- public byte[] PretreeLengthTree;
+ public byte[] PretreeLengthTree { get; set; }
#else
- public byte[]? PretreeLengthTree;
+ public byte[]? PretreeLengthTree { get; set; }
#endif
///
@@ -81,9 +81,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// Encoded using pretree
#if NET48
- public int[] PathLengthsLengthTree;
+ public int[] PathLengthsLengthTree { get; set; }
#else
- public int[]? PathLengthsLengthTree;
+ public int[]? PathLengthsLengthTree { get; set; }
#endif
// Entry Comments Size
diff --git a/Compression/LZX/BlockHeader.cs b/Compression/LZX/BlockHeader.cs
index ab48f47..aa34495 100644
--- a/Compression/LZX/BlockHeader.cs
+++ b/Compression/LZX/BlockHeader.cs
@@ -15,24 +15,24 @@ namespace SabreTools.Models.Compression.LZX
public class BlockHeader
{
/// 3 bits
- public BlockType BlockType;
+ public BlockType BlockType { get; set; }
///
/// Block size is the high 8 bits of 24
///
/// 8 bits
- public byte BlockSizeMSB;
+ public byte BlockSizeMSB { get; set; }
///
/// Block size is the middle 8 bits of 24
///
/// 8 bits
- public byte BlockSizeByte2;
+ public byte BlockSizeByte2 { get; set; }
///
/// Block size is the low 8 bits of 24
///
/// 8 bits
- public byte BlocksizeLSB;
+ public byte BlocksizeLSB { get; set; }
}
}
\ No newline at end of file
diff --git a/Compression/LZX/UncompressedBlock.cs b/Compression/LZX/UncompressedBlock.cs
index 422b2bb..6b418d2 100644
--- a/Compression/LZX/UncompressedBlock.cs
+++ b/Compression/LZX/UncompressedBlock.cs
@@ -20,48 +20,48 @@ namespace SabreTools.Models.Compression.LZX
/// Generic block header
///
#if NET48
- public BlockHeader Header;
+ public BlockHeader Header { get; set; }
#else
- public BlockHeader? Header;
+ public BlockHeader? Header { get; set; }
#endif
///
/// Padding to align following field on 16-bit boundary
///
/// Bits have a value of zero
- public ushort PaddingBits;
+ public ushort PaddingBits { get; set; }
///
/// Least significant to most significant byte (little-endian DWORD ([MS-DTYP]))
///
/// Encoded directly in the byte stream, not in the bitstream of byte-swapped 16-bit words
- public uint R0;
+ public uint R0 { get; set; }
///
/// Least significant to most significant byte (little-endian DWORD)
///
/// Encoded directly in the byte stream, not in the bitstream of byte-swapped 16-bit words
- public uint R1;
+ public uint R1 { get; set; }
///
/// Least significant to most significant byte (little-endian DWORD)
///
/// Encoded directly in the byte stream, not in the bitstream of byte-swapped 16-bit words
- public uint R2;
+ public uint R2 { get; set; }
///
/// Can use the direct memcpy function, as specified in [IEEE1003.1]
///
/// Encoded directly in the byte stream, not in the bitstream of byte-swapped 16-bit words
#if NET48
- public byte[] RawDataBytes;
+ public byte[] RawDataBytes { get; set; }
#else
- public byte[]? RawDataBytes;
+ public byte[]? RawDataBytes { get; set; }
#endif
///
/// Only if uncompressed size is odd
///
- public byte AlignmentByte;
+ public byte AlignmentByte { get; set; }
}
}
\ No newline at end of file
diff --git a/Compression/LZX/VerbatimBlock.cs b/Compression/LZX/VerbatimBlock.cs
index 7444338..aa901f6 100644
--- a/Compression/LZX/VerbatimBlock.cs
+++ b/Compression/LZX/VerbatimBlock.cs
@@ -10,9 +10,9 @@ namespace SabreTools.Models.Compression.LZX
/// Generic block header
///
#if NET48
- public BlockHeader Header;
+ public BlockHeader Header { get; set; }
#else
- public BlockHeader? Header;
+ public BlockHeader? Header { get; set; }
#endif
///
@@ -20,9 +20,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// 20 elements, 4 bits each
#if NET48
- public byte[] PretreeFirst256;
+ public byte[] PretreeFirst256 { get; set; }
#else
- public byte[]? PretreeFirst256;
+ public byte[]? PretreeFirst256 { get; set; }
#endif
///
@@ -30,9 +30,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// Encoded using pretree
#if NET48
- public int[] PathLengthsFirst256;
+ public int[] PathLengthsFirst256 { get; set; }
#else
- public int[]? PathLengthsFirst256;
+ public int[]? PathLengthsFirst256 { get; set; }
#endif
///
@@ -40,9 +40,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// 20 elements, 4 bits each
#if NET48
- public byte[] PretreeRemainder;
+ public byte[] PretreeRemainder { get; set; }
#else
- public byte[]? PretreeRemainder;
+ public byte[]? PretreeRemainder { get; set; }
#endif
///
@@ -50,9 +50,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// Encoded using pretree
#if NET48
- public int[] PathLengthsRemainder;
+ public int[] PathLengthsRemainder { get; set; }
#else
- public int[]? PathLengthsRemainder;
+ public int[]? PathLengthsRemainder { get; set; }
#endif
///
@@ -60,9 +60,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// 20 elements, 4 bits each
#if NET48
- public byte[] PretreeLengthTree;
+ public byte[] PretreeLengthTree { get; set; }
#else
- public byte[]? PretreeLengthTree;
+ public byte[]? PretreeLengthTree { get; set; }
#endif
///
@@ -70,9 +70,9 @@ namespace SabreTools.Models.Compression.LZX
///
/// Encoded using pretree
#if NET48
- public int[] PathLengthsLengthTree;
+ public int[] PathLengthsLengthTree { get; set; }
#else
- public int[]? PathLengthsLengthTree;
+ public int[]? PathLengthsLengthTree { get; set; }
#endif
// Entry Comments Size
diff --git a/Compression/MSZIP/BlockHeader.cs b/Compression/MSZIP/BlockHeader.cs
index 4225872..0336aec 100644
--- a/Compression/MSZIP/BlockHeader.cs
+++ b/Compression/MSZIP/BlockHeader.cs
@@ -23,6 +23,6 @@ namespace SabreTools.Models.Compression.MSZIP
///
/// 'CK'
///
- public ushort Signature;
+ public ushort Signature { get; set; }
}
}
\ No newline at end of file
diff --git a/Compression/MSZIP/DynamicHuffmanCompressedBlockHeader.cs b/Compression/MSZIP/DynamicHuffmanCompressedBlockHeader.cs
index a51c4b3..e398ab0 100644
--- a/Compression/MSZIP/DynamicHuffmanCompressedBlockHeader.cs
+++ b/Compression/MSZIP/DynamicHuffmanCompressedBlockHeader.cs
@@ -10,18 +10,18 @@ namespace SabreTools.Models.Compression.MSZIP
/// Huffman code lengths for the literal / length alphabet
///
#if NET48
- public int[] LiteralLengths;
+ public int[] LiteralLengths { get; set; }
#else
- public int[]? LiteralLengths;
+ public int[]? LiteralLengths { get; set; }
#endif
///
/// Huffman distance codes for the literal / length alphabet
///
#if NET48
- public int[] DistanceCodes;
+ public int[] DistanceCodes { get; set; }
#else
- public int[]? DistanceCodes;
+ public int[]? DistanceCodes { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/Compression/MSZIP/NonCompressedBlockHeader.cs b/Compression/MSZIP/NonCompressedBlockHeader.cs
index da150c4..f54d623 100644
--- a/Compression/MSZIP/NonCompressedBlockHeader.cs
+++ b/Compression/MSZIP/NonCompressedBlockHeader.cs
@@ -10,12 +10,12 @@ namespace SabreTools.Models.Compression.MSZIP
/// The number of data bytes in the block
///
/// Bytes 0-1
- public ushort LEN;
+ public ushort LEN { get; set; }
///
/// The one's complement of LEN
///
/// Bytes 2-3
- public ushort NLEN;
+ public ushort NLEN { get; set; }
}
}
\ No newline at end of file
diff --git a/Compression/Quantum/Model.cs b/Compression/Quantum/Model.cs
index 51caa39..e88b150 100644
--- a/Compression/Quantum/Model.cs
+++ b/Compression/Quantum/Model.cs
@@ -4,20 +4,20 @@ namespace SabreTools.Models.Compression.Quantum
///
public sealed class Model
{
- public int TimeToReorder;
+ public int TimeToReorder { get; set; }
- public int Entries;
+ public int Entries { get; set; }
#if NET48
- public ModelSymbol[] Symbols;
+ public ModelSymbol[] Symbols { get; set; }
#else
- public ModelSymbol?[]? Symbols;
+ public ModelSymbol?[]? Symbols { get; set; }
#endif
#if NET48
- public ushort[] LookupTable = new ushort[256];
+ public ushort[] LookupTable { get; set; } = new ushort[256];
#else
- public ushort[]? LookupTable = new ushort[256];
+ public ushort[]? LookupTable { get; set; } = new ushort[256];
#endif
}
}
\ No newline at end of file
diff --git a/Compression/Quantum/ModelSymbol.cs b/Compression/Quantum/ModelSymbol.cs
index a5151e6..ebd8eca 100644
--- a/Compression/Quantum/ModelSymbol.cs
+++ b/Compression/Quantum/ModelSymbol.cs
@@ -4,8 +4,8 @@ namespace SabreTools.Models.Compression.Quantum
///
public sealed class ModelSymbol
{
- public ushort Symbol;
+ public ushort Symbol { get; set; }
- public ushort CumulativeFrequency;
+ public ushort CumulativeFrequency { get; set; }
}
}
\ No newline at end of file
diff --git a/DVD/AudioSubPictureAttributesTable.cs b/DVD/AudioSubPictureAttributesTable.cs
index 1905c2d..7dc033f 100644
--- a/DVD/AudioSubPictureAttributesTable.cs
+++ b/DVD/AudioSubPictureAttributesTable.cs
@@ -6,38 +6,38 @@ namespace SabreTools.Models.DVD
///
/// Number of title sets
///
- public ushort NumberOfTitleSets;
+ public ushort NumberOfTitleSets { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
///
/// End address (last byte of last VTS_ATRT)
///
- public uint EndAddress;
+ public uint EndAddress { get; set; }
///
/// Offset to VTS_ATRT n
///
#if NET48
- public uint[] Offsets;
+ public uint[] Offsets { get; set; }
#else
- public uint[]? Offsets;
+ public uint[]? Offsets { get; set; }
#endif
///
/// Entries
///
#if NET48
- public AudioSubPictureAttributesTableEntry[] Entries;
+ public AudioSubPictureAttributesTableEntry[] Entries { get; set; }
#else
- public AudioSubPictureAttributesTableEntry?[]? Entries;
+ public AudioSubPictureAttributesTableEntry?[]? Entries { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/DVD/AudioSubPictureAttributesTableEntry.cs b/DVD/AudioSubPictureAttributesTableEntry.cs
index 98b2f41..ac144ac 100644
--- a/DVD/AudioSubPictureAttributesTableEntry.cs
+++ b/DVD/AudioSubPictureAttributesTableEntry.cs
@@ -6,22 +6,22 @@ namespace SabreTools.Models.DVD
///
/// End address (EA)
///
- public uint EndAddress;
+ public uint EndAddress { get; set; }
///
/// VTS_CAT (copy of offset 022-025 of the VTS IFO file)
/// 0=unspecified, 1=Karaoke
///
- public uint Category;
+ public uint Category { get; set; }
///
/// Copy of VTS attributes (offset 100 and on from the VTS IFO
/// file, usually 0x300 bytes long)
///
#if NET48
- public byte[] AttributesCopy;
+ public byte[] AttributesCopy { get; set; }
#else
- public byte[]? AttributesCopy;
+ public byte[]? AttributesCopy { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/DVD/CellAddressTable.cs b/DVD/CellAddressTable.cs
index a4efeec..b605ca5 100644
--- a/DVD/CellAddressTable.cs
+++ b/DVD/CellAddressTable.cs
@@ -6,29 +6,29 @@ namespace SabreTools.Models.DVD
///
/// Number of VOB IDs
///
- public ushort NumberOfVOBIDs;
+ public ushort NumberOfVOBIDs { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
///
/// End address (last byte of last entry)
///
- public uint EndAddress;
+ public uint EndAddress { get; set; }
///
/// 12-byte entries
///
#if NET48
- public CellAddressTableEntry[] Entries;
+ public CellAddressTableEntry[] Entries { get; set; }
#else
- public CellAddressTableEntry?[]? Entries;
+ public CellAddressTableEntry?[]? Entries { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/DVD/CellAddressTableEntry.cs b/DVD/CellAddressTableEntry.cs
index 0b688fb..da76e38 100644
--- a/DVD/CellAddressTableEntry.cs
+++ b/DVD/CellAddressTableEntry.cs
@@ -6,26 +6,26 @@ namespace SabreTools.Models.DVD
///
/// VOBidn
///
- public ushort VOBIdentity;
+ public ushort VOBIdentity { get; set; }
///
/// CELLidn
///
- public byte CellIdentity;
+ public byte CellIdentity { get; set; }
///
/// Reserved
///
- public byte Reserved;
+ public byte Reserved { get; set; }
///
/// Starting sector within VOB
///
- public uint StartingSectorWithinVOB;
+ public uint StartingSectorWithinVOB { get; set; }
///
/// Ending sector within VOB
///
- public uint EndingSectorWithinVOB;
+ public uint EndingSectorWithinVOB { get; set; }
}
}
\ No newline at end of file
diff --git a/DVD/LanguageUnitTable.cs b/DVD/LanguageUnitTable.cs
index 9463e61..3c4040a 100644
--- a/DVD/LanguageUnitTable.cs
+++ b/DVD/LanguageUnitTable.cs
@@ -6,39 +6,39 @@ namespace SabreTools.Models.DVD
///
/// Number of Language Units
///
- public ushort NumberOfLanguageUnits;
+ public ushort NumberOfLanguageUnits { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
///
/// End address (last byte of last PGC in last LU)
/// relative to VMGM_PGCI_UT
///
- public uint EndAddress;
+ public uint EndAddress { get; set; }
///
/// Language Units
///
#if NET48
- public LanguageUnitTableEntry[] Entries;
+ public LanguageUnitTableEntry[] Entries { get; set; }
#else
- public LanguageUnitTableEntry?[]? Entries;
+ public LanguageUnitTableEntry?[]? Entries { get; set; }
#endif
///
/// Program Chains
///
#if NET48
- public ProgramChainTable[] ProgramChains;
+ public ProgramChainTable[] ProgramChains { get; set; }
#else
- public ProgramChainTable?[]? ProgramChains;
+ public ProgramChainTable?[]? ProgramChains { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/DVD/LanguageUnitTableEntry.cs b/DVD/LanguageUnitTableEntry.cs
index 58c9301..dba3ee0 100644
--- a/DVD/LanguageUnitTableEntry.cs
+++ b/DVD/LanguageUnitTableEntry.cs
@@ -6,21 +6,21 @@ namespace SabreTools.Models.DVD
///
/// ISO639 language code
///
- public ushort ISO639LanguageCode;
+ public ushort ISO639LanguageCode { get; set; }
///
/// Reserved for language code extension
///
- public byte Reserved;
+ public byte Reserved { get; set; }
///
/// Menu existence flag [80 = title]
///
- public byte MenuExistenceFlag;
+ public byte MenuExistenceFlag { get; set; }
///
/// Offset to VMGM_LU, relative to VMGM_PGCI_UT
///
- public uint LanguageUnitOffset;
+ public uint LanguageUnitOffset { get; set; }
}
}
\ No newline at end of file
diff --git a/DVD/ParentalManagementMasksTable.cs b/DVD/ParentalManagementMasksTable.cs
index 49b1444..97ab884 100644
--- a/DVD/ParentalManagementMasksTable.cs
+++ b/DVD/ParentalManagementMasksTable.cs
@@ -10,25 +10,25 @@ namespace SabreTools.Models.DVD
///
/// Number of countries
///
- public ushort NumberOfCountries;
+ public ushort NumberOfCountries { get; set; }
///
/// Number of title sets (NTs)
///
- public ushort NumberOfTitleSets;
+ public ushort NumberOfTitleSets { get; set; }
///
/// End address (last byte of last PTL_MAIT)
///
- public uint EndAddress;
+ public uint EndAddress { get; set; }
///
/// Entries
///
#if NET48
- public ParentalManagementMasksTableEntry[] Entries;
+ public ParentalManagementMasksTableEntry[] Entries { get; set; }
#else
- public ParentalManagementMasksTableEntry?[]? Entries;
+ public ParentalManagementMasksTableEntry?[]? Entries { get; set; }
#endif
///
@@ -37,9 +37,9 @@ namespace SabreTools.Models.DVD
/// by the masks for level 7, and so on to level 1.
///
#if NET48
- public byte[][] BitMasks;
+ public byte[][] BitMasks { get; set; }
#else
- public byte[][]? BitMasks;
+ public byte[][]? BitMasks { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/DVD/ParentalManagementMasksTableEntry.cs b/DVD/ParentalManagementMasksTableEntry.cs
index cc4715b..99e3d10 100644
--- a/DVD/ParentalManagementMasksTableEntry.cs
+++ b/DVD/ParentalManagementMasksTableEntry.cs
@@ -6,20 +6,20 @@ namespace SabreTools.Models.DVD
///
/// Country code
///
- public ushort CountryCode;
+ public ushort CountryCode { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
///
/// Offset to PTL_MAIT
///
- public uint Offset;
+ public uint Offset { get; set; }
}
}
\ No newline at end of file
diff --git a/DVD/ProgramChainTable.cs b/DVD/ProgramChainTable.cs
index 2c0d4b2..0e63479 100644
--- a/DVD/ProgramChainTable.cs
+++ b/DVD/ProgramChainTable.cs
@@ -6,30 +6,30 @@ namespace SabreTools.Models.DVD
///
/// Number of Program Chains
///
- public ushort NumberOfProgramChains;
+ public ushort NumberOfProgramChains { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
///
/// End address (last byte of last PGC in this LU)
/// relative to VMGM_LU
///
- public uint EndAddress;
+ public uint EndAddress { get; set; }
///
/// Program Chains
///
#if NET48
- public ProgramChainTableEntry[] Entries;
+ public ProgramChainTableEntry[] Entries { get; set; }
#else
- public ProgramChainTableEntry?[]? Entries;
+ public ProgramChainTableEntry?[]? Entries { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/DVD/ProgramChainTableEntry.cs b/DVD/ProgramChainTableEntry.cs
index 2ea0766..0f0145e 100644
--- a/DVD/ProgramChainTableEntry.cs
+++ b/DVD/ProgramChainTableEntry.cs
@@ -6,21 +6,21 @@ namespace SabreTools.Models.DVD
///
/// PGC category
///
- public ProgramChainCategory Category;
+ public ProgramChainCategory Category { get; set; }
///
/// Unknown
///
- public byte Unknown;
+ public byte Unknown { get; set; }
///
/// Parental management mask
///
- public ushort ParentalManagementMask;
+ public ushort ParentalManagementMask { get; set; }
///
/// Offset to VMGM_PGC, relative to VMGM_LU
///
- public uint Offset;
+ public uint Offset { get; set; }
}
}
\ No newline at end of file
diff --git a/DVD/TitlesTable.cs b/DVD/TitlesTable.cs
index ec54244..ef5fef8 100644
--- a/DVD/TitlesTable.cs
+++ b/DVD/TitlesTable.cs
@@ -6,29 +6,29 @@ namespace SabreTools.Models.DVD
///
/// Number of titles
///
- public ushort NumberOfTitles;
+ public ushort NumberOfTitles { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
///
/// End address (last byte of last entry)
///
- public uint EndAddress;
+ public uint EndAddress { get; set; }
///
/// 12-byte entries
///
#if NET48
- public TitlesTableEntry[] Entries;
+ public TitlesTableEntry[] Entries { get; set; }
#else
- public TitlesTableEntry?[]? Entries;
+ public TitlesTableEntry?[]? Entries { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/DVD/TitlesTableEntry.cs b/DVD/TitlesTableEntry.cs
index 55dafc6..2566838 100644
--- a/DVD/TitlesTableEntry.cs
+++ b/DVD/TitlesTableEntry.cs
@@ -6,37 +6,37 @@ namespace SabreTools.Models.DVD
///
/// Title type
///
- public TitleType TitleType;
+ public TitleType TitleType { get; set; }
///
/// Number of angles
///
- public byte NumberOfAngles;
+ public byte NumberOfAngles { get; set; }
///
/// Number of chapters (PTTs)
///
- public ushort NumberOfChapters;
+ public ushort NumberOfChapters { get; set; }
///
/// Parental management mask
///
- public ushort ParentalManagementMask;
+ public ushort ParentalManagementMask { get; set; }
///
/// Video Title Set number (VTSN)
///
- public byte VideoTitleSetNumber;
+ public byte VideoTitleSetNumber { get; set; }
///
/// Title number within VTS (VTS_TTN)
///
- public byte TitleNumberWithinVTS;
+ public byte TitleNumberWithinVTS { get; set; }
///
/// Start sector for VTS, referenced to whole disk
/// (video_ts.ifo starts at sector 00000000)
///
- public uint VTSStartSector;
+ public uint VTSStartSector { get; set; }
}
}
\ No newline at end of file
diff --git a/DVD/VOBUAddressMap.cs b/DVD/VOBUAddressMap.cs
index de29e2b..a7bdd8d 100644
--- a/DVD/VOBUAddressMap.cs
+++ b/DVD/VOBUAddressMap.cs
@@ -6,15 +6,15 @@ namespace SabreTools.Models.DVD
///
/// End address (last byte of last entry)
///
- public uint EndAddress;
+ public uint EndAddress { get; set; }
///
/// Starting sector within VOB of nth VOBU
///
#if NET48
- public uint[] StartingSectors;
+ public uint[] StartingSectors { get; set; }
#else
- public uint[]? StartingSectors;
+ public uint[]? StartingSectors { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/DVD/VideoManagerIFO.cs b/DVD/VideoManagerIFO.cs
index 8a319ed..2b7d0b0 100644
--- a/DVD/VideoManagerIFO.cs
+++ b/DVD/VideoManagerIFO.cs
@@ -7,20 +7,20 @@ namespace SabreTools.Models.DVD
/// "DVDVIDEO-VMG"
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Last sector of VMG set (last sector of BUP)
///
- public uint LastVMGSetSector;
+ public uint LastVMGSetSector { get; set; }
///
/// Last sector of IFO
///
- public uint LastIFOSector;
+ public uint LastIFOSector { get; set; }
///
/// Version number
@@ -28,151 +28,151 @@ namespace SabreTools.Models.DVD
/// - Byte 1, Bits 7-4 - Major version number
/// - Byte 1, Bits 3-0 - Minor version number
///
- public ushort VersionNumber;
+ public ushort VersionNumber { get; set; }
///
/// VMG category
///
/// byte1=prohibited region mask
- public uint VMGCategory;
+ public uint VMGCategory { get; set; }
///
/// Number of volumes
///
- public ushort NumberOfVolumes;
+ public ushort NumberOfVolumes { get; set; }
///
/// Volume number
///
- public ushort VolumeNumber;
+ public ushort VolumeNumber { get; set; }
///
/// Side ID
///
- public byte SideID;
+ public byte SideID { get; set; }
///
/// Number of title sets
///
- public ushort NumberOfTitleSets;
+ public ushort NumberOfTitleSets { get; set; }
///
/// Provider ID
///
#if NET48
- public byte[] ProviderID;
+ public byte[] ProviderID { get; set; }
#else
- public byte[]? ProviderID;
+ public byte[]? ProviderID { get; set; }
#endif
///
/// VMG POS
///
- public ulong VMGPOS;
+ public ulong VMGPOS { get; set; }
///
/// End byte address of VMGI_MAT
///
- public uint InformationManagementTableEndByteAddress;
+ public uint InformationManagementTableEndByteAddress { get; set; }
///
/// Start address of FP_PGC (First Play program chain)
///
- public uint FirstPlayProgramChainStartAddress;
+ public uint FirstPlayProgramChainStartAddress { get; set; }
///
/// Start sector of Menu VOB
///
- public uint MenuVOBStartSector;
+ public uint MenuVOBStartSector { get; set; }
///
/// Sector pointer to TT_SRPT (table of titles)
///
- public uint TableOfTitlesSectorPointer;
+ public uint TableOfTitlesSectorPointer { get; set; }
///
/// Sector pointer to VMGM_PGCI_UT (Menu Program Chain table)
///
- public uint MenuProgramChainTableSectorPointer;
+ public uint MenuProgramChainTableSectorPointer { get; set; }
///
/// Sector pointer to VMG_PTL_MAIT (Parental Management masks)
///
- public uint ParentalManagementMasksSectorPointer;
+ public uint ParentalManagementMasksSectorPointer { get; set; }
///
/// Sector pointer to VMG_VTS_ATRT (copies of VTS audio/sub-picture attributes)
///
- public uint AudioSubPictureAttributesSectorPointer;
+ public uint AudioSubPictureAttributesSectorPointer { get; set; }
///
/// Sector pointer to VMG_TXTDT_MG (text data)
///
- public uint TextDataSectorPointer;
+ public uint TextDataSectorPointer { get; set; }
///
/// Sector pointer to VMGM_C_ADT (menu cell address table)
///
- public uint MenuCellAddressTableSectorPointer;
+ public uint MenuCellAddressTableSectorPointer { get; set; }
///
/// Sector pointer to VMGM_VOBU_ADMAP (menu VOBU address map)
///
- public uint MenuVOBUAddressMapSectorPointer;
+ public uint MenuVOBUAddressMapSectorPointer { get; set; }
///
/// Video attributes of VMGM_VOBS
///
#if NET48
- public byte[] VideoAttributes;
+ public byte[] VideoAttributes { get; set; }
#else
- public byte[]? VideoAttributes;
+ public byte[]? VideoAttributes { get; set; }
#endif
///
/// Number of audio streams in VMGM_VOBS
///
- public ushort NumberOfAudioStreams;
+ public ushort NumberOfAudioStreams { get; set; }
///
/// Audio attributes of VMGM_VOBS
///
#if NET48
- public byte[][] AudioAttributes;
+ public byte[][] AudioAttributes { get; set; }
#else
- public byte[][]? AudioAttributes;
+ public byte[][]? AudioAttributes { get; set; }
#endif
///
/// Unknown
///
#if NET48
- public byte[] Unknown;
+ public byte[] Unknown { get; set; }
#else
- public byte[]? Unknown;
+ public byte[]? Unknown { get; set; }
#endif
///
/// Number of subpicture streams in VMGM_VOBS (0 or 1)
///
- public ushort NumberOfSubpictureStreams;
+ public ushort NumberOfSubpictureStreams { get; set; }
///
/// Subpicture attributes of VMGM_VOBS
///
#if NET48
- public byte[] SubpictureAttributes;
+ public byte[] SubpictureAttributes { get; set; }
#else
- public byte[]? SubpictureAttributes;
+ public byte[]? SubpictureAttributes { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/DVD/VideoTitleSetIFO.cs b/DVD/VideoTitleSetIFO.cs
index 72a7de6..34e69c1 100644
--- a/DVD/VideoTitleSetIFO.cs
+++ b/DVD/VideoTitleSetIFO.cs
@@ -7,20 +7,20 @@ namespace SabreTools.Models.DVD
/// "DVDVIDEO-VTS"
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Last sector of title set (last sector of BUP)
///
- public uint LastTitleSetSector;
+ public uint LastTitleSetSector { get; set; }
///
/// Last sector of IFO
///
- public uint LastIFOSector;
+ public uint LastIFOSector { get; set; }
///
/// Version number
@@ -28,161 +28,161 @@ namespace SabreTools.Models.DVD
/// - Byte 1, Bits 7-4 - Major version number
/// - Byte 1, Bits 3-0 - Minor version number
///
- public ushort VersionNumber;
+ public ushort VersionNumber { get; set; }
///
/// VTS category
///
/// 0=unspecified, 1=Karaoke
- public uint VMGCategory;
+ public uint VMGCategory { get; set; }
///
/// Number of volumes
///
- public ushort NumberOfVolumes;
+ public ushort NumberOfVolumes { get; set; }
///
/// Volume number
///
- public ushort VolumeNumber;
+ public ushort VolumeNumber { get; set; }
///
/// Side ID
///
- public byte SideID;
+ public byte SideID { get; set; }
///
/// Number of title sets
///
- public ushort NumberOfTitleSets;
+ public ushort NumberOfTitleSets { get; set; }
///
/// Provider ID
///
#if NET48
- public byte[] ProviderID;
+ public byte[] ProviderID { get; set; }
#else
- public byte[]? ProviderID;
+ public byte[]? ProviderID { get; set; }
#endif
///
/// VMG POS
///
- public ulong VMGPOS;
+ public ulong VMGPOS { get; set; }
///
/// End byte address of VTS_MAT
///
- public uint InformationManagementTableEndByteAddress;
+ public uint InformationManagementTableEndByteAddress { get; set; }
///
/// Start address of FP_PGC (First Play program chain)
///
- public uint FirstPlayProgramChainStartAddress;
+ public uint FirstPlayProgramChainStartAddress { get; set; }
///
/// Start sector of Menu VOB
///
- public uint MenuVOBStartSector;
+ public uint MenuVOBStartSector { get; set; }
///
/// Start sector of Title VOB
///
- public uint TitleVOBStartSector;
+ public uint TitleVOBStartSector { get; set; }
///
/// Sector pointer to VTS_PTT_SRPT (table of Titles and Chapters)
///
- public uint TableOfTitlesAndChaptersSectorPointer;
+ public uint TableOfTitlesAndChaptersSectorPointer { get; set; }
///
/// Sector pointer to VTS_PGCI (Title Program Chain table)
///
- public uint TitleProgramChainTableSectorPointer;
+ public uint TitleProgramChainTableSectorPointer { get; set; }
///
/// Sector pointer to VTSM_PGCI_UT (Menu Program Chain table)
///
- public uint MenuProgramChainTableSectorPointer;
+ public uint MenuProgramChainTableSectorPointer { get; set; }
///
/// Sector pointer to VTS_TMAPTI (time map)
///
- public uint TimeMapSectorPointer;
+ public uint TimeMapSectorPointer { get; set; }
///
/// Sector pointer to VTSM_C_ADT (menu cell address table)
///
- public uint MenuCellAddressTableSectorPointer;
+ public uint MenuCellAddressTableSectorPointer { get; set; }
///
/// Sector pointer to VTSM_VOBU_ADMAP (menu VOBU address map)
///
- public uint MenuVOBUAddressMapSectorPointer;
+ public uint MenuVOBUAddressMapSectorPointer { get; set; }
///
/// Sector pointer to VTS_C_ADT (title set cell address table)
///
- public uint TitleSetCellAddressTableSectorPointer;
+ public uint TitleSetCellAddressTableSectorPointer { get; set; }
///
/// Sector pointer to VTS_VOBU_ADMAP (title set VOBU address map)
///
- public uint TitleSetVOBUAddressMapSectorPointer;
+ public uint TitleSetVOBUAddressMapSectorPointer { get; set; }
///
/// Video attributes of VTSM_VOBS
///
#if NET48
- public byte[] VideoAttributes;
+ public byte[] VideoAttributes { get; set; }
#else
- public byte[]? VideoAttributes;
+ public byte[]? VideoAttributes { get; set; }
#endif
///
/// Number of audio streams in VTSM_VOBS
///
- public ushort NumberOfAudioStreams;
+ public ushort NumberOfAudioStreams { get; set; }
///
/// Audio attributes of VTSM_VOBS
///
#if NET48
- public byte[][] AudioAttributes;
+ public byte[][] AudioAttributes { get; set; }
#else
- public byte[][]? AudioAttributes;
+ public byte[][]? AudioAttributes { get; set; }
#endif
///
/// Unknown
///
#if NET48
- public byte[] Unknown;
+ public byte[] Unknown { get; set; }
#else
- public byte[]? Unknown;
+ public byte[]? Unknown { get; set; }
#endif
///
/// Number of subpicture streams in VTSM_VOBS (0 or 1)
///
- public ushort NumberOfSubpictureStreams;
+ public ushort NumberOfSubpictureStreams { get; set; }
///
/// Subpicture attributes of VTSM_VOBS
///
#if NET48
- public byte[] SubpictureAttributes;
+ public byte[] SubpictureAttributes { get; set; }
#else
- public byte[]? SubpictureAttributes;
+ public byte[]? SubpictureAttributes { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/GCF/BlockEntry.cs b/GCF/BlockEntry.cs
index 529c04d..f029237 100644
--- a/GCF/BlockEntry.cs
+++ b/GCF/BlockEntry.cs
@@ -6,36 +6,36 @@ namespace SabreTools.Models.GCF
///
/// Flags for the block entry. 0x200F0000 == Not used.
///
- public uint EntryFlags;
+ public uint EntryFlags { get; set; }
///
/// The offset for the data contained in this block entry in the file.
///
- public uint FileDataOffset;
+ public uint FileDataOffset { get; set; }
///
/// The length of the data in this block entry.
///
- public uint FileDataSize;
+ public uint FileDataSize { get; set; }
///
/// The offset to the first data block of this block entry's data.
///
- public uint FirstDataBlockIndex;
+ public uint FirstDataBlockIndex { get; set; }
///
/// The next block entry in the series. (N/A if == BlockCount.)
///
- public uint NextBlockEntryIndex;
+ public uint NextBlockEntryIndex { get; set; }
///
/// The previous block entry in the series. (N/A if == BlockCount.)
///
- public uint PreviousBlockEntryIndex;
+ public uint PreviousBlockEntryIndex { get; set; }
///
/// The offset of the block entry in the directory.
///
- public uint DirectoryIndex;
+ public uint DirectoryIndex { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/BlockEntryHeader.cs b/GCF/BlockEntryHeader.cs
index 0f1f691..136da4c 100644
--- a/GCF/BlockEntryHeader.cs
+++ b/GCF/BlockEntryHeader.cs
@@ -6,41 +6,41 @@ namespace SabreTools.Models.GCF
///
/// Number of data blocks.
///
- public uint BlockCount;
+ public uint BlockCount { get; set; }
///
/// Number of data blocks that point to data.
///
- public uint BlocksUsed;
+ public uint BlocksUsed { get; set; }
///
/// Reserved
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Reserved
///
- public uint Dummy1;
+ public uint Dummy1 { get; set; }
///
/// Reserved
///
- public uint Dummy2;
+ public uint Dummy2 { get; set; }
///
/// Reserved
///
- public uint Dummy3;
+ public uint Dummy3 { get; set; }
///
/// Reserved
///
- public uint Dummy4;
+ public uint Dummy4 { get; set; }
///
/// Header checksum.
///
- public uint Checksum;
+ public uint Checksum { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/BlockEntryMap.cs b/GCF/BlockEntryMap.cs
index 96a38b3..edeaea0 100644
--- a/GCF/BlockEntryMap.cs
+++ b/GCF/BlockEntryMap.cs
@@ -9,11 +9,11 @@ namespace SabreTools.Models.GCF
///
/// The previous block entry. (N/A if == BlockCount.)
///
- public uint PreviousBlockEntryIndex;
+ public uint PreviousBlockEntryIndex { get; set; }
///
/// The next block entry. (N/A if == BlockCount.)
///
- public uint NextBlockEntryIndex;
+ public uint NextBlockEntryIndex { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/BlockEntryMapHeader.cs b/GCF/BlockEntryMapHeader.cs
index 70e03b1..6397c47 100644
--- a/GCF/BlockEntryMapHeader.cs
+++ b/GCF/BlockEntryMapHeader.cs
@@ -9,26 +9,26 @@ namespace SabreTools.Models.GCF
///
/// Number of data blocks.
///
- public uint BlockCount;
+ public uint BlockCount { get; set; }
///
/// Index of the first block entry.
///
- public uint FirstBlockEntryIndex;
+ public uint FirstBlockEntryIndex { get; set; }
///
/// Index of the last block entry.
///
- public uint LastBlockEntryIndex;
+ public uint LastBlockEntryIndex { get; set; }
///
/// Reserved
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Header checksum.
///
- public uint Checksum;
+ public uint Checksum { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/ChecksumEntry.cs b/GCF/ChecksumEntry.cs
index 080be2d..567c86f 100644
--- a/GCF/ChecksumEntry.cs
+++ b/GCF/ChecksumEntry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.GCF
///
/// Checksum.
///
- public uint Checksum;
+ public uint Checksum { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/ChecksumHeader.cs b/GCF/ChecksumHeader.cs
index 5e6a15e..f30d664 100644
--- a/GCF/ChecksumHeader.cs
+++ b/GCF/ChecksumHeader.cs
@@ -6,11 +6,11 @@ namespace SabreTools.Models.GCF
///
/// Always 0x00000001
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Size of LPGCFCHECKSUMHEADER & LPGCFCHECKSUMMAPHEADER & in bytes.
///
- public uint ChecksumSize;
+ public uint ChecksumSize { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/ChecksumMapEntry.cs b/GCF/ChecksumMapEntry.cs
index 29084c2..72a6049 100644
--- a/GCF/ChecksumMapEntry.cs
+++ b/GCF/ChecksumMapEntry.cs
@@ -6,11 +6,11 @@ namespace SabreTools.Models.GCF
///
/// Number of checksums.
///
- public uint ChecksumCount;
+ public uint ChecksumCount { get; set; }
///
/// Index of first checksum.
///
- public uint FirstChecksumIndex;
+ public uint FirstChecksumIndex { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/ChecksumMapHeader.cs b/GCF/ChecksumMapHeader.cs
index 567689b..355ace8 100644
--- a/GCF/ChecksumMapHeader.cs
+++ b/GCF/ChecksumMapHeader.cs
@@ -6,21 +6,21 @@ namespace SabreTools.Models.GCF
///
/// Always 0x14893721
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Always 0x00000001
///
- public uint Dummy1;
+ public uint Dummy1 { get; set; }
///
/// Number of items.
///
- public uint ItemCount;
+ public uint ItemCount { get; set; }
///
/// Number of checksums.
///
- public uint ChecksumCount;
+ public uint ChecksumCount { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/DataBlockHeader.cs b/GCF/DataBlockHeader.cs
index 27f61b8..8014b5f 100644
--- a/GCF/DataBlockHeader.cs
+++ b/GCF/DataBlockHeader.cs
@@ -6,31 +6,31 @@ namespace SabreTools.Models.GCF
///
/// GCF file version. This field is not part of all file versions.
///
- public uint LastVersionPlayed;
+ public uint LastVersionPlayed { get; set; }
///
/// Number of data blocks.
///
- public uint BlockCount;
+ public uint BlockCount { get; set; }
///
/// Size of each data block in bytes.
///
- public uint BlockSize;
+ public uint BlockSize { get; set; }
///
/// Offset to first data block.
///
- public uint FirstBlockOffset;
+ public uint FirstBlockOffset { get; set; }
///
/// Number of data blocks that contain data.
///
- public uint BlocksUsed;
+ public uint BlocksUsed { get; set; }
///
/// Header checksum.
///
- public uint Checksum;
+ public uint Checksum { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/DirectoryCopyEntry.cs b/GCF/DirectoryCopyEntry.cs
index 233c135..b85349e 100644
--- a/GCF/DirectoryCopyEntry.cs
+++ b/GCF/DirectoryCopyEntry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.GCF
///
/// Index of the directory item.
///
- public uint DirectoryIndex;
+ public uint DirectoryIndex { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/DirectoryEntry.cs b/GCF/DirectoryEntry.cs
index 1ab2298..2e26e9b 100644
--- a/GCF/DirectoryEntry.cs
+++ b/GCF/DirectoryEntry.cs
@@ -6,45 +6,45 @@ namespace SabreTools.Models.GCF
///
/// Offset to the directory item name from the end of the directory items.
///
- public uint NameOffset;
+ public uint NameOffset { get; set; }
///
/// Directory item name from the end of the directory items.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
/// Size of the item. (If file, file size. If folder, num items.)
///
- public uint ItemSize;
+ public uint ItemSize { get; set; }
///
/// Checksome index. (0xFFFFFFFF == None).
///
- public uint ChecksumIndex;
+ public uint ChecksumIndex { get; set; }
///
/// Flags for the directory item. (0x00000000 == Folder).
///
- public HL_GCF_FLAG DirectoryFlags;
+ public HL_GCF_FLAG DirectoryFlags { get; set; }
///
/// Index of the parent directory item. (0xFFFFFFFF == None).
///
- public uint ParentIndex;
+ public uint ParentIndex { get; set; }
///
/// Index of the next directory item. (0x00000000 == None).
///
- public uint NextIndex;
+ public uint NextIndex { get; set; }
///
/// Index of the first directory item. (0x00000000 == None).
///
- public uint FirstIndex;
+ public uint FirstIndex { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/DirectoryHeader.cs b/GCF/DirectoryHeader.cs
index e9cdc31..26b9db8 100644
--- a/GCF/DirectoryHeader.cs
+++ b/GCF/DirectoryHeader.cs
@@ -6,71 +6,71 @@ namespace SabreTools.Models.GCF
///
/// Always 0x00000004
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Cache ID.
///
- public uint CacheID;
+ public uint CacheID { get; set; }
///
/// GCF file version.
///
- public uint LastVersionPlayed;
+ public uint LastVersionPlayed { get; set; }
///
/// Number of items in the directory.
///
- public uint ItemCount;
+ public uint ItemCount { get; set; }
///
/// Number of files in the directory.
///
- public uint FileCount;
+ public uint FileCount { get; set; }
///
/// Always 0x00008000. Data per checksum?
///
- public uint Dummy1;
+ public uint Dummy1 { get; set; }
///
/// Size of lpGCFDirectoryEntries & lpGCFDirectoryNames & lpGCFDirectoryInfo1Entries & lpGCFDirectoryInfo2Entries & lpGCFDirectoryCopyEntries & lpGCFDirectoryLocalEntries in bytes.
///
- public uint DirectorySize;
+ public uint DirectorySize { get; set; }
///
/// Size of the directory names in bytes.
///
- public uint NameSize;
+ public uint NameSize { get; set; }
///
/// Number of Info1 entires.
///
- public uint Info1Count;
+ public uint Info1Count { get; set; }
///
/// Number of files to copy.
///
- public uint CopyCount;
+ public uint CopyCount { get; set; }
///
/// Number of files to keep local.
///
- public uint LocalCount;
+ public uint LocalCount { get; set; }
///
/// Reserved
///
- public uint Dummy2;
+ public uint Dummy2 { get; set; }
///
/// Reserved
///
- public uint Dummy3;
+ public uint Dummy3 { get; set; }
///
/// Header checksum.
///
- public uint Checksum;
+ public uint Checksum { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/DirectoryInfo1Entry.cs b/GCF/DirectoryInfo1Entry.cs
index 0bd6d62..cd71778 100644
--- a/GCF/DirectoryInfo1Entry.cs
+++ b/GCF/DirectoryInfo1Entry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.GCF
///
/// Reserved
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/DirectoryInfo2Entry.cs b/GCF/DirectoryInfo2Entry.cs
index 60184c0..1e5a1f6 100644
--- a/GCF/DirectoryInfo2Entry.cs
+++ b/GCF/DirectoryInfo2Entry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.GCF
///
/// Reserved
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/DirectoryLocalEntry.cs b/GCF/DirectoryLocalEntry.cs
index d37776d..6defe47 100644
--- a/GCF/DirectoryLocalEntry.cs
+++ b/GCF/DirectoryLocalEntry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.GCF
///
/// Index of the directory item.
///
- public uint DirectoryIndex;
+ public uint DirectoryIndex { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/DirectoryMapEntry.cs b/GCF/DirectoryMapEntry.cs
index c7dd152..609c607 100644
--- a/GCF/DirectoryMapEntry.cs
+++ b/GCF/DirectoryMapEntry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.GCF
///
/// Index of the first data block. (N/A if == BlockCount.)
///
- public uint FirstBlockIndex;
+ public uint FirstBlockIndex { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/DirectoryMapHeader.cs b/GCF/DirectoryMapHeader.cs
index ee3a868..a3a0173 100644
--- a/GCF/DirectoryMapHeader.cs
+++ b/GCF/DirectoryMapHeader.cs
@@ -9,11 +9,11 @@ namespace SabreTools.Models.GCF
///
/// Always 0x00000001
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Always 0x00000000
///
- public uint Dummy1;
+ public uint Dummy1 { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/FragmentationMap.cs b/GCF/FragmentationMap.cs
index e17a1a6..e761b41 100644
--- a/GCF/FragmentationMap.cs
+++ b/GCF/FragmentationMap.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.GCF
///
/// The index of the next data block.
///
- public uint NextDataBlockIndex;
+ public uint NextDataBlockIndex { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/FragmentationMapHeader.cs b/GCF/FragmentationMapHeader.cs
index 30ed716..c639a0a 100644
--- a/GCF/FragmentationMapHeader.cs
+++ b/GCF/FragmentationMapHeader.cs
@@ -6,21 +6,21 @@ namespace SabreTools.Models.GCF
///
/// Number of data blocks.
///
- public uint BlockCount;
+ public uint BlockCount { get; set; }
///
/// The index of the first unused fragmentation map entry.
///
- public uint FirstUnusedEntry;
+ public uint FirstUnusedEntry { get; set; }
///
/// The block entry terminator; 0 = 0x0000ffff or 1 = 0xffffffff.
///
- public uint Terminator;
+ public uint Terminator { get; set; }
///
/// Header checksum.
///
- public uint Checksum;
+ public uint Checksum { get; set; }
}
}
\ No newline at end of file
diff --git a/GCF/Header.cs b/GCF/Header.cs
index 6853522..553f9f9 100644
--- a/GCF/Header.cs
+++ b/GCF/Header.cs
@@ -6,56 +6,56 @@ namespace SabreTools.Models.GCF
///
/// Always 0x00000001
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Always 0x00000001
///
- public uint MajorVersion;
+ public uint MajorVersion { get; set; }
///
/// GCF version number.
///
- public uint MinorVersion;
+ public uint MinorVersion { get; set; }
///
/// Cache ID
///
- public uint CacheID;
+ public uint CacheID { get; set; }
///
/// Last version played
///
- public uint LastVersionPlayed;
+ public uint LastVersionPlayed { get; set; }
///
/// Reserved
///
- public uint Dummy1;
+ public uint Dummy1 { get; set; }
///
/// Reserved
///
- public uint Dummy2;
+ public uint Dummy2 { get; set; }
///
/// Total size of GCF file in bytes.
///
- public uint FileSize;
+ public uint FileSize { get; set; }
///
/// Size of each data block in bytes.
///
- public uint BlockSize;
+ public uint BlockSize { get; set; }
///
/// Number of data blocks.
///
- public uint BlockCount;
+ public uint BlockCount { get; set; }
///
/// Reserved
///
- public uint Dummy3;
+ public uint Dummy3 { get; set; }
}
}
\ No newline at end of file
diff --git a/InstallShieldCabinet/CommonHeader.cs b/InstallShieldCabinet/CommonHeader.cs
index a7cd375..9556d35 100644
--- a/InstallShieldCabinet/CommonHeader.cs
+++ b/InstallShieldCabinet/CommonHeader.cs
@@ -7,29 +7,29 @@ namespace SabreTools.Models.InstallShieldCabinet
/// "ISc("
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Encoded version
///
- public uint Version;
+ public uint Version { get; set; }
///
/// Volume information
///
- public uint VolumeInfo;
+ public uint VolumeInfo { get; set; }
///
/// Offset to cabinet descriptor
///
- public uint DescriptorOffset;
+ public uint DescriptorOffset { get; set; }
///
/// Cabinet descriptor size
///
- public uint DescriptorSize;
+ public uint DescriptorSize { get; set; }
}
}
\ No newline at end of file
diff --git a/InstallShieldCabinet/Component.cs b/InstallShieldCabinet/Component.cs
index 4b83540..fbe700a 100644
--- a/InstallShieldCabinet/Component.cs
+++ b/InstallShieldCabinet/Component.cs
@@ -8,198 +8,198 @@ namespace SabreTools.Models.InstallShieldCabinet
///
/// Offset to the component identifier
///
- public uint IdentifierOffset;
+ public uint IdentifierOffset { get; set; }
///
/// Component identifier
///
#if NET48
- public string Identifier;
+ public string Identifier { get; set; }
#else
- public string? Identifier;
+ public string? Identifier { get; set; }
#endif
///
/// Offset to the component descriptor
///
- public uint DescriptorOffset;
+ public uint DescriptorOffset { get; set; }
///
/// Offset to the display name
///
- public uint DisplayNameOffset;
+ public uint DisplayNameOffset { get; set; }
///
/// Display name
///
#if NET48
- public string DisplayName;
+ public string DisplayName { get; set; }
#else
- public string? DisplayName;
+ public string? DisplayName { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved0;
+ public byte[] Reserved0 { get; set; }
#else
- public byte[]? Reserved0;
+ public byte[]? Reserved0 { get; set; }
#endif
///
/// Reserved offset
///
- public uint ReservedOffset0;
+ public uint ReservedOffset0 { get; set; }
///
/// Reserved offset
///
- public uint ReservedOffset1;
+ public uint ReservedOffset1 { get; set; }
///
/// Component index
///
- public ushort ComponentIndex;
+ public ushort ComponentIndex { get; set; }
///
/// Offset to the component name
///
- public uint NameOffset;
+ public uint NameOffset { get; set; }
///
/// Component name
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
/// Reserved offset
///
- public uint ReservedOffset2;
+ public uint ReservedOffset2 { get; set; }
///
/// Reserved offset
///
- public uint ReservedOffset3;
+ public uint ReservedOffset3 { get; set; }
///
/// Reserved offset
///
- public uint ReservedOffset4;
+ public uint ReservedOffset4 { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved1;
+ public byte[] Reserved1 { get; set; }
#else
- public byte[]? Reserved1;
+ public byte[]? Reserved1 { get; set; }
#endif
///
/// Offset to the component CLSID
///
- public uint CLSIDOffset;
+ public uint CLSIDOffset { get; set; }
///
/// Component CLSID
///
- public Guid CLSID;
+ public Guid CLSID { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved3;
+ public byte[] Reserved3 { get; set; }
#else
- public byte[]? Reserved3;
+ public byte[]? Reserved3 { get; set; }
#endif
///
/// Number of depends(?)
///
- public ushort DependsCount;
+ public ushort DependsCount { get; set; }
///
/// Offset to depends(?)
///
- public uint DependsOffset;
+ public uint DependsOffset { get; set; }
///
/// Number of file groups
///
- public uint FileGroupCount;
+ public uint FileGroupCount { get; set; }
///
/// Offset to the file group names
///
- public uint FileGroupNamesOffset;
+ public uint FileGroupNamesOffset { get; set; }
///
/// File group names
///
#if NET48
- public string[] FileGroupNames;
+ public string[] FileGroupNames { get; set; }
#else
- public string[]? FileGroupNames;
+ public string[]? FileGroupNames { get; set; }
#endif
///
/// Number of X3(?)
///
- public ushort X3Count;
+ public ushort X3Count { get; set; }
///
/// Offset to X3(?)
///
- public uint X3Offset;
+ public uint X3Offset { get; set; }
///
/// Number of sub-components
///
- public ushort SubComponentsCount;
+ public ushort SubComponentsCount { get; set; }
///
/// Offset to the sub-components
///
- public uint SubComponentsOffset;
+ public uint SubComponentsOffset { get; set; }
///
/// Offset to the next component
///
- public uint NextComponentOffset;
+ public uint NextComponentOffset { get; set; }
///
/// Reserved offset
///
- public uint ReservedOffset5;
+ public uint ReservedOffset5 { get; set; }
///
/// Reserved offset
///
- public uint ReservedOffset6;
+ public uint ReservedOffset6 { get; set; }
///
/// Reserved offset
///
- public uint ReservedOffset7;
+ public uint ReservedOffset7 { get; set; }
///
/// Reserved offset
///
- public uint ReservedOffset8;
+ public uint ReservedOffset8 { get; set; }
}
}
\ No newline at end of file
diff --git a/InstallShieldCabinet/Descriptor.cs b/InstallShieldCabinet/Descriptor.cs
index a5db3bf..ed5d9a2 100644
--- a/InstallShieldCabinet/Descriptor.cs
+++ b/InstallShieldCabinet/Descriptor.cs
@@ -6,160 +6,160 @@ namespace SabreTools.Models.InstallShieldCabinet
///
/// Offset to the descriptor strings
///
- public uint StringsOffset;
+ public uint StringsOffset { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved0;
+ public byte[] Reserved0 { get; set; }
#else
- public byte[]? Reserved0;
+ public byte[]? Reserved0 { get; set; }
#endif
///
/// Offset to the component list
///
- public uint ComponentListOffset;
+ public uint ComponentListOffset { get; set; }
///
/// Offset to the file table
///
- public uint FileTableOffset;
+ public uint FileTableOffset { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved1;
+ public byte[] Reserved1 { get; set; }
#else
- public byte[]? Reserved1;
+ public byte[]? Reserved1 { get; set; }
#endif
///
/// Size of the file table
///
- public uint FileTableSize;
+ public uint FileTableSize { get; set; }
///
/// Redundant size of the file table
///
- public uint FileTableSize2;
+ public uint FileTableSize2 { get; set; }
///
/// Number of directories
///
- public ushort DirectoryCount;
+ public ushort DirectoryCount { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved3;
+ public byte[] Reserved3 { get; set; }
#else
- public byte[]? Reserved3;
+ public byte[]? Reserved3 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved4;
+ public byte[] Reserved4 { get; set; }
#else
- public byte[]? Reserved4;
+ public byte[]? Reserved4 { get; set; }
#endif
///
/// Number of files
///
- public uint FileCount;
+ public uint FileCount { get; set; }
///
/// Redundant offset to the file table
///
- public uint FileTableOffset2;
+ public uint FileTableOffset2 { get; set; }
///
/// Number of component table infos
///
- public ushort ComponentTableInfoCount;
+ public ushort ComponentTableInfoCount { get; set; }
///
/// Offset to the component table
///
- public uint ComponentTableOffset;
+ public uint ComponentTableOffset { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved5;
+ public byte[] Reserved5 { get; set; }
#else
- public byte[]? Reserved5;
+ public byte[]? Reserved5 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved6;
+ public byte[] Reserved6 { get; set; }
#else
- public byte[]? Reserved6;
+ public byte[]? Reserved6 { get; set; }
#endif
///
/// Offsets to the file groups
///
#if NET48
- public uint[] FileGroupOffsets;
+ public uint[] FileGroupOffsets { get; set; }
#else
- public uint[]? FileGroupOffsets;
+ public uint[]? FileGroupOffsets { get; set; }
#endif
///
/// Offsets to the components
///
#if NET48
- public uint[] ComponentOffsets;
+ public uint[] ComponentOffsets { get; set; }
#else
- public uint[]? ComponentOffsets;
+ public uint[]? ComponentOffsets { get; set; }
#endif
///
/// Offset to the setup types
///
- public uint SetupTypesOffset;
+ public uint SetupTypesOffset { get; set; }
///
/// Offset to the setup table
///
- public uint SetupTableOffset;
+ public uint SetupTableOffset { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved7;
+ public byte[] Reserved7 { get; set; }
#else
- public byte[]? Reserved7;
+ public byte[]? Reserved7 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved8;
+ public byte[] Reserved8 { get; set; }
#else
- public byte[]? Reserved8;
+ public byte[]? Reserved8 { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/InstallShieldCabinet/FileDescriptor.cs b/InstallShieldCabinet/FileDescriptor.cs
index fdcd3f4..e06ade6 100644
--- a/InstallShieldCabinet/FileDescriptor.cs
+++ b/InstallShieldCabinet/FileDescriptor.cs
@@ -6,69 +6,69 @@ namespace SabreTools.Models.InstallShieldCabinet
///
/// Offset to the file descriptor name
///
- public uint NameOffset;
+ public uint NameOffset { get; set; }
///
/// File descriptor name
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
/// Directory index
///
- public uint DirectoryIndex;
+ public uint DirectoryIndex { get; set; }
///
/// File flags
///
- public FileFlags Flags;
+ public FileFlags Flags { get; set; }
///
/// Size of the entry when expanded
///
- public ulong ExpandedSize;
+ public ulong ExpandedSize { get; set; }
///
/// Size of the entry when compressed
///
- public ulong CompressedSize;
+ public ulong CompressedSize { get; set; }
///
/// Offset to the entry data
///
- public ulong DataOffset;
+ public ulong DataOffset { get; set; }
///
/// MD5 of the entry data
///
#if NET48
- public byte[] MD5;
+ public byte[] MD5 { get; set; }
#else
- public byte[]? MD5;
+ public byte[]? MD5 { get; set; }
#endif
///
/// Volume number
///
- public ushort Volume;
+ public ushort Volume { get; set; }
///
/// Link previous
///
- public uint LinkPrevious;
+ public uint LinkPrevious { get; set; }
///
/// Link next
///
- public uint LinkNext;
+ public uint LinkNext { get; set; }
///
/// Link flags
///
- public LinkFlags LinkFlags;
+ public LinkFlags LinkFlags { get; set; }
}
}
\ No newline at end of file
diff --git a/InstallShieldCabinet/FileGroup.cs b/InstallShieldCabinet/FileGroup.cs
index f93f1b7..a322123 100644
--- a/InstallShieldCabinet/FileGroup.cs
+++ b/InstallShieldCabinet/FileGroup.cs
@@ -6,157 +6,157 @@ namespace SabreTools.Models.InstallShieldCabinet
///
/// Offset to the file group name
///
- public uint NameOffset;
+ public uint NameOffset { get; set; }
///
/// File group name
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
/// Size of the expanded data
///
- public uint ExpandedSize;
+ public uint ExpandedSize { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved0;
+ public byte[] Reserved0 { get; set; }
#else
- public byte[]? Reserved0;
+ public byte[]? Reserved0 { get; set; }
#endif
///
/// Size of the compressed data
///
- public uint CompressedSize;
+ public uint CompressedSize { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved1;
+ public byte[] Reserved1 { get; set; }
#else
- public byte[]? Reserved1;
+ public byte[]? Reserved1 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
/// Attribute(?)
///
- public ushort Attribute1;
+ public ushort Attribute1 { get; set; }
///
/// Attribute(?)
///
- public ushort Attribute2;
+ public ushort Attribute2 { get; set; }
///
/// Index of the first file
///
- public uint FirstFile;
+ public uint FirstFile { get; set; }
///
/// Index of the last file
///
- public uint LastFile;
+ public uint LastFile { get; set; }
///
/// Unknown offset(?)
///
- public uint UnknownOffset;
+ public uint UnknownOffset { get; set; }
///
/// Var 4 offset(?)
///
- public uint Var4Offset;
+ public uint Var4Offset { get; set; }
///
/// Var 1 offset(?)
///
- public uint Var1Offset;
+ public uint Var1Offset { get; set; }
///
/// Offset to the HTTP location
///
- public uint HTTPLocationOffset;
+ public uint HTTPLocationOffset { get; set; }
///
/// Offset to the FTP location
///
- public uint FTPLocationOffset;
+ public uint FTPLocationOffset { get; set; }
///
/// Misc offset(?)
///
- public uint MiscOffset;
+ public uint MiscOffset { get; set; }
///
/// Var 2 offset(?)
///
- public uint Var2Offset;
+ public uint Var2Offset { get; set; }
///
/// Offset to the target directory
///
- public uint TargetDirectoryOffset;
+ public uint TargetDirectoryOffset { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved3;
+ public byte[] Reserved3 { get; set; }
#else
- public byte[]? Reserved3;
+ public byte[]? Reserved3 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved4;
+ public byte[] Reserved4 { get; set; }
#else
- public byte[]? Reserved4;
+ public byte[]? Reserved4 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved5;
+ public byte[] Reserved5 { get; set; }
#else
- public byte[]? Reserved5;
+ public byte[]? Reserved5 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved6;
+ public byte[] Reserved6 { get; set; }
#else
- public byte[]? Reserved6;
+ public byte[]? Reserved6 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved7;
+ public byte[] Reserved7 { get; set; }
#else
- public byte[]? Reserved7;
+ public byte[]? Reserved7 { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/InstallShieldCabinet/OffsetList.cs b/InstallShieldCabinet/OffsetList.cs
index 90dd8ab..c806cd7 100644
--- a/InstallShieldCabinet/OffsetList.cs
+++ b/InstallShieldCabinet/OffsetList.cs
@@ -3,16 +3,16 @@ namespace SabreTools.Models.InstallShieldCabinet
///
public sealed class OffsetList
{
- public uint NameOffset;
+ public uint NameOffset { get; set; }
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
- public uint DescriptorOffset;
+ public uint DescriptorOffset { get; set; }
- public uint NextOffset;
+ public uint NextOffset { get; set; }
}
}
\ No newline at end of file
diff --git a/InstallShieldCabinet/VolumeHeader.cs b/InstallShieldCabinet/VolumeHeader.cs
index a894d60..271567d 100644
--- a/InstallShieldCabinet/VolumeHeader.cs
+++ b/InstallShieldCabinet/VolumeHeader.cs
@@ -4,36 +4,36 @@ namespace SabreTools.Models.InstallShieldCabinet
/// TODO: Should standard and high values be combined?
public sealed class VolumeHeader
{
- public uint DataOffset;
+ public uint DataOffset { get; set; }
- public uint DataOffsetHigh;
+ public uint DataOffsetHigh { get; set; }
- public uint FirstFileIndex;
+ public uint FirstFileIndex { get; set; }
- public uint LastFileIndex;
+ public uint LastFileIndex { get; set; }
- public uint FirstFileOffset;
+ public uint FirstFileOffset { get; set; }
- public uint FirstFileOffsetHigh;
+ public uint FirstFileOffsetHigh { get; set; }
- public uint FirstFileSizeExpanded;
+ public uint FirstFileSizeExpanded { get; set; }
- public uint FirstFileSizeExpandedHigh;
+ public uint FirstFileSizeExpandedHigh { get; set; }
- public uint FirstFileSizeCompressed;
+ public uint FirstFileSizeCompressed { get; set; }
- public uint FirstFileSizeCompressedHigh;
+ public uint FirstFileSizeCompressedHigh { get; set; }
- public uint LastFileOffset;
+ public uint LastFileOffset { get; set; }
- public uint LastFileOffsetHigh;
+ public uint LastFileOffsetHigh { get; set; }
- public uint LastFileSizeExpanded;
+ public uint LastFileSizeExpanded { get; set; }
- public uint LastFileSizeExpandedHigh;
+ public uint LastFileSizeExpandedHigh { get; set; }
- public uint LastFileSizeCompressed;
+ public uint LastFileSizeCompressed { get; set; }
- public uint LastFileSizeCompressedHigh;
+ public uint LastFileSizeCompressedHigh { get; set; }
}
}
\ No newline at end of file
diff --git a/LinearExecutable/DebugInformation.cs b/LinearExecutable/DebugInformation.cs
index 9fd0a4d..6725430 100644
--- a/LinearExecutable/DebugInformation.cs
+++ b/LinearExecutable/DebugInformation.cs
@@ -20,16 +20,16 @@ namespace SabreTools.Models.LinearExecutable
/// The signature consists of a string of three (3) ASCII characters: "NB0"
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// This defines the type of debugger data that exists in the remainder of the
/// debug information.
///
- public DebugFormatType FormatType;
+ public DebugFormatType FormatType { get; set; }
///
/// 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.
///
#if NET48
- public byte[] DebuggerData;
+ public byte[] DebuggerData { get; set; }
#else
- public byte[]? DebuggerData;
+ public byte[]? DebuggerData { get; set; }
#endif
}
}
diff --git a/LinearExecutable/EntryTableBundle.cs b/LinearExecutable/EntryTableBundle.cs
index 52ce60d..9893ad2 100644
--- a/LinearExecutable/EntryTableBundle.cs
+++ b/LinearExecutable/EntryTableBundle.cs
@@ -44,20 +44,20 @@ namespace SabreTools.Models.LinearExecutable
/// this number of times.
/// For , this field is reserved for future use.
///
- public byte Entries;
+ public byte Entries { get; set; }
///
/// This defines the bundle type which determines the contents of the BUNDLE INFO.
///
- public BundleType BundleType;
+ public BundleType BundleType { get; set; }
///
/// Table entries in the bundle
///
#if NET48
- public EntryTableEntry[] TableEntries;
+ public EntryTableEntry[] TableEntries { get; set; }
#else
- public EntryTableEntry?[]? TableEntries;
+ public EntryTableEntry?[]? TableEntries { get; set; }
#endif
}
}
diff --git a/LinearExecutable/FixupPageTableEntry.cs b/LinearExecutable/FixupPageTableEntry.cs
index b224fee..b1279ee 100644
--- a/LinearExecutable/FixupPageTableEntry.cs
+++ b/LinearExecutable/FixupPageTableEntry.cs
@@ -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)
///
- public uint Offset;
+ public uint Offset { get; set; }
}
}
diff --git a/LinearExecutable/FixupRecordTableEntry.cs b/LinearExecutable/FixupRecordTableEntry.cs
index eccbc1d..3d06fec 100644
--- a/LinearExecutable/FixupRecordTableEntry.cs
+++ b/LinearExecutable/FixupRecordTableEntry.cs
@@ -20,7 +20,7 @@
/// The source type specifies the size and type of the fixup to be performed
/// on the fixup source.
///
- public FixupRecordSourceType SourceType;
+ public FixupRecordSourceType SourceType { get; set; }
///
/// Target Flags.
@@ -28,7 +28,7 @@
///
/// The target flags specify how the target information is interpreted.
///
- 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.)
///
- 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.)
///
- 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.
///
- 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.
///
- 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.
///
- 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.
///
- 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.
///
- 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.
///
- 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.
///
- 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.
///
- 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.
///
- 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.
///
- 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.
///
- 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.
///
- 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.
///
- public ushort AdditiveFixupValueWORD;
+ public ushort AdditiveFixupValueWORD { get; set; }
#endregion
@@ -357,9 +357,9 @@
/// fixups are to be made.
///
#if NET48
- public ushort[] SourceOffsetList;
+ public ushort[] SourceOffsetList { get; set; }
#else
- public ushort[]? SourceOffsetList;
+ public ushort[]? SourceOffsetList { get; set; }
#endif
#endregion
diff --git a/LinearExecutable/ImportModuleNameTableEntry.cs b/LinearExecutable/ImportModuleNameTableEntry.cs
index 8f80e32..7ef82d0 100644
--- a/LinearExecutable/ImportModuleNameTableEntry.cs
+++ b/LinearExecutable/ImportModuleNameTableEntry.cs
@@ -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.
///
- public byte Length;
+ public byte Length { get; set; }
///
/// ASCII String.
@@ -37,9 +37,9 @@ namespace SabreTools.Models.LinearExecutable
/// the LEN field. The string is case sensitive and is not null terminated.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
}
}
diff --git a/LinearExecutable/ImportProcedureNameTableEntry.cs b/LinearExecutable/ImportProcedureNameTableEntry.cs
index 4744893..fa26d2f 100644
--- a/LinearExecutable/ImportProcedureNameTableEntry.cs
+++ b/LinearExecutable/ImportProcedureNameTableEntry.cs
@@ -35,7 +35,7 @@ namespace SabreTools.Models.LinearExecutable
/// linear EXE module and will be used in the future for parameter type
/// checking.
///
- public byte Length;
+ public byte Length { get; set; }
///
/// ASCII String.
@@ -45,9 +45,9 @@ namespace SabreTools.Models.LinearExecutable
/// the LEN field. The string is case sensitive and is not null terminated.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
}
}
diff --git a/LinearExecutable/InformationBlock.cs b/LinearExecutable/InformationBlock.cs
index 17fe5f3..b635376 100644
--- a/LinearExecutable/InformationBlock.cs
+++ b/LinearExecutable/InformationBlock.cs
@@ -25,9 +25,9 @@ namespace SabreTools.Models.LinearExecutable
/// file as a valid 32-bit Linear Executable Module Format.
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
@@ -36,7 +36,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This byte specifies the byte ordering for the linear EXE format.
///
- public ByteOrder ByteOrder;
+ public ByteOrder ByteOrder { get; set; }
///
/// Word Ordering.
@@ -44,7 +44,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This byte specifies the Word ordering for the linear EXE format.
///
- public WordOrder WordOrder;
+ public WordOrder WordOrder { get; set; }
///
/// 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.
///
- public uint ExecutableFormatLevel;
+ public uint ExecutableFormatLevel { get; set; }
///
/// Module CPU Type.
@@ -64,7 +64,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This field specifies the type of CPU required by this module to run.
///
- public CPUType CPUType;
+ public CPUType CPUType { get; set; }
///
/// Module OS Type.
@@ -72,7 +72,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This field specifies the type of Operating system required to run this module.
///
- public OperatingSystem ModuleOS;
+ public OperatingSystem ModuleOS { get; set; }
///
/// 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.
///
- public uint ModuleVersion;
+ public uint ModuleVersion { get; set; }
///
/// Module type flags
///
- public ModuleFlags ModuleTypeFlags;
+ public ModuleFlags ModuleTypeFlags { get; set; }
///
/// 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.
///
- public uint ModuleNumberPages;
+ public uint ModuleNumberPages { get; set; }
///
/// 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).
///
- public uint InitialObjectCS;
+ public uint InitialObjectCS { get; set; }
///
/// 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.
///
- public uint InitialEIP;
+ public uint InitialEIP { get; set; }
///
/// 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.
///
- public uint InitialObjectSS;
+ public uint InitialObjectSS { get; set; }
///
/// 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.
///
- public uint InitialESP;
+ public uint InitialESP { get; set; }
///
/// 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.)
///
- public uint MemoryPageSize;
+ public uint MemoryPageSize { get; set; }
///
/// 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.
///
- public uint BytesOnLastPage;
+ public uint BytesOnLastPage { get; set; }
///
/// Total size of the fixup information in bytes.
@@ -181,7 +181,7 @@ namespace SabreTools.Models.LinearExecutable
/// - Import Module name Table
/// - Import Procedure Name Table
///
- public uint FixupSectionSize;
+ public uint FixupSectionSize { get; set; }
///
/// 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.
///
- public uint FixupSectionChecksum;
+ public uint FixupSectionChecksum { get; set; }
///
/// 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.
///
- public uint LoaderSectionSize;
+ public uint LoaderSectionSize { get; set; }
///
/// 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.
///
- public uint LoaderSectionChecksum;
+ public uint LoaderSectionChecksum { get; set; }
///
/// Object Table offset.
@@ -220,7 +220,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint ObjectTableOffset;
+ public uint ObjectTableOffset { get; set; }
///
/// Object Table Count.
@@ -228,7 +228,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This defines the number of entries in Object Table.
///
- public uint ObjectTableCount;
+ public uint ObjectTableCount { get; set; }
///
/// Object Page Table offset
@@ -236,7 +236,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint ObjectPageMapOffset;
+ public uint ObjectPageMapOffset { get; set; }
///
/// Object Iterated Pages offset.
@@ -244,7 +244,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint ObjectIterateDataMapOffset;
+ public uint ObjectIterateDataMapOffset { get; set; }
///
/// Resource Table offset
@@ -252,12 +252,12 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint ResourceTableOffset;
+ public uint ResourceTableOffset { get; set; }
///
/// Number of entries in Resource Table.
///
- public uint ResourceTableCount;
+ public uint ResourceTableCount { get; set; }
///
/// Resident Name Table offset.
@@ -265,7 +265,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint ResidentNamesTableOffset;
+ public uint ResidentNamesTableOffset { get; set; }
///
/// Entry Table offset.
@@ -273,7 +273,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint EntryTableOffset;
+ public uint EntryTableOffset { get; set; }
///
/// Module Format Directives Table offset.
@@ -281,7 +281,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint ModuleDirectivesTableOffset;
+ public uint ModuleDirectivesTableOffset { get; set; }
///
/// 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.
///
- public uint ModuleDirectivesCount;
+ public uint ModuleDirectivesCount { get; set; }
///
/// Fixup Page Table offset.
@@ -298,7 +298,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint FixupPageTableOffset;
+ public uint FixupPageTableOffset { get; set; }
///
/// Fixup Record Table offset.
@@ -306,7 +306,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint FixupRecordTableOffset;
+ public uint FixupRecordTableOffset { get; set; }
///
/// Import Module Name Table offset.
@@ -314,12 +314,12 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint ImportedModulesNameTableOffset;
+ public uint ImportedModulesNameTableOffset { get; set; }
///
/// The number of entries in the Import Module Name Table.
///
- public uint ImportedModulesCount;
+ public uint ImportedModulesCount { get; set; }
///
/// Import Procedure Name Table offset.
@@ -327,7 +327,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint ImportProcedureNameTableOffset;
+ public uint ImportProcedureNameTableOffset { get; set; }
///
/// Per-page Checksum Table offset.
@@ -335,7 +335,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint PerPageChecksumTableOffset;
+ public uint PerPageChecksumTableOffset { get; set; }
///
/// Data Pages Offset.
@@ -343,7 +343,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the EXE file.
///
- public uint DataPagesOffset;
+ public uint DataPagesOffset { get; set; }
///
/// 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.
///
- public uint PreloadPageCount;
+ public uint PreloadPageCount { get; set; }
///
/// Non-Resident Name Table offset.
@@ -360,12 +360,12 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the EXE file.
///
- public uint NonResidentNamesTableOffset;
+ public uint NonResidentNamesTableOffset { get; set; }
///
/// Number of bytes in the Non-resident name table.
///
- public uint NonResidentNamesTableLength;
+ public uint NonResidentNamesTableLength { get; set; }
///
/// Non-Resident Name Table Checksum.
@@ -373,7 +373,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This is a cryptographic checksum of the Non-Resident Name Table.
///
- public uint NonResidentNamesTableChecksum;
+ public uint NonResidentNamesTableChecksum { get; set; }
///
/// 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.
///
- public uint AutomaticDataObject;
+ public uint AutomaticDataObject { get; set; }
///
/// Debug Information offset.
@@ -391,7 +391,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This offset is relative to the beginning of the linear EXE header.
///
- public uint DebugInformationOffset;
+ public uint DebugInformationOffset { get; set; }
///
/// Debug Information length.
@@ -399,7 +399,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// The length of the debug information in bytes.
///
- public uint DebugInformationLength;
+ public uint DebugInformationLength { get; set; }
///
/// Instance pages in preload section.
@@ -407,7 +407,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// The number of instance data pages found in the preload section.
///
- public uint PreloadInstancePagesNumber;
+ public uint PreloadInstancePagesNumber { get; set; }
///
/// Instance pages in demand section.
@@ -415,7 +415,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// The number of instance data pages found in the demand section.
///
- public uint DemandInstancePagesNumber;
+ public uint DemandInstancePagesNumber { get; set; }
///
/// 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.
///
- public uint ExtraHeapAllocation;
+ public uint ExtraHeapAllocation { get; set; }
}
}
diff --git a/LinearExecutable/ModuleFormatDirectivesTableEntry.cs b/LinearExecutable/ModuleFormatDirectivesTableEntry.cs
index 17d5609..9530351 100644
--- a/LinearExecutable/ModuleFormatDirectivesTableEntry.cs
+++ b/LinearExecutable/ModuleFormatDirectivesTableEntry.cs
@@ -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.
///
- public DirectiveNumber DirectiveNumber;
+ public DirectiveNumber DirectiveNumber { get; set; }
///
/// Directive data length.
@@ -33,7 +33,7 @@ namespace SabreTools.Models.LinearExecutable
///
/// This specifies the length in byte of the directive data for this directive number.
///
- public ushort DirectiveDataLength;
+ public ushort DirectiveDataLength { get; set; }
///
/// 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.
///
- public uint DirectiveDataOffset;
+ public uint DirectiveDataOffset { get; set; }
}
}
diff --git a/LinearExecutable/NonResidentNamesTableEntry.cs b/LinearExecutable/NonResidentNamesTableEntry.cs
index eef1bc4..f72c358 100644
--- a/LinearExecutable/NonResidentNamesTableEntry.cs
+++ b/LinearExecutable/NonResidentNamesTableEntry.cs
@@ -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.
///
- public byte Length;
+ public byte Length { get; set; }
///
/// ASCII String.
@@ -52,9 +52,9 @@ namespace SabreTools.Models.LinearExecutable
/// The string is case case sensitive and is not null terminated.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
@@ -63,6 +63,6 @@ namespace SabreTools.Models.LinearExecutable
///
/// The ordinal number in an ordered index into the entry table for this entry point.
///
- public ushort OrdinalNumber;
+ public ushort OrdinalNumber { get; set; }
}
}
diff --git a/LinearExecutable/ObjectPageMapEntry.cs b/LinearExecutable/ObjectPageMapEntry.cs
index cdeaf13..25f7525 100644
--- a/LinearExecutable/ObjectPageMapEntry.cs
+++ b/LinearExecutable/ObjectPageMapEntry.cs
@@ -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.
///
- public uint PageDataOffset;
+ public uint PageDataOffset { get; set; }
///
/// 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.
///
- public ushort DataSize;
+ public ushort DataSize { get; set; }
///
/// Attributes specifying characteristics of this logical page.
///
- public ObjectPageFlags Flags;
+ public ObjectPageFlags Flags { get; set; }
}
}
diff --git a/LinearExecutable/ObjectTableEntry.cs b/LinearExecutable/ObjectTableEntry.cs
index 9a1cbdb..acc15ed 100644
--- a/LinearExecutable/ObjectTableEntry.cs
+++ b/LinearExecutable/ObjectTableEntry.cs
@@ -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.
///
- public uint VirtualSegmentSize;
+ public uint VirtualSegmentSize { get; set; }
///
/// 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.
///
- public uint RelocationBaseAddress;
+ public uint RelocationBaseAddress { get; set; }
///
/// Flag bits for the object.
///
- public ObjectFlags ObjectFlags;
+ public ObjectFlags ObjectFlags { get; set; }
///
/// 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.
///
- public uint PageTableIndex;
+ public uint PageTableIndex { get; set; }
///
/// # 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.
///
- public uint PageTableEntries;
+ public uint PageTableEntries { get; set; }
///
/// Reserved for future use. Must be set to zero.
///
- public uint Reserved;
+ public uint Reserved { get; set; }
}
}
diff --git a/LinearExecutable/PerPageChecksumTableEntry.cs b/LinearExecutable/PerPageChecksumTableEntry.cs
index 5691007..c07ef92 100644
--- a/LinearExecutable/PerPageChecksumTableEntry.cs
+++ b/LinearExecutable/PerPageChecksumTableEntry.cs
@@ -19,6 +19,6 @@ namespace SabreTools.Models.LinearExecutable
///
/// Cryptographic checksum.
///
- public uint Checksum;
+ public uint Checksum { get; set; }
}
}
diff --git a/LinearExecutable/ResidentNamesTableEntry.cs b/LinearExecutable/ResidentNamesTableEntry.cs
index 63520e9..80e292b 100644
--- a/LinearExecutable/ResidentNamesTableEntry.cs
+++ b/LinearExecutable/ResidentNamesTableEntry.cs
@@ -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.
///
- public byte Length;
+ public byte Length { get; set; }
///
/// ASCII String.
@@ -52,9 +52,9 @@ namespace SabreTools.Models.LinearExecutable
/// The string is case case sensitive and is not null terminated.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
@@ -63,6 +63,6 @@ namespace SabreTools.Models.LinearExecutable
///
/// The ordinal number in an ordered index into the entry table for this entry point.
///
- public ushort OrdinalNumber;
+ public ushort OrdinalNumber { get; set; }
}
}
diff --git a/LinearExecutable/ResourceTableEntry.cs b/LinearExecutable/ResourceTableEntry.cs
index b6e8bf0..7c08b4e 100644
--- a/LinearExecutable/ResourceTableEntry.cs
+++ b/LinearExecutable/ResourceTableEntry.cs
@@ -21,26 +21,26 @@ namespace SabreTools.Models.LinearExecutable
///
/// Resource type ID.
///
- public ResourceTableEntryType TypeID;
+ public ResourceTableEntryType TypeID { get; set; }
///
/// An ID used as a name for the resource when referred to.
///
- public ushort NameID;
+ public ushort NameID { get; set; }
///
/// The number of bytes the resource consists of.
///
- public uint ResourceSize;
+ public uint ResourceSize { get; set; }
///
/// The number of the object which contains the resource.
///
- public ushort ObjectNumber;
+ public ushort ObjectNumber { get; set; }
///
/// The offset within the specified object where the resource begins.
///
- public uint Offset;
+ public uint Offset { get; set; }
}
}
diff --git a/LinearExecutable/VerifyRecordDirectiveTableEntry.cs b/LinearExecutable/VerifyRecordDirectiveTableEntry.cs
index 4c0c729..9b24b49 100644
--- a/LinearExecutable/VerifyRecordDirectiveTableEntry.cs
+++ b/LinearExecutable/VerifyRecordDirectiveTableEntry.cs
@@ -22,7 +22,7 @@ namespace SabreTools.Models.LinearExecutable
/// directive table. This is equal to the number of modules referenced by
/// this module.
///
- public ushort EntryCount;
+ public ushort EntryCount { get; set; }
///
/// 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.
///
- public ushort OrdinalIndex;
+ public ushort OrdinalIndex { get; set; }
///
/// Module Version.
@@ -44,7 +44,7 @@ namespace SabreTools.Models.LinearExecutable
/// number in a module to be incremented anytime the entry point offsets
/// change.
///
- public ushort Version;
+ public ushort Version { get; set; }
///
/// 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.
///
- public ushort ObjectEntriesCount;
+ public ushort ObjectEntriesCount { get; set; }
///
/// 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.
///
- public ushort ObjectNumberInModule;
+ public ushort ObjectNumberInModule { get; set; }
///
/// 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.
///
- public ushort ObjectLoadBaseAddress;
+ public ushort ObjectLoadBaseAddress { get; set; }
///
/// 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.
///
- public ushort ObjectVirtualAddressSize;
+ public ushort ObjectVirtualAddressSize { get; set; }
}
}
diff --git a/MSDOS/ExecutableHeader.cs b/MSDOS/ExecutableHeader.cs
index dfbdc58..ac2c9d8 100644
--- a/MSDOS/ExecutableHeader.cs
+++ b/MSDOS/ExecutableHeader.cs
@@ -26,18 +26,18 @@ namespace SabreTools.Models.MSDOS
///
/// Number of bytes in the last page.
///
- public ushort LastPageBytes;
+ public ushort LastPageBytes { get; set; }
///
/// Number of whole/partial pages.
///
/// A page (or block) is 512 bytes long.
- public ushort Pages;
+ public ushort Pages { get; set; }
///
/// Number of entries in the relocation table.
///
- public ushort RelocationItems;
+ public ushort RelocationItems { get; set; }
///
/// The number of paragraphs taken up by the header. It can be any value, as the loader
@@ -46,57 +46,57 @@ namespace SabreTools.Models.MSDOS
/// own header metadata, or put the relocation table there, or use it for any other purpose. [08]
///
/// A paragraph is 16 bytes in size
- public ushort HeaderParagraphSize;
+ public ushort HeaderParagraphSize { get; set; }
///
/// The number of paragraphs required by the program, excluding the PSP and program image.
/// If no free block is big enough, the loading stops.
///
/// A paragraph is 16 bytes in size
- public ushort MinimumExtraParagraphs;
+ public ushort MinimumExtraParagraphs { get; set; }
///
/// The number of paragraphs requested by the program.
/// If no free block is big enough, the biggest one possible is allocated.
///
/// A paragraph is 16 bytes in size
- public ushort MaximumExtraParagraphs;
+ public ushort MaximumExtraParagraphs { get; set; }
///
/// Relocatable segment address for SS.
///
- public ushort InitialSSValue;
+ public ushort InitialSSValue { get; set; }
///
/// Initial value for SP.
///
- public ushort InitialSPValue;
+ public ushort InitialSPValue { get; set; }
///
/// When added to the sum of all other words in the file, the result should be zero.
///
- public ushort Checksum;
+ public ushort Checksum { get; set; }
///
/// Initial value for IP. [14]
///
- public ushort InitialIPValue;
+ public ushort InitialIPValue { get; set; }
///
/// Relocatable segment address for CS.
///
- public ushort InitialCSValue;
+ public ushort InitialCSValue { get; set; }
///
/// The (absolute) offset to the relocation table.
///
- public ushort RelocationTableAddr;
+ public ushort RelocationTableAddr { get; set; }
///
/// Value used for overlay management.
/// If zero, this is the main executable.
///
- public ushort OverlayNumber;
+ public ushort OverlayNumber { get; set; }
#endregion
@@ -115,12 +115,12 @@ namespace SabreTools.Models.MSDOS
///
/// Defined by name but no other information is given; typically zeroes
///
- public ushort OEMIdentifier;
+ public ushort OEMIdentifier { get; set; }
///
/// Defined by name but no other information is given; typically zeroes
///
- public ushort OEMInformation;
+ public ushort OEMInformation { get; set; }
///
/// Reserved words
@@ -135,7 +135,7 @@ namespace SabreTools.Models.MSDOS
///
/// Starting address of the PE header
///
- public uint NewExeHeaderAddr;
+ public uint NewExeHeaderAddr { get; set; }
#endregion
}
diff --git a/MSDOS/RelocationEntry.cs b/MSDOS/RelocationEntry.cs
index 98be6b6..81cbc86 100644
--- a/MSDOS/RelocationEntry.cs
+++ b/MSDOS/RelocationEntry.cs
@@ -12,11 +12,11 @@ namespace SabreTools.Models.MSDOS
///
/// Offset of the relocation within provided segment.
///
- public ushort Offset;
+ public ushort Offset { get; set; }
///
/// Segment of the relocation, relative to the load segment address.
///
- public ushort Segment;
+ public ushort Segment { get; set; }
}
}
diff --git a/MicrosoftCabinet/CFDATA.cs b/MicrosoftCabinet/CFDATA.cs
index fc29762..da28484 100644
--- a/MicrosoftCabinet/CFDATA.cs
+++ b/MicrosoftCabinet/CFDATA.cs
@@ -16,13 +16,13 @@ namespace SabreTools.Models.MicrosoftCabinet
/// Checksum of this CFDATA structure, from the through the
/// fields. It can be set to 0 (zero) if the checksum is not supplied.
///
- public uint Checksum;
+ public uint Checksum { get; set; }
///
/// Number of bytes of compressed data in this CFDATA structure record. When the
/// field is zero, this field indicates only the number of bytes that fit into this cabinet file.
///
- public ushort CompressedSize;
+ public ushort CompressedSize { get; set; }
///
/// The uncompressed size of the data in this CFDATA structure entry in bytes. When this
@@ -30,7 +30,7 @@ namespace SabreTools.Models.MicrosoftCabinet
/// the field in the first CFDATA structure entry in the next cabinet file will report the total
/// uncompressed size of the data from both CFDATA structure blocks.
///
- public ushort UncompressedSize;
+ public ushort UncompressedSize { get; set; }
///
/// If the flag is set
@@ -38,9 +38,9 @@ namespace SabreTools.Models.MicrosoftCabinet
/// This field is defined by the application, and it is used for application-defined purposes.
///
#if NET48
- public byte[] ReservedData;
+ public byte[] ReservedData { get; set; }
#else
- public byte[]? ReservedData;
+ public byte[]? ReservedData { get; set; }
#endif
///
@@ -52,9 +52,9 @@ namespace SabreTools.Models.MicrosoftCabinet
/// this CFDATA structure entry crosses a cabinet file boundary.
///
#if NET48
- public byte[] CompressedData;
+ public byte[] CompressedData { get; set; }
#else
- public byte[]? CompressedData;
+ public byte[]? CompressedData { get; set; }
#endif
}
}
diff --git a/MicrosoftCabinet/CFFILE.cs b/MicrosoftCabinet/CFFILE.cs
index 32c131f..3a6f0e8 100644
--- a/MicrosoftCabinet/CFFILE.cs
+++ b/MicrosoftCabinet/CFFILE.cs
@@ -18,38 +18,38 @@ namespace SabreTools.Models.MicrosoftCabinet
///
/// Specifies the uncompressed size of this file, in bytes.
///
- public uint FileSize;
+ public uint FileSize { get; set; }
///
/// Specifies the uncompressed offset, in bytes, of the start of this file's data. For the
/// first file in each folder, this value will usually be zero. Subsequent files in the folder will have offsets
/// that are typically the running sum of the cbFile field values.
///
- public uint FolderStartOffset;
+ public uint FolderStartOffset { get; set; }
///
/// Index of the folder that contains this file's data.
///
- public FolderIndex FolderIndex;
+ public FolderIndex FolderIndex { get; set; }
///
/// Date of this file, in the format ((year–1980) << 9)+(month << 5)+(day), where
/// month={1..12} and day = { 1..31 }. This "date" is typically considered the "last modified" date in local
/// time, but the actual definition is application-defined.
///
- public ushort Date;
+ public ushort Date { get; set; }
///
/// Time of this file, in the format (hour << 11)+(minute << 5)+(seconds/2), where
/// hour={0..23}. This "time" is typically considered the "last modified" time in local time, but the
/// actual definition is application-defined.
///
- public ushort Time;
+ public ushort Time { get; set; }
///
/// Attributes of this file; can be used in any combination.
///
- public FileAttributes Attributes;
+ public FileAttributes Attributes { get; set; }
///
/// The null-terminated name of this file. Note that this string can include path
@@ -64,9 +64,9 @@ namespace SabreTools.Models.MicrosoftCabinet
/// interpreted according to the current location.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
}
}
diff --git a/MicrosoftCabinet/CFFOLDER.cs b/MicrosoftCabinet/CFFOLDER.cs
index 4e19ad2..8b69f27 100644
--- a/MicrosoftCabinet/CFFOLDER.cs
+++ b/MicrosoftCabinet/CFFOLDER.cs
@@ -1,5 +1,4 @@
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
+using System.Runtime.InteropServices;
namespace SabreTools.Models.MicrosoftCabinet
{
@@ -29,7 +28,7 @@ namespace SabreTools.Models.MicrosoftCabinet
///
/// Specifies the absolute file offset of the first CFDATA field block for the folder.
///
- public uint CabStartOffset;
+ public uint CabStartOffset { get; set; }
///
/// Specifies the number of CFDATA structures for this folder that are actually in this cabinet.
@@ -37,13 +36,13 @@ namespace SabreTools.Models.MicrosoftCabinet
/// file.A folder can start in a previous cabinet.This number represents only the CFDATA structures for
/// this folder that are at least partially recorded in this cabinet.
///
- public ushort DataCount;
+ public ushort DataCount { get; set; }
///
/// Indicates the compression method used for all CFDATA structure entries in this
/// folder.
///
- public CompressionType CompressionType;
+ public CompressionType CompressionType { get; set; }
///
/// If the CFHEADER.flags.cfhdrRESERVE_PRESENT field is set
@@ -51,18 +50,18 @@ namespace SabreTools.Models.MicrosoftCabinet
/// This field is defined by the application, and is used for application-defined purposes.
///
#if NET48
- public byte[] ReservedData;
+ public byte[] ReservedData { get; set; }
#else
- public byte[]? ReservedData;
+ public byte[]? ReservedData { get; set; }
#endif
///
/// Data blocks associated with this folder
///
#if NET48
- public CFDATA[] DataBlocks;
+ public CFDATA[] DataBlocks { get; set; }
#else
- public CFDATA?[]? DataBlocks;
+ public CFDATA?[]? DataBlocks { get; set; }
#endif
}
}
diff --git a/MicrosoftCabinet/CFHEADER.cs b/MicrosoftCabinet/CFHEADER.cs
index 379ada3..433aad7 100644
--- a/MicrosoftCabinet/CFHEADER.cs
+++ b/MicrosoftCabinet/CFHEADER.cs
@@ -15,60 +15,60 @@ namespace SabreTools.Models.MicrosoftCabinet
/// 0x46). This field is used to ensure that the file is a cabinet (.cab) file.
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Reserved field; MUST be set to 0 (zero).
///
- public uint Reserved1;
+ public uint Reserved1 { get; set; }
///
/// Specifies the total size of the cabinet file, in bytes.
///
- public uint CabinetSize;
+ public uint CabinetSize { get; set; }
///
/// Reserved field; MUST be set to 0 (zero).
///
- public uint Reserved2;
+ public uint Reserved2 { get; set; }
///
/// Specifies the absolute file offset, in bytes, of the first CFFILE field entry.
///
- public uint FilesOffset;
+ public uint FilesOffset { get; set; }
///
/// Reserved field; MUST be set to 0 (zero).
///
- public uint Reserved3;
+ public uint Reserved3 { get; set; }
///
/// Specifies the minor cabinet file format version. This value MUST be set to 3 (three).
///
- public byte VersionMinor;
+ public byte VersionMinor { get; set; }
///
/// Specifies the major cabinet file format version. This value MUST be set to 1 (one).
///
- public byte VersionMajor;
+ public byte VersionMajor { get; set; }
///
/// Specifies the number of CFFOLDER field entries in this cabinet file.
///
- public ushort FolderCount;
+ public ushort FolderCount { get; set; }
///
/// Specifies the number of CFFILE field entries in this cabinet file.
///
- public ushort FileCount;
+ public ushort FileCount { get; set; }
///
/// Specifies bit-mapped values that indicate the presence of optional data.
///
- public HeaderFlags Flags;
+ public HeaderFlags Flags { get; set; }
///
/// Specifies an arbitrarily derived (random) value that binds a collection of linked cabinet files
@@ -76,14 +76,14 @@ namespace SabreTools.Models.MicrosoftCabinet
/// cabinet file extractors to ensure that cabinet files are not inadvertently mixed.This value has no
/// meaning in a cabinet file that is not in a set.
///
- public ushort SetID;
+ public ushort SetID { get; set; }
///
/// Specifies the sequential number of this cabinet in a multicabinet set. The first cabinet has
/// iCabinet=0. This field, along with the setID field, is used by cabinet file extractors to ensure that
/// this cabinet is the correct continuation cabinet when spanning cabinet files.
///
- public ushort CabinetIndex;
+ public ushort CabinetIndex { get; set; }
///
/// If the flags.cfhdrRESERVE_PRESENT field is not set, this field is not
@@ -91,7 +91,7 @@ namespace SabreTools.Models.MicrosoftCabinet
/// abReserve field in this CFHEADER structure.Values for cbCFHeader field MUST be between 0-
/// 60,000.
///
- public ushort HeaderReservedSize;
+ public ushort HeaderReservedSize { get; set; }
///
/// If the flags.cfhdrRESERVE_PRESENT field is not set, this field is not
@@ -99,7 +99,7 @@ namespace SabreTools.Models.MicrosoftCabinet
/// abReserve field in each CFFOLDER field entry.Values for fhe cbCFFolder field MUST be between
/// 0-255.
///
- public byte FolderReservedSize;
+ public byte FolderReservedSize { get; set; }
///
/// If the flags.cfhdrRESERVE_PRESENT field is not set, this field is not
@@ -107,7 +107,7 @@ namespace SabreTools.Models.MicrosoftCabinet
/// size, in bytes, of the abReserve field in each CFDATA field entry. Values for the cbCFDATA field
/// MUST be between 0 - 255.
///
- public byte DataReservedSize;
+ public byte DataReservedSize { get; set; }
///
/// If the flags.cfhdrRESERVE_PRESENT field is set and the
@@ -115,9 +115,9 @@ namespace SabreTools.Models.MicrosoftCabinet
/// is defined by the application, and is used for application-defined purposes.
///
#if NET48
- public byte[] ReservedData;
+ public byte[] ReservedData { get; set; }
#else
- public byte[]? ReservedData;
+ public byte[]? ReservedData { get; set; }
#endif
///
@@ -131,9 +131,9 @@ namespace SabreTools.Models.MicrosoftCabinet
/// cabinet to examine.
///
#if NET48
- public string CabinetPrev;
+ public string CabinetPrev { get; set; }
#else
- public string? CabinetPrev;
+ public string? CabinetPrev { get; set; }
#endif
///
@@ -144,9 +144,9 @@ namespace SabreTools.Models.MicrosoftCabinet
/// bytes, plus the null byte.
///
#if NET48
- public string DiskPrev;
+ public string DiskPrev { get; set; }
#else
- public string? DiskPrev;
+ public string? DiskPrev { get; set; }
#endif
///
@@ -156,9 +156,9 @@ namespace SabreTools.Models.MicrosoftCabinet
/// beyond the end of the current cabinet file are continued in the named cabinet file.
///
#if NET48
- public string CabinetNext;
+ public string CabinetNext { get; set; }
#else
- public string? CabinetNext;
+ public string? CabinetNext { get; set; }
#endif
///
@@ -169,9 +169,9 @@ namespace SabreTools.Models.MicrosoftCabinet
/// user to insert a disk.
///
#if NET48
- public string DiskNext;
+ public string DiskNext { get; set; }
#else
- public string? DiskNext;
+ public string? DiskNext { get; set; }
#endif
}
}
diff --git a/MoPaQ/ArchiveHeader.cs b/MoPaQ/ArchiveHeader.cs
index 9cdd360..8d0e550 100644
--- a/MoPaQ/ArchiveHeader.cs
+++ b/MoPaQ/ArchiveHeader.cs
@@ -15,15 +15,15 @@ namespace SabreTools.Models.MoPaQ
/// The MPQ archive signature
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Size of the archive header
///
- public uint HeaderSize;
+ public uint HeaderSize { get; set; }
///
/// Size of MPQ archive
@@ -33,7 +33,7 @@ namespace SabreTools.Models.MoPaQ
/// is calculated as the size from the beginning of the archive to the end of the hash table,
/// block table, or extended block table (whichever is largest).
///
- public uint ArchiveSize;
+ public uint ArchiveSize { get; set; }
///
/// 0 = Format 1 (up to The Burning Crusade)
@@ -41,34 +41,34 @@ namespace SabreTools.Models.MoPaQ
/// 2 = Format 3 (WoW - Cataclysm beta or newer)
/// 3 = Format 4 (WoW - Cataclysm beta or newer)
///
- public FormatVersion FormatVersion;
+ public FormatVersion FormatVersion { get; set; }
///
/// Power of two exponent specifying the number of 512-byte disk sectors in each logical sector
/// in the archive. The size of each logical sector in the archive is 512 * 2 ^ BlockSize.
///
- public ushort BlockSize;
+ public ushort BlockSize { get; set; }
///
/// Offset to the beginning of the hash table, relative to the beginning of the archive.
///
- public uint HashTablePosition;
+ public uint HashTablePosition { get; set; }
///
/// Offset to the beginning of the block table, relative to the beginning of the archive.
///
- public uint BlockTablePosition;
+ public uint BlockTablePosition { get; set; }
///
/// Number of entries in the hash table. Must be a power of two, and must be less than 2^16 for
/// the original MoPaQ format, or less than 2^20 for the Burning Crusade format.
///
- public uint HashTableSize;
+ public uint HashTableSize { get; set; }
///
/// Number of entries in the block table
///
- public uint BlockTableSize;
+ public uint BlockTableSize { get; set; }
#endregion
@@ -77,17 +77,17 @@ namespace SabreTools.Models.MoPaQ
///
/// Offset to the beginning of array of 16-bit high parts of file offsets.
///
- public ulong HiBlockTablePosition;
+ public ulong HiBlockTablePosition { get; set; }
///
/// High 16 bits of the hash table offset for large archives.
///
- public ushort HashTablePositionHi;
+ public ushort HashTablePositionHi { get; set; }
///
/// High 16 bits of the block table offset for large archives.
///
- public ushort BlockTablePositionHi;
+ public ushort BlockTablePositionHi { get; set; }
#endregion
@@ -96,17 +96,17 @@ namespace SabreTools.Models.MoPaQ
///
/// 64-bit version of the archive size
///
- public ulong ArchiveSizeLong;
+ public ulong ArchiveSizeLong { get; set; }
///
/// 64-bit position of the BET table
///
- public ulong BetTablePosition;
+ public ulong BetTablePosition { get; set; }
///
/// 64-bit position of the HET table
///
- public ulong HetTablePosition;
+ public ulong HetTablePosition { get; set; }
#endregion
@@ -115,42 +115,42 @@ namespace SabreTools.Models.MoPaQ
///
/// Compressed size of the hash table
///
- public ulong HashTableSizeLong;
+ public ulong HashTableSizeLong { get; set; }
///
/// Compressed size of the block table
///
- public ulong BlockTableSizeLong;
+ public ulong BlockTableSizeLong { get; set; }
///
/// Compressed size of the hi-block table
///
- public ulong HiBlockTableSize;
+ public ulong HiBlockTableSize { get; set; }
///
/// Compressed size of the HET block
///
- public ulong HetTableSize;
+ public ulong HetTableSize { get; set; }
///
/// Compressed size of the BET block
///
- public ulong BetTablesize;
+ public ulong BetTablesize { get; set; }
///
/// Size of raw data chunk to calculate MD5.
///
/// MD5 of each data chunk follows the raw file data.
- public uint RawChunkSize;
+ public uint RawChunkSize { get; set; }
///
/// MD5 of the block table before decryption
///
/// 0x10 bytes
#if NET48
- public byte[] BlockTableMD5;
+ public byte[] BlockTableMD5 { get; set; }
#else
- public byte[]? BlockTableMD5;
+ public byte[]? BlockTableMD5 { get; set; }
#endif
///
@@ -158,9 +158,9 @@ namespace SabreTools.Models.MoPaQ
///
/// 0x10 bytes
#if NET48
- public byte[] HashTableMD5;
+ public byte[] HashTableMD5 { get; set; }
#else
- public byte[]? HashTableMD5;
+ public byte[]? HashTableMD5 { get; set; }
#endif
///
@@ -168,9 +168,9 @@ namespace SabreTools.Models.MoPaQ
///
/// 0x10 bytes
#if NET48
- public byte[] HiBlockTableMD5;
+ public byte[] HiBlockTableMD5 { get; set; }
#else
- public byte[]? HiBlockTableMD5;
+ public byte[]? HiBlockTableMD5 { get; set; }
#endif
///
@@ -178,9 +178,9 @@ namespace SabreTools.Models.MoPaQ
///
/// 0x10 bytes
#if NET48
- public byte[] BetTableMD5;
+ public byte[] BetTableMD5 { get; set; }
#else
- public byte[]? BetTableMD5;
+ public byte[]? BetTableMD5 { get; set; }
#endif
///
@@ -188,9 +188,9 @@ namespace SabreTools.Models.MoPaQ
///
/// 0x10 bytes
#if NET48
- public byte[] HetTableMD5;
+ public byte[] HetTableMD5 { get; set; }
#else
- public byte[]? HetTableMD5;
+ public byte[]? HetTableMD5 { get; set; }
#endif
///
@@ -198,9 +198,9 @@ namespace SabreTools.Models.MoPaQ
///
/// 0x10 bytes
#if NET48
- public byte[] MpqHeaderMD5;
+ public byte[] MpqHeaderMD5 { get; set; }
#else
- public byte[]? MpqHeaderMD5;
+ public byte[]? MpqHeaderMD5 { get; set; }
#endif
#endregion
diff --git a/MoPaQ/BetTable.cs b/MoPaQ/BetTable.cs
index 9bf1449..4abe8b9 100644
--- a/MoPaQ/BetTable.cs
+++ b/MoPaQ/BetTable.cs
@@ -18,126 +18,126 @@ namespace SabreTools.Models.MoPaQ
/// 'BET\x1A'
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Version. Seems to be always 1
///
- public uint Version;
+ public uint Version { get; set; }
///
/// Size of the contained table
///
- public uint DataSize;
+ public uint DataSize { get; set; }
#endregion
///
/// Size of the entire hash table, including the header (in bytes)
///
- public uint TableSize;
+ public uint TableSize { get; set; }
///
/// Number of files in the BET table
///
- public uint FileCount;
+ public uint FileCount { get; set; }
///
/// Unknown, set to 0x10
///
- public uint Unknown;
+ public uint Unknown { get; set; }
///
/// Size of one table entry (in bits)
///
- public uint TableEntrySize;
+ public uint TableEntrySize { get; set; }
///
/// Bit index of the file position (within the entry record)
///
- public uint FilePositionBitIndex;
+ public uint FilePositionBitIndex { get; set; }
///
/// Bit index of the file size (within the entry record)
///
- public uint FileSizeBitIndex;
+ public uint FileSizeBitIndex { get; set; }
///
/// Bit index of the compressed size (within the entry record)
///
- public uint CompressedSizeBitIndex;
+ public uint CompressedSizeBitIndex { get; set; }
///
/// Bit index of the flag index (within the entry record)
///
- public uint FlagIndexBitIndex;
+ public uint FlagIndexBitIndex { get; set; }
///
/// Bit index of the ??? (within the entry record)
///
- public uint UnknownBitIndex;
+ public uint UnknownBitIndex { get; set; }
///
/// Bit size of file position (in the entry record)
///
- public uint FilePositionBitCount;
+ public uint FilePositionBitCount { get; set; }
///
/// Bit size of file size (in the entry record)
///
- public uint FileSizeBitCount;
+ public uint FileSizeBitCount { get; set; }
///
/// Bit size of compressed file size (in the entry record)
///
- public uint CompressedSizeBitCount;
+ public uint CompressedSizeBitCount { get; set; }
///
/// Bit size of flags index (in the entry record)
///
- public uint FlagIndexBitCount;
+ public uint FlagIndexBitCount { get; set; }
///
/// Bit size of ??? (in the entry record)
///
- public uint UnknownBitCount;
+ public uint UnknownBitCount { get; set; }
///
/// Total size of the BET hash
///
- public uint TotalBetHashSize;
+ public uint TotalBetHashSize { get; set; }
///
/// Extra bits in the BET hash
///
- public uint BetHashSizeExtra;
+ public uint BetHashSizeExtra { get; set; }
///
/// Effective size of BET hash (in bits)
///
- public uint BetHashSize;
+ public uint BetHashSize { get; set; }
///
/// Size of BET hashes array, in bytes
///
- public uint BetHashArraySize;
+ public uint BetHashArraySize { get; set; }
///
/// Number of flags in the following array
///
- public uint FlagCount;
+ public uint FlagCount { get; set; }
///
/// Followed by array of file flags. Each entry is 32-bit size and its meaning is the same like
///
/// Size from
#if NET48
- public uint[] FlagsArray;
+ public uint[] FlagsArray { get; set; }
#else
- public uint[]? FlagsArray;
+ public uint[]? FlagsArray { get; set; }
#endif
// File table. Size of each entry is taken from dwTableEntrySize.
diff --git a/MoPaQ/BlockEntry.cs b/MoPaQ/BlockEntry.cs
index 634f235..5a49cdd 100644
--- a/MoPaQ/BlockEntry.cs
+++ b/MoPaQ/BlockEntry.cs
@@ -14,21 +14,21 @@ namespace SabreTools.Models.MoPaQ
///
/// Offset of the beginning of the file data, relative to the beginning of the archive.
///
- public uint FilePosition;
+ public uint FilePosition { get; set; }
///
/// Compressed file size
///
- public uint CompressedSize;
+ public uint CompressedSize { get; set; }
///
/// Size of uncompressed file
///
- public uint UncompressedSize;
+ public uint UncompressedSize { get; set; }
///
/// Flags for the file.
///
- public FileFlags Flags;
+ public FileFlags Flags { get; set; }
}
}
diff --git a/MoPaQ/HashEntry.cs b/MoPaQ/HashEntry.cs
index 035301d..ba282b4 100644
--- a/MoPaQ/HashEntry.cs
+++ b/MoPaQ/HashEntry.cs
@@ -16,24 +16,24 @@ namespace SabreTools.Models.MoPaQ
///
/// The hash of the full file name (part A)
///
- public uint NameHashPartA;
+ public uint NameHashPartA { get; set; }
///
/// The hash of the full file name (part B)
///
- public uint NameHashPartB;
+ public uint NameHashPartB { get; set; }
///
/// The language of the file. This is a Windows LANGID data type, and uses the same values.
/// 0 indicates the default language (American English), or that the file is language-neutral.
///
- public Locale Locale;
+ public Locale Locale { get; set; }
///
/// The platform the file is used for. 0 indicates the default platform.
/// No other values have been observed.
///
- public ushort Platform;
+ public ushort Platform { get; set; }
///
/// If the hash table entry is valid, this is the index into the block table of the file.
@@ -43,6 +43,6 @@ namespace SabreTools.Models.MoPaQ
/// - FFFFFFFEh: Hash table entry is empty, but was valid at some point (a deleted file).
/// Does not terminate searches for a given file.
///
- public uint BlockIndex;
+ public uint BlockIndex { get; set; }
}
}
diff --git a/MoPaQ/HetTable.cs b/MoPaQ/HetTable.cs
index 39fe234..d826b5f 100644
--- a/MoPaQ/HetTable.cs
+++ b/MoPaQ/HetTable.cs
@@ -19,71 +19,71 @@ namespace SabreTools.Models.MoPaQ
/// 'HET\x1A'
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Version. Seems to be always 1
///
- public uint Version;
+ public uint Version { get; set; }
///
/// Size of the contained table
///
- public uint DataSize;
+ public uint DataSize { get; set; }
#endregion
///
/// Size of the entire hash table, including the header (in bytes)
///
- public uint TableSize;
+ public uint TableSize { get; set; }
///
/// Maximum number of files in the MPQ
///
- public uint MaxFileCount;
+ public uint MaxFileCount { get; set; }
///
/// Size of the hash table (in bytes)
///
- public uint HashTableSize;
+ public uint HashTableSize { get; set; }
///
/// Effective size of the hash entry (in bits)
///
- public uint HashEntrySize;
+ public uint HashEntrySize { get; set; }
///
/// Total size of file index (in bits)
///
- public uint TotalIndexSize;
+ public uint TotalIndexSize { get; set; }
///
/// Extra bits in the file index
///
- public uint IndexSizeExtra;
+ public uint IndexSizeExtra { get; set; }
///
/// Effective size of the file index (in bits)
///
- public uint IndexSize;
+ public uint IndexSize { get; set; }
///
/// Size of the block index subtable (in bytes)
///
- public uint BlockTableSize;
+ public uint BlockTableSize { get; set; }
///
/// HET hash table. Each entry is 8 bits.
///
/// Size is derived from HashTableSize
#if NET48
- public byte[] HashTable;
+ public byte[] HashTable { get; set; }
#else
- public byte[]? HashTable;
+ public byte[]? HashTable { get; set; }
#endif
///
@@ -91,9 +91,9 @@ namespace SabreTools.Models.MoPaQ
/// Table size is taken from dwHashTableSize.
///
#if NET48
- public byte[][] FileIndexes;
+ public byte[][] FileIndexes { get; set; }
#else
- public byte[][]? FileIndexes;
+ public byte[][]? FileIndexes { get; set; }
#endif
}
}
diff --git a/MoPaQ/PatchHeader.cs b/MoPaQ/PatchHeader.cs
index 3b47be2..8ab6e57 100644
--- a/MoPaQ/PatchHeader.cs
+++ b/MoPaQ/PatchHeader.cs
@@ -15,22 +15,22 @@ namespace SabreTools.Models.MoPaQ
///
/// 'PTCH'
///
- public uint PatchSignature { get; private set; }
+ public uint PatchSignature { get; set; }
///
/// Size of the entire patch (decompressed)
///
- public int SizeOfPatchData { get; private set; }
+ public int SizeOfPatchData { get; set; }
///
/// Size of the file before patch
///
- public int SizeBeforePatch { get; private set; }
+ public int SizeBeforePatch { get; set; }
///
/// Size of file after patch
///
- public int SizeAfterPatch { get; private set; }
+ public int SizeAfterPatch { get; set; }
#endregion
@@ -39,29 +39,29 @@ namespace SabreTools.Models.MoPaQ
///
/// 'MD5_'
///
- public uint Md5Signature { get; private set; }
+ public uint Md5Signature { get; set; }
///
/// Size of the MD5 block, including the signature and size itself
///
- public int Md5BlockSize { get; private set; }
+ public int Md5BlockSize { get; set; }
///
/// MD5 of the original (unpached) file
///
#if NET48
- public byte[] Md5BeforePatch { get; private set; } = new byte[0x10];
+ public byte[] Md5BeforePatch { get; set; } = new byte[0x10];
#else
- public byte[]? Md5BeforePatch { get; private set; } = new byte[0x10];
+ public byte[]? Md5BeforePatch { get; set; } = new byte[0x10];
#endif
///
/// MD5 of the patched file
///
#if NET48
- public byte[] Md5AfterPatch { get; private set; } = new byte[0x10];
+ public byte[] Md5AfterPatch { get; set; } = new byte[0x10];
#else
- public byte[]? Md5AfterPatch { get; private set; } = new byte[0x10];
+ public byte[]? Md5AfterPatch { get; set; } = new byte[0x10];
#endif
#endregion
@@ -71,17 +71,17 @@ namespace SabreTools.Models.MoPaQ
///
/// 'XFRM'
///
- public uint XfrmSignature { get; private set; }
+ public uint XfrmSignature { get; set; }
///
/// Size of the XFRM block, includes XFRM header and patch data
///
- public int XfrmBlockSize { get; private set; }
+ public int XfrmBlockSize { get; set; }
///
/// Type of patch ('BSD0' or 'COPY')
///
- public PatchType PatchType { get; private set; }
+ public PatchType PatchType { get; set; }
#endregion
@@ -90,22 +90,22 @@ namespace SabreTools.Models.MoPaQ
///
/// 'BSDIFF40' signature
///
- public ulong BsdiffSignature { get; private set; }
+ public ulong BsdiffSignature { get; set; }
///
/// Size of CTRL block (in bytes)
///
- public long CtrlBlockSize { get; private set; }
+ public long CtrlBlockSize { get; set; }
///
/// Size of DATA block (in bytes)
///
- public long DataBlockSize { get; private set; }
+ public long DataBlockSize { get; set; }
///
/// Size of file after applying the patch (in bytes)
///
- public long NewFileSize { get; private set; }
+ public long NewFileSize { get; set; }
// TODO: Fill rest of data from http://zezula.net/en/mpq/patchfiles.html
// CTRL block
@@ -120,9 +120,9 @@ namespace SabreTools.Models.MoPaQ
/// File data are simply replaced by the data in the patch.
///
#if NET48
- public byte[] PatchDataCopy { get; private set; }
+ public byte[] PatchDataCopy { get; set; }
#else
- public byte[]? PatchDataCopy { get; private set; }
+ public byte[]? PatchDataCopy { get; set; }
#endif
#endregion
diff --git a/MoPaQ/PatchInfo.cs b/MoPaQ/PatchInfo.cs
index 63b6b5c..cc6a84c 100644
--- a/MoPaQ/PatchInfo.cs
+++ b/MoPaQ/PatchInfo.cs
@@ -12,35 +12,35 @@ namespace SabreTools.Models.MoPaQ
///
/// Length of patch info header, in bytes
///
- public uint Length;
+ public uint Length { get; set; }
///
/// Flags. 0x80000000 = MD5 (?)
///
- public uint Flags;
+ public uint Flags { get; set; }
///
/// Uncompressed size of the patch file
///
- public uint DataSize;
+ public uint DataSize { get; set; }
///
/// MD5 of the entire patch file after decompression
///
/// 0x10 bytes
#if NET48
- public byte[] MD5;
+ public byte[] MD5 { get; set; }
#else
- public byte[]? MD5;
+ public byte[]? MD5 { get; set; }
#endif
///
/// The sector offset table (variable length)
///
#if NET48
- public uint[] SectorOffsetTable;
+ public uint[] SectorOffsetTable { get; set; }
#else
- public uint[]? SectorOffsetTable;
+ public uint[]? SectorOffsetTable { get; set; }
#endif
}
}
diff --git a/MoPaQ/UserData.cs b/MoPaQ/UserData.cs
index ad3ee70..f2651f7 100644
--- a/MoPaQ/UserData.cs
+++ b/MoPaQ/UserData.cs
@@ -16,25 +16,25 @@ namespace SabreTools.Models.MoPaQ
///
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Maximum size of the user data
///
- public uint UserDataSize;
+ public uint UserDataSize { get; set; }
///
/// Offset of the MPQ header, relative to the beginning of this header
///
- public uint HeaderOffset;
+ public uint HeaderOffset { get; set; }
///
/// Appears to be size of user data header (Starcraft II maps)
///
- public uint UserDataHeaderSize;
+ public uint UserDataHeaderSize { get; set; }
// TODO: Does this area contain extra data that should be read in?
}
diff --git a/N3DS/ARM11KernelCapabilities.cs b/N3DS/ARM11KernelCapabilities.cs
index 5d2f912..13c966a 100644
--- a/N3DS/ARM11KernelCapabilities.cs
+++ b/N3DS/ARM11KernelCapabilities.cs
@@ -35,18 +35,18 @@
///
/// TODO: Make enum for flag values
#if NET48
- public uint[] Descriptors;
+ public uint[] Descriptors { get; set; }
#else
- public uint[]? Descriptors;
+ public uint[]? Descriptors { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
}
}
diff --git a/N3DS/ARM11LocalSystemCapabilities.cs b/N3DS/ARM11LocalSystemCapabilities.cs
index 7f44a17..df8b0e3 100644
--- a/N3DS/ARM11LocalSystemCapabilities.cs
+++ b/N3DS/ARM11LocalSystemCapabilities.cs
@@ -6,81 +6,81 @@
///
/// Program ID
///
- public ulong ProgramID;
+ public ulong ProgramID { get; set; }
///
/// Core version (The Title ID low of the required FIRM)
///
- public uint CoreVersion;
+ public uint CoreVersion { get; set; }
///
/// Flag1 (implemented starting from 8.0.0-18).
///
- public ARM11LSCFlag1 Flag1;
+ public ARM11LSCFlag1 Flag1 { get; set; }
///
/// Flag2 (implemented starting from 8.0.0-18).
///
- public ARM11LSCFlag2 Flag2;
+ public ARM11LSCFlag2 Flag2 { get; set; }
///
/// Flag0
///
- public ARM11LSCFlag0 Flag0;
+ public ARM11LSCFlag0 Flag0 { get; set; }
///
/// Priority
///
- public byte Priority;
+ public byte Priority { get; set; }
///
/// Resource limit descriptors. The first byte here controls the maximum allowed CpuTime.
///
#if NET48
- public ushort[] ResourceLimitDescriptors;
+ public ushort[] ResourceLimitDescriptors { get; set; }
#else
- public ushort[]? ResourceLimitDescriptors;
+ public ushort[]? ResourceLimitDescriptors { get; set; }
#endif
///
/// Storage info
///
#if NET48
- public StorageInfo StorageInfo;
+ public StorageInfo StorageInfo { get; set; }
#else
- public StorageInfo? StorageInfo;
+ public StorageInfo? StorageInfo { get; set; }
#endif
///
/// Service access control
///
#if NET48
- public ulong[] ServiceAccessControl;
+ public ulong[] ServiceAccessControl { get; set; }
#else
- public ulong[]? ServiceAccessControl;
+ public ulong[]? ServiceAccessControl { get; set; }
#endif
///
/// Extended service access control, support for this was implemented with 9.3.0-X.
///
#if NET48
- public ulong[] ExtendedServiceAccessControl;
+ public ulong[] ExtendedServiceAccessControl { get; set; }
#else
- public ulong[]? ExtendedServiceAccessControl;
+ public ulong[]? ExtendedServiceAccessControl { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
///
/// Resource limit category. (0 = APPLICATION, 1 = SYS_APPLET, 2 = LIB_APPLET, 3 = OTHER (sysmodules running under the BASE memregion))
///
- public ResourceLimitCategory ResourceLimitCategory;
+ public ResourceLimitCategory ResourceLimitCategory { get; set; }
}
}
diff --git a/N3DS/ARM9AccessControl.cs b/N3DS/ARM9AccessControl.cs
index 37215ae..4889549 100644
--- a/N3DS/ARM9AccessControl.cs
+++ b/N3DS/ARM9AccessControl.cs
@@ -7,15 +7,15 @@
/// Descriptors
///
#if NET48
- public byte[] Descriptors;
+ public byte[] Descriptors { get; set; }
#else
- public byte[]? Descriptors;
+ public byte[]? Descriptors { get; set; }
#endif
///
/// ARM9 Descriptor Version. Originally this value had to be ≥ 2.
/// Starting with 9.3.0-X this value has to be either value 2 or value 3.
///
- public byte DescriptorVersion;
+ public byte DescriptorVersion { get; set; }
}
}
diff --git a/N3DS/AccessControlInfo.cs b/N3DS/AccessControlInfo.cs
index acfd052..eb54568 100644
--- a/N3DS/AccessControlInfo.cs
+++ b/N3DS/AccessControlInfo.cs
@@ -7,27 +7,27 @@
/// ARM11 local system capabilities
///
#if NET48
- public ARM11LocalSystemCapabilities ARM11LocalSystemCapabilities;
+ public ARM11LocalSystemCapabilities ARM11LocalSystemCapabilities { get; set; }
#else
- public ARM11LocalSystemCapabilities? ARM11LocalSystemCapabilities;
+ public ARM11LocalSystemCapabilities? ARM11LocalSystemCapabilities { get; set; }
#endif
///
/// ARM11 kernel capabilities
///
#if NET48
- public ARM11KernelCapabilities ARM11KernelCapabilities;
+ public ARM11KernelCapabilities ARM11KernelCapabilities { get; set; }
#else
- public ARM11KernelCapabilities? ARM11KernelCapabilities;
+ public ARM11KernelCapabilities? ARM11KernelCapabilities { get; set; }
#endif
///
/// ARM9 access control
///
#if NET48
- public ARM9AccessControl ARM9AccessControl;
+ public ARM9AccessControl ARM9AccessControl { get; set; }
#else
- public ARM9AccessControl? ARM9AccessControl;
+ public ARM9AccessControl? ARM9AccessControl { get; set; }
#endif
}
}
diff --git a/N3DS/CIAHeader.cs b/N3DS/CIAHeader.cs
index 4de5972..04f9a18 100644
--- a/N3DS/CIAHeader.cs
+++ b/N3DS/CIAHeader.cs
@@ -6,50 +6,50 @@ namespace SabreTools.Models.N3DS
///
/// Archive header size, usually 0x2020 bytes
///
- public uint HeaderSize;
+ public uint HeaderSize { get; set; }
///
/// Type
///
- public ushort Type;
+ public ushort Type { get; set; }
///
/// Version
///
- public ushort Version;
+ public ushort Version { get; set; }
///
/// Certificate chain size
///
- public uint CertificateChainSize;
+ public uint CertificateChainSize { get; set; }
///
/// Ticket size
///
- public uint TicketSize;
+ public uint TicketSize { get; set; }
///
/// TMD file size
///
- public uint TMDFileSize;
+ public uint TMDFileSize { get; set; }
///
/// Meta size (0 if no Meta data is present)
///
- public uint MetaSize;
+ public uint MetaSize { get; set; }
///
/// Content size
///
- public ulong ContentSize;
+ public ulong ContentSize { get; set; }
///
/// Content Index
///
#if NET48
- public byte[] ContentIndex;
+ public byte[] ContentIndex { get; set; }
#else
- public byte[]? ContentIndex;
+ public byte[]? ContentIndex { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/N3DS/CardInfoHeader.cs b/N3DS/CardInfoHeader.cs
index 640f079..7afb834 100644
--- a/N3DS/CardInfoHeader.cs
+++ b/N3DS/CardInfoHeader.cs
@@ -6,76 +6,76 @@ namespace SabreTools.Models.N3DS
///
/// CARD2: Writable Address In Media Units (For 'On-Chip' Savedata). CARD1: Always 0xFFFFFFFF.
///
- public uint WritableAddressMediaUnits;
+ public uint WritableAddressMediaUnits { get; set; }
///
/// Card Info Bitmask
///
- public uint CardInfoBitmask;
+ public uint CardInfoBitmask { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved1;
+ public byte[] Reserved1 { get; set; }
#else
- public byte[]? Reserved1;
+ public byte[]? Reserved1 { get; set; }
#endif
///
/// Filled size of cartridge
///
- public uint FilledSize;
+ public uint FilledSize { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
/// Title version
///
- public ushort TitleVersion;
+ public ushort TitleVersion { get; set; }
///
/// Card revision
///
- public ushort CardRevision;
+ public ushort CardRevision { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved3;
+ public byte[] Reserved3 { get; set; }
#else
- public byte[]? Reserved3;
+ public byte[]? Reserved3 { get; set; }
#endif
///
/// Title ID of CVer in included update partition
///
#if NET48
- public byte[] CVerTitleID;
+ public byte[] CVerTitleID { get; set; }
#else
- public byte[]? CVerTitleID;
+ public byte[]? CVerTitleID { get; set; }
#endif
///
/// Version number of CVer in included update partition
///
- public ushort CVerVersionNumber;
+ public ushort CVerVersionNumber { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved4;
+ public byte[] Reserved4 { get; set; }
#else
- public byte[]? Reserved4;
+ public byte[]? Reserved4 { get; set; }
#endif
}
}
diff --git a/N3DS/Certificate.cs b/N3DS/Certificate.cs
index d72d9d5..6fa6e8d 100644
--- a/N3DS/Certificate.cs
+++ b/N3DS/Certificate.cs
@@ -12,63 +12,63 @@ namespace SabreTools.Models.N3DS
///
/// Signature Type
///
- public SignatureType SignatureType;
+ public SignatureType SignatureType { get; set; }
///
/// Signature size
///
- public ushort SignatureSize;
+ public ushort SignatureSize { get; set; }
///
/// Padding size
///
- public byte PaddingSize;
+ public byte PaddingSize { get; set; }
///
/// Signature
///
#if NET48
- public byte[] Signature;
+ public byte[] Signature { get; set; }
#else
- public byte[]? Signature;
+ public byte[]? Signature { get; set; }
#endif
///
/// Padding to align next data to 0x40 bytes
///
#if NET48
- public byte[] Padding;
+ public byte[] Padding { get; set; }
#else
- public byte[]? Padding;
+ public byte[]? Padding { get; set; }
#endif
///
/// Issuer
///
#if NET48
- public string Issuer;
+ public string Issuer { get; set; }
#else
- public string? Issuer;
+ public string? Issuer { get; set; }
#endif
///
/// Key Type
///
- public PublicKeyType KeyType;
+ public PublicKeyType KeyType { get; set; }
///
/// Name
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
/// Expiration time as UNIX Timestamp, used at least for CTCert
///
- public uint ExpirationTime;
+ public uint ExpirationTime { get; set; }
// This contains the Public Key (i.e. Modulus & Public Exponent)
#region RSA-4096 and RSA-2048
@@ -77,23 +77,23 @@ namespace SabreTools.Models.N3DS
/// Modulus
///
#if NET48
- public byte[] RSAModulus;
+ public byte[] RSAModulus { get; set; }
#else
- public byte[]? RSAModulus;
+ public byte[]? RSAModulus { get; set; }
#endif
///
/// Public Exponent
///
- public uint RSAPublicExponent;
+ public uint RSAPublicExponent { get; set; }
///
/// Padding
///
#if NET48
- public byte[] RSAPadding;
+ public byte[] RSAPadding { get; set; }
#else
- public byte[]? RSAPadding;
+ public byte[]? RSAPadding { get; set; }
#endif
#endregion
@@ -105,18 +105,18 @@ namespace SabreTools.Models.N3DS
/// Public Key
///
#if NET48
- public byte[] ECCPublicKey;
+ public byte[] ECCPublicKey { get; set; }
#else
- public byte[]? ECCPublicKey;
+ public byte[]? ECCPublicKey { get; set; }
#endif
///
/// Padding
///
#if NET48
- public byte[] ECCPadding;
+ public byte[] ECCPadding { get; set; }
#else
- public byte[]? ECCPadding;
+ public byte[]? ECCPadding { get; set; }
#endif
#endregion
diff --git a/N3DS/CodeSetInfo.cs b/N3DS/CodeSetInfo.cs
index 605c3b8..42028be 100644
--- a/N3DS/CodeSetInfo.cs
+++ b/N3DS/CodeSetInfo.cs
@@ -6,16 +6,16 @@
///
/// Address
///
- public uint Address;
+ public uint Address { get; set; }
///
/// Physical region size (in page-multiples)
///
- public uint PhysicalRegionSizeInPages;
+ public uint PhysicalRegionSizeInPages { get; set; }
///
/// Size (in bytes)
///
- public uint SizeInBytes;
+ public uint SizeInBytes { get; set; }
}
}
diff --git a/N3DS/ContentChunkRecord.cs b/N3DS/ContentChunkRecord.cs
index e22412e..7e19af4 100644
--- a/N3DS/ContentChunkRecord.cs
+++ b/N3DS/ContentChunkRecord.cs
@@ -10,7 +10,7 @@ namespace SabreTools.Models.N3DS
///
/// Content id
///
- public uint ContentId;
+ public uint ContentId { get; set; }
///
/// Content index
@@ -18,25 +18,25 @@ namespace SabreTools.Models.N3DS
///
/// This does not apply to DLC.
///
- public ContentIndex ContentIndex;
+ public ContentIndex ContentIndex { get; set; }
///
/// Content type
///
- public TMDContentType ContentType;
+ public TMDContentType ContentType { get; set; }
///
/// Content size
///
- public ulong ContentSize;
+ public ulong ContentSize { get; set; }
///
/// SHA-256 hash
///
#if NET48
- public byte[] SHA256Hash;
+ public byte[] SHA256Hash { get; set; }
#else
- public byte[]? SHA256Hash;
+ public byte[]? SHA256Hash { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/N3DS/ContentInfoRecord.cs b/N3DS/ContentInfoRecord.cs
index 6b93f1c..943a866 100644
--- a/N3DS/ContentInfoRecord.cs
+++ b/N3DS/ContentInfoRecord.cs
@@ -9,20 +9,20 @@ namespace SabreTools.Models.N3DS
///
/// Content index offset
///
- public ushort ContentIndexOffset;
+ public ushort ContentIndexOffset { get; set; }
///
/// Content command count [k]
///
- public ushort ContentCommandCount;
+ public ushort ContentCommandCount { get; set; }
///
/// SHA-256 hash of the next k content records that have not been hashed yet
///
#if NET48
- public byte[] UnhashedContentRecordsSHA256Hash;
+ public byte[] UnhashedContentRecordsSHA256Hash { get; set; }
#else
- public byte[]? UnhashedContentRecordsSHA256Hash;
+ public byte[]? UnhashedContentRecordsSHA256Hash { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/N3DS/DevelopmentCardInfoHeader.cs b/N3DS/DevelopmentCardInfoHeader.cs
index 43e98ae..0f2d135 100644
--- a/N3DS/DevelopmentCardInfoHeader.cs
+++ b/N3DS/DevelopmentCardInfoHeader.cs
@@ -7,45 +7,45 @@ namespace SabreTools.Models.N3DS
/// InitialData
///
#if NET48
- public InitialData InitialData;
+ public InitialData InitialData { get; set; }
#else
- public InitialData? InitialData;
+ public InitialData? InitialData { get; set; }
#endif
///
/// CardDeviceReserved1
///
#if NET48
- public byte[] CardDeviceReserved1;
+ public byte[] CardDeviceReserved1 { get; set; }
#else
- public byte[]? CardDeviceReserved1;
+ public byte[]? CardDeviceReserved1 { get; set; }
#endif
///
/// TitleKey
///
#if NET48
- public byte[] TitleKey;
+ public byte[] TitleKey { get; set; }
#else
- public byte[]? TitleKey;
+ public byte[]? TitleKey { get; set; }
#endif
///
/// CardDeviceReserved2
///
#if NET48
- public byte[] CardDeviceReserved2;
+ public byte[] CardDeviceReserved2 { get; set; }
#else
- public byte[]? CardDeviceReserved2;
+ public byte[]? CardDeviceReserved2 { get; set; }
#endif
///
/// TestData
///
#if NET48
- public TestData TestData;
+ public TestData TestData { get; set; }
#else
- public TestData? TestData;
+ public TestData? TestData { get; set; }
#endif
}
}
diff --git a/N3DS/ExeFSFileHeader.cs b/N3DS/ExeFSFileHeader.cs
index 1eb2b8c..ede81ba 100644
--- a/N3DS/ExeFSFileHeader.cs
+++ b/N3DS/ExeFSFileHeader.cs
@@ -14,28 +14,28 @@
/// File name
///
#if NET48
- public string FileName;
+ public string FileName { get; set; }
#else
- public string? FileName;
+ public string? FileName { get; set; }
#endif
///
/// File offset
///
- public uint FileOffset;
+ public uint FileOffset { get; set; }
///
/// File size
///
- public uint FileSize;
+ public uint FileSize { get; set; }
///
/// SHA256 hash calculated over the entire file contents
///
#if NET48
- public byte[] FileHash;
+ public byte[] FileHash { get; set; }
#else
- public byte[]? FileHash;
+ public byte[]? FileHash { get; set; }
#endif
}
}
diff --git a/N3DS/ExeFSHeader.cs b/N3DS/ExeFSHeader.cs
index 7f667a3..ecddf07 100644
--- a/N3DS/ExeFSHeader.cs
+++ b/N3DS/ExeFSHeader.cs
@@ -17,18 +17,18 @@
/// File headers (10 headers maximum, 16 bytes each)
///
#if NET48
- public ExeFSFileHeader[] FileHeaders;
+ public ExeFSFileHeader[] FileHeaders { get; set; }
#else
- public ExeFSFileHeader?[]? FileHeaders;
+ public ExeFSFileHeader?[]? FileHeaders { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
///
@@ -36,9 +36,9 @@
///
/// SHA-256 hashes
#if NET48
- public byte[][] FileHashes;
+ public byte[][] FileHashes { get; set; }
#else
- public byte[][]? FileHashes;
+ public byte[][]? FileHashes { get; set; }
#endif
}
}
diff --git a/N3DS/InitialData.cs b/N3DS/InitialData.cs
index b4924cf..be24a3b 100644
--- a/N3DS/InitialData.cs
+++ b/N3DS/InitialData.cs
@@ -7,54 +7,54 @@ namespace SabreTools.Models.N3DS
/// Card seed keyY (first u64 is Media ID (same as first NCCH partitionId))
///
#if NET48
- public byte[] CardSeedKeyY;
+ public byte[] CardSeedKeyY { get; set; }
#else
- public byte[]? CardSeedKeyY;
+ public byte[]? CardSeedKeyY { get; set; }
#endif
///
/// Encrypted card seed (AES-CCM, keyslot 0x3B for retail cards, see CTRCARD_SECSEED)
///
#if NET48
- public byte[] EncryptedCardSeed;
+ public byte[] EncryptedCardSeed { get; set; }
#else
- public byte[]? EncryptedCardSeed;
+ public byte[]? EncryptedCardSeed { get; set; }
#endif
///
/// Card seed AES-MAC
///
#if NET48
- public byte[] CardSeedAESMAC;
+ public byte[] CardSeedAESMAC { get; set; }
#else
- public byte[]? CardSeedAESMAC;
+ public byte[]? CardSeedAESMAC { get; set; }
#endif
///
/// Card seed nonce
///
#if NET48
- public byte[] CardSeedNonce;
+ public byte[] CardSeedNonce { get; set; }
#else
- public byte[]? CardSeedNonce;
+ public byte[]? CardSeedNonce { get; set; }
#endif
///
/// Reserved3
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
///
/// Copy of first NCCH header (excluding RSA signature)
///
#if NET48
- public NCCHHeader BackupHeader;
+ public NCCHHeader BackupHeader { get; set; }
#else
- public NCCHHeader? BackupHeader;
+ public NCCHHeader? BackupHeader { get; set; }
#endif
}
}
diff --git a/N3DS/MetaData.cs b/N3DS/MetaData.cs
index 9301a53..e2bff33 100644
--- a/N3DS/MetaData.cs
+++ b/N3DS/MetaData.cs
@@ -8,41 +8,41 @@ namespace SabreTools.Models.N3DS
///
/// TODO: Determine numeric format of each entry
#if NET48
- public byte[] TitleIDDependencyList;
+ public byte[] TitleIDDependencyList { get; set; }
#else
- public byte[]? TitleIDDependencyList;
+ public byte[]? TitleIDDependencyList { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved1;
+ public byte[] Reserved1 { get; set; }
#else
- public byte[]? Reserved1;
+ public byte[]? Reserved1 { get; set; }
#endif
///
/// Core Version
///
- public uint CoreVersion;
+ public uint CoreVersion { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
/// Icon Data(.ICN) - Taken from the application's ExeFS
///
#if NET48
- public byte[] IconData;
+ public byte[] IconData { get; set; }
#else
- public byte[]? IconData;
+ public byte[]? IconData { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/N3DS/NCCHExtendedHeader.cs b/N3DS/NCCHExtendedHeader.cs
index 7f3f79d..1272d1b 100644
--- a/N3DS/NCCHExtendedHeader.cs
+++ b/N3DS/NCCHExtendedHeader.cs
@@ -2,7 +2,7 @@
{
///
/// The exheader has two sections:
- /// - The actual exheader data, containing System Control Info (SCI) and Access Control Info (ACI);
+ /// - The actual exheader data, containing System Control Info (SCI) and Access Control Info (ACI) { get; set; }
/// - A signed copy of NCCH HDR public key, and exheader ACI. This version of the ACI is used as limitation to the actual ACI.
///
///
@@ -12,45 +12,45 @@
/// SCI
///
#if NET48
- public SystemControlInfo SCI;
+ public SystemControlInfo SCI { get; set; }
#else
- public SystemControlInfo? SCI;
+ public SystemControlInfo? SCI { get; set; }
#endif
///
/// ACI
///
#if NET48
- public AccessControlInfo ACI;
+ public AccessControlInfo ACI { get; set; }
#else
- public AccessControlInfo? ACI;
+ public AccessControlInfo? ACI { get; set; }
#endif
///
/// AccessDesc signature (RSA-2048-SHA256)
///
#if NET48
- public byte[] AccessDescSignature;
+ public byte[] AccessDescSignature { get; set; }
#else
- public byte[]? AccessDescSignature;
+ public byte[]? AccessDescSignature { get; set; }
#endif
///
/// NCCH HDR RSA-2048 public key
///
#if NET48
- public byte[] NCCHHDRPublicKey;
+ public byte[] NCCHHDRPublicKey { get; set; }
#else
- public byte[]? NCCHHDRPublicKey;
+ public byte[]? NCCHHDRPublicKey { get; set; }
#endif
///
/// ACI (for limitation of first ACI)
///
#if NET48
- public AccessControlInfo ACIForLimitations;
+ public AccessControlInfo ACIForLimitations { get; set; }
#else
- public AccessControlInfo? ACIForLimitations;
+ public AccessControlInfo? ACIForLimitations { get; set; }
#endif
}
}
diff --git a/N3DS/NCCHHeader.cs b/N3DS/NCCHHeader.cs
index 52d6532..5e556a7 100644
--- a/N3DS/NCCHHeader.cs
+++ b/N3DS/NCCHHeader.cs
@@ -7,39 +7,39 @@
/// RSA-2048 signature of the NCCH header, using SHA-256.
///
#if NET48
- public byte[] RSA2048Signature;
+ public byte[] RSA2048Signature { get; set; }
#else
- public byte[]? RSA2048Signature;
+ public byte[]? RSA2048Signature { get; set; }
#endif
///
/// Magic ID, always 'NCCH'
///
#if NET48
- public string MagicID;
+ public string MagicID { get; set; }
#else
- public string? MagicID;
+ public string? MagicID { get; set; }
#endif
///
/// Content size, in media units (1 media unit = 0x200 bytes)
///
- public uint ContentSizeInMediaUnits;
+ public uint ContentSizeInMediaUnits { get; set; }
///
/// Partition ID
///
- public ulong PartitionId;
+ public ulong PartitionId { get; set; }
///
/// Maker code
///
- public ushort MakerCode;
+ public ushort MakerCode { get; set; }
///
/// Version
///
- public ushort Version;
+ public ushort Version { get; set; }
///
/// When ncchflag[7] = 0x20 starting with FIRM 9.6.0-X, this is compared with the first output u32 from a
@@ -47,142 +47,142 @@
/// [programID from NCCH + 0x118]. This hash is only used for verification of the content lock seed, and
/// is not the actual keyY.
///
- public uint VerificationHash;
+ public uint VerificationHash { get; set; }
///
/// Program ID
///
#if NET48
- public byte[] ProgramId;
+ public byte[] ProgramId { get; set; }
#else
- public byte[]? ProgramId;
+ public byte[]? ProgramId { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved1;
+ public byte[] Reserved1 { get; set; }
#else
- public byte[]? Reserved1;
+ public byte[]? Reserved1 { get; set; }
#endif
///
/// Logo Region SHA-256 hash. (For applications built with SDK 5+) (Supported from firmware: 5.0.0-11)
///
#if NET48
- public byte[] LogoRegionHash;
+ public byte[] LogoRegionHash { get; set; }
#else
- public byte[]? LogoRegionHash;
+ public byte[]? LogoRegionHash { get; set; }
#endif
///
/// Product code
///
#if NET48
- public string ProductCode;
+ public string ProductCode { get; set; }
#else
- public string? ProductCode;
+ public string? ProductCode { get; set; }
#endif
///
/// Extended header SHA-256 hash (SHA256 of 2x Alignment Size, beginning at 0x0 of ExHeader)
///
#if NET48
- public byte[] ExtendedHeaderHash;
+ public byte[] ExtendedHeaderHash { get; set; }
#else
- public byte[]? ExtendedHeaderHash;
+ public byte[]? ExtendedHeaderHash { get; set; }
#endif
///
/// Extended header size, in bytes
///
- public uint ExtendedHeaderSizeInBytes;
+ public uint ExtendedHeaderSizeInBytes { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
/// Flags
///
#if NET48
- public NCCHHeaderFlags Flags;
+ public NCCHHeaderFlags Flags { get; set; }
#else
- public NCCHHeaderFlags? Flags;
+ public NCCHHeaderFlags? Flags { get; set; }
#endif
///
/// Plain region offset, in media units
///
- public uint PlainRegionOffsetInMediaUnits;
+ public uint PlainRegionOffsetInMediaUnits { get; set; }
///
/// Plain region size, in media units
///
- public uint PlainRegionSizeInMediaUnits;
+ public uint PlainRegionSizeInMediaUnits { get; set; }
///
/// Logo Region offset, in media units (For applications built with SDK 5+) (Supported from firmware: 5.0.0-11)
///
- public uint LogoRegionOffsetInMediaUnits;
+ public uint LogoRegionOffsetInMediaUnits { get; set; }
///
/// Logo Region size, in media units (For applications built with SDK 5+) (Supported from firmware: 5.0.0-11)
///
- public uint LogoRegionSizeInMediaUnits;
+ public uint LogoRegionSizeInMediaUnits { get; set; }
///
/// ExeFS offset, in media units
///
- public uint ExeFSOffsetInMediaUnits;
+ public uint ExeFSOffsetInMediaUnits { get; set; }
///
/// ExeFS size, in media units
///
- public uint ExeFSSizeInMediaUnits;
+ public uint ExeFSSizeInMediaUnits { get; set; }
///
/// ExeFS hash region size, in media units
///
- public uint ExeFSHashRegionSizeInMediaUnits;
+ public uint ExeFSHashRegionSizeInMediaUnits { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved3;
+ public byte[] Reserved3 { get; set; }
#else
- public byte[]? Reserved3;
+ public byte[]? Reserved3 { get; set; }
#endif
///
/// RomFS offset, in media units
///
- public uint RomFSOffsetInMediaUnits;
+ public uint RomFSOffsetInMediaUnits { get; set; }
///
/// RomFS size, in media units
///
- public uint RomFSSizeInMediaUnits;
+ public uint RomFSSizeInMediaUnits { get; set; }
///
/// RomFS hash region size, in media units
///
- public uint RomFSHashRegionSizeInMediaUnits;
+ public uint RomFSHashRegionSizeInMediaUnits { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved4;
+ public byte[] Reserved4 { get; set; }
#else
- public byte[]? Reserved4;
+ public byte[]? Reserved4 { get; set; }
#endif
///
@@ -190,9 +190,9 @@
/// media units specified in the ExeFS hash region size)
///
#if NET48
- public byte[] ExeFSSuperblockHash;
+ public byte[] ExeFSSuperblockHash { get; set; }
#else
- public byte[]? ExeFSSuperblockHash;
+ public byte[]? ExeFSSuperblockHash { get; set; }
#endif
///
@@ -200,9 +200,9 @@
/// of media units specified in the RomFS hash region size)
///
#if NET48
- public byte[] RomFSSuperblockHash;
+ public byte[] RomFSSuperblockHash { get; set; }
#else
- public byte[]? RomFSSuperblockHash;
+ public byte[]? RomFSSuperblockHash { get; set; }
#endif
}
}
diff --git a/N3DS/NCCHHeaderFlags.cs b/N3DS/NCCHHeaderFlags.cs
index edf43c1..6d9b816 100644
--- a/N3DS/NCCHHeaderFlags.cs
+++ b/N3DS/NCCHHeaderFlags.cs
@@ -6,44 +6,44 @@
///
/// Reserved
///
- public byte Reserved0;
+ public byte Reserved0 { get; set; }
///
/// Reserved
///
- public byte Reserved1;
+ public byte Reserved1 { get; set; }
///
/// Reserved
///
- public byte Reserved2;
+ public byte Reserved2 { get; set; }
///
/// Crypto Method: When this is non-zero, a NCCH crypto method using two keyslots is used.
///
- public CryptoMethod CryptoMethod;
+ public CryptoMethod CryptoMethod { get; set; }
///
/// Content Platform: 1 = CTR, 2 = snake (New 3DS).
///
- public ContentPlatform ContentPlatform;
+ public ContentPlatform ContentPlatform { get; set; }
///
/// Content Type Bit-masks: Data = 0x1, Executable = 0x2, SystemUpdate = 0x4, Manual = 0x8,
/// Child = (0x4|0x8), Trial = 0x10. When 'Data' is set, but not 'Executable', NCCH is a CFA.
/// Otherwise when 'Executable' is set, NCCH is a CXI.
///
- public ContentType MediaPlatformIndex;
+ public ContentType MediaPlatformIndex { get; set; }
///
- /// Content Unit Size i.e. u32 ContentUnitSize = 0x200*2^flags[6];
+ /// Content Unit Size i.e. u32 ContentUnitSize = 0x200*2^flags[6] { get; set; }
///
- public byte ContentUnitSize;
+ public byte ContentUnitSize { get; set; }
///
/// Bit-masks: FixedCryptoKey = 0x1, NoMountRomFs = 0x2, NoCrypto = 0x4, using a new keyY
/// generator = 0x20(starting with FIRM 9.6.0-X).
///
- public BitMasks BitMasks;
+ public BitMasks BitMasks { get; set; }
}
}
diff --git a/N3DS/NCSDHeader.cs b/N3DS/NCSDHeader.cs
index 5097f55..76f5564 100644
--- a/N3DS/NCSDHeader.cs
+++ b/N3DS/NCSDHeader.cs
@@ -17,55 +17,55 @@
/// RSA-2048 SHA-256 signature of the NCSD header
///
#if NET48
- public byte[] RSA2048Signature;
+ public byte[] RSA2048Signature { get; set; }
#else
- public byte[]? RSA2048Signature;
+ public byte[]? RSA2048Signature { get; set; }
#endif
///
/// Magic Number 'NCSD'
///
#if NET48
- public string MagicNumber;
+ public string MagicNumber { get; set; }
#else
- public string? MagicNumber;
+ public string? MagicNumber { get; set; }
#endif
///
/// Size of the NCSD image, in media units (1 media unit = 0x200 bytes)
///
- public uint ImageSizeInMediaUnits;
+ public uint ImageSizeInMediaUnits { get; set; }
///
/// Media ID
///
#if NET48
- public byte[] MediaId;
+ public byte[] MediaId { get; set; }
#else
- public byte[]? MediaId;
+ public byte[]? MediaId { get; set; }
#endif
///
/// Partitions FS type (0=None, 1=Normal, 3=FIRM, 4=AGB_FIRM save)
///
- public FilesystemType PartitionsFSType;
+ public FilesystemType PartitionsFSType { get; set; }
///
/// Partitions crypt type (each byte corresponds to a partition in the partition table)
///
#if NET48
- public byte[] PartitionsCryptType;
+ public byte[] PartitionsCryptType { get; set; }
#else
- public byte[]? PartitionsCryptType;
+ public byte[]? PartitionsCryptType { get; set; }
#endif
///
/// Offset & Length partition table, in media units
///
#if NET48
- public PartitionTableEntry[] PartitionsTable;
+ public PartitionTableEntry[] PartitionsTable { get; set; }
#else
- public PartitionTableEntry?[]? PartitionsTable;
+ public PartitionTableEntry?[]? PartitionsTable { get; set; }
#endif
#endregion
@@ -76,55 +76,55 @@
/// Exheader SHA-256 hash
///
#if NET48
- public byte[] ExheaderHash;
+ public byte[] ExheaderHash { get; set; }
#else
- public byte[]? ExheaderHash;
+ public byte[]? ExheaderHash { get; set; }
#endif
///
/// Additional header size
///
- public uint AdditionalHeaderSize;
+ public uint AdditionalHeaderSize { get; set; }
///
/// Sector zero offset
///
- public uint SectorZeroOffset;
+ public uint SectorZeroOffset { get; set; }
///
/// Partition Flags
///
#if NET48
- public byte[] PartitionFlags;
+ public byte[] PartitionFlags { get; set; }
#else
- public byte[]? PartitionFlags;
+ public byte[]? PartitionFlags { get; set; }
#endif
///
/// Partition ID table
///
#if NET48
- public ulong[] PartitionIdTable;
+ public ulong[] PartitionIdTable { get; set; }
#else
- public ulong[]? PartitionIdTable;
+ public ulong[]? PartitionIdTable { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved1;
+ public byte[] Reserved1 { get; set; }
#else
- public byte[]? Reserved1;
+ public byte[]? Reserved1 { get; set; }
#endif
///
/// Reserved?
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
@@ -133,12 +133,12 @@
/// value during NCSD verification/loading). This appears to enable a new, likely hardware-based,
/// antipiracy check on cartridges.
///
- public byte FirmUpdateByte1;
+ public byte FirmUpdateByte1 { get; set; }
///
/// Support for this was implemented with 9.6.0-X FIRM, see below regarding save crypto.
///
- public byte FirmUpdateByte2;
+ public byte FirmUpdateByte2 { get; set; }
#endregion
@@ -148,18 +148,18 @@
/// Unknown
///
#if NET48
- public byte[] Unknown;
+ public byte[] Unknown { get; set; }
#else
- public byte[]? Unknown;
+ public byte[]? Unknown { get; set; }
#endif
///
/// Encrypted MBR partition-table, for the TWL partitions(key-data used for this keyslot is console-unique).
///
#if NET48
- public byte[] EncryptedMBR;
+ public byte[] EncryptedMBR { get; set; }
#else
- public byte[]? EncryptedMBR;
+ public byte[]? EncryptedMBR { get; set; }
#endif
#endregion
diff --git a/N3DS/PartitionTableEntry.cs b/N3DS/PartitionTableEntry.cs
index 64325db..8e0ac15 100644
--- a/N3DS/PartitionTableEntry.cs
+++ b/N3DS/PartitionTableEntry.cs
@@ -9,11 +9,11 @@
///
/// Offset
///
- public uint Offset;
+ public uint Offset { get; set; }
///
/// Length
///
- public uint Length;
+ public uint Length { get; set; }
}
}
diff --git a/N3DS/RomFSHeader.cs b/N3DS/RomFSHeader.cs
index 9a35f8e..8056728 100644
--- a/N3DS/RomFSHeader.cs
+++ b/N3DS/RomFSHeader.cs
@@ -12,105 +12,105 @@
/// Magic "IVFC"
///
#if NET48
- public string MagicString;
+ public string MagicString { get; set; }
#else
- public string? MagicString;
+ public string? MagicString { get; set; }
#endif
///
/// Magic number 0x10000
///
- public uint MagicNumber;
+ public uint MagicNumber { get; set; }
///
/// Master hash size
///
- public uint MasterHashSize;
+ public uint MasterHashSize { get; set; }
///
/// Level 1 logical offset
///
- public ulong Level1LogicalOffset;
+ public ulong Level1LogicalOffset { get; set; }
///
/// Level 1 hashdata size
///
- public ulong Level1HashdataSize;
+ public ulong Level1HashdataSize { get; set; }
///
/// Level 1 block size, in log2
///
- public uint Level1BlockSizeLog2;
+ public uint Level1BlockSizeLog2 { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved1;
+ public byte[] Reserved1 { get; set; }
#else
- public byte[]? Reserved1;
+ public byte[]? Reserved1 { get; set; }
#endif
///
/// Level 2 logical offset
///
- public ulong Level2LogicalOffset;
+ public ulong Level2LogicalOffset { get; set; }
///
/// Level 2 hashdata size
///
- public ulong Level2HashdataSize;
+ public ulong Level2HashdataSize { get; set; }
///
/// Level 2 block size, in log2
///
- public uint Level2BlockSizeLog2;
+ public uint Level2BlockSizeLog2 { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
/// Level 3 logical offset
///
- public ulong Level3LogicalOffset;
+ public ulong Level3LogicalOffset { get; set; }
///
/// Level 3 hashdata size
///
- public ulong Level3HashdataSize;
+ public ulong Level3HashdataSize { get; set; }
///
/// Level 3 block size, in log2
///
- public uint Level3BlockSizeLog2;
+ public uint Level3BlockSizeLog2 { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved3;
+ public byte[] Reserved3 { get; set; }
#else
- public byte[]? Reserved3;
+ public byte[]? Reserved3 { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved4;
+ public byte[] Reserved4 { get; set; }
#else
- public byte[]? Reserved4;
+ public byte[]? Reserved4 { get; set; }
#endif
///
/// Optional info size.
///
- public uint OptionalInfoSize;
+ public uint OptionalInfoSize { get; set; }
}
}
diff --git a/N3DS/StorageInfo.cs b/N3DS/StorageInfo.cs
index b3300b9..68180de 100644
--- a/N3DS/StorageInfo.cs
+++ b/N3DS/StorageInfo.cs
@@ -9,24 +9,24 @@
///
/// Extdata ID
///
- public ulong ExtdataID;
+ public ulong ExtdataID { get; set; }
///
/// System savedata IDs
///
#if NET48
- public byte[] SystemSavedataIDs;
+ public byte[] SystemSavedataIDs { get; set; }
#else
- public byte[]? SystemSavedataIDs;
+ public byte[]? SystemSavedataIDs { get; set; }
#endif
///
/// Storage accessible unique IDs
///
#if NET48
- public byte[] StorageAccessibleUniqueIDs;
+ public byte[] StorageAccessibleUniqueIDs { get; set; }
#else
- public byte[]? StorageAccessibleUniqueIDs;
+ public byte[]? StorageAccessibleUniqueIDs { get; set; }
#endif
///
@@ -35,14 +35,14 @@
/// TODO: Create enum for the flag values
/// TODO: Combine with "other attributes"
#if NET48
- public byte[] FileSystemAccessInfo;
+ public byte[] FileSystemAccessInfo { get; set; }
#else
- public byte[]? FileSystemAccessInfo;
+ public byte[]? FileSystemAccessInfo { get; set; }
#endif
///
/// Other attributes
///
- public StorageInfoOtherAttributes OtherAttributes;
+ public StorageInfoOtherAttributes OtherAttributes { get; set; }
}
}
diff --git a/N3DS/SystemControlInfo.cs b/N3DS/SystemControlInfo.cs
index b15d3fa..68e02e0 100644
--- a/N3DS/SystemControlInfo.cs
+++ b/N3DS/SystemControlInfo.cs
@@ -7,92 +7,92 @@
/// Application title (default is "CtrApp")
///
#if NET48
- public string ApplicationTitle;
+ public string ApplicationTitle { get; set; }
#else
- public string? ApplicationTitle;
+ public string? ApplicationTitle { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved1;
+ public byte[] Reserved1 { get; set; }
#else
- public byte[]? Reserved1;
+ public byte[]? Reserved1 { get; set; }
#endif
///
/// Flag (bit 0: CompressExefsCode, bit 1: SDApplication)
///
- public byte Flag;
+ public byte Flag { get; set; }
///
/// Remaster version
///
- public ushort RemasterVersion;
+ public ushort RemasterVersion { get; set; }
///
/// Text code set info
///
#if NET48
- public CodeSetInfo TextCodeSetInfo;
+ public CodeSetInfo TextCodeSetInfo { get; set; }
#else
- public CodeSetInfo? TextCodeSetInfo;
+ public CodeSetInfo? TextCodeSetInfo { get; set; }
#endif
///
/// Stack size
///
- public uint StackSize;
+ public uint StackSize { get; set; }
///
/// Read-only code set info
///
#if NET48
- public CodeSetInfo ReadOnlyCodeSetInfo;
+ public CodeSetInfo ReadOnlyCodeSetInfo { get; set; }
#else
- public CodeSetInfo? ReadOnlyCodeSetInfo;
+ public CodeSetInfo? ReadOnlyCodeSetInfo { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
/// Data code set info
///
#if NET48
- public CodeSetInfo DataCodeSetInfo;
+ public CodeSetInfo DataCodeSetInfo { get; set; }
#else
- public CodeSetInfo? DataCodeSetInfo;
+ public CodeSetInfo? DataCodeSetInfo { get; set; }
#endif
///
/// BSS size
///
- public uint BSSSize;
+ public uint BSSSize { get; set; }
///
/// Dependency module (program ID) list
///
#if NET48
- public ulong[] DependencyModuleList;
+ public ulong[] DependencyModuleList { get; set; }
#else
- public ulong[]? DependencyModuleList;
+ public ulong[]? DependencyModuleList { get; set; }
#endif
///
/// SystemInfo
///
#if NET48
- public SystemInfo SystemInfo;
+ public SystemInfo SystemInfo { get; set; }
#else
- public SystemInfo? SystemInfo;
+ public SystemInfo? SystemInfo { get; set; }
#endif
}
}
diff --git a/N3DS/SystemInfo.cs b/N3DS/SystemInfo.cs
index 19f898c..7ad6d1b 100644
--- a/N3DS/SystemInfo.cs
+++ b/N3DS/SystemInfo.cs
@@ -6,20 +6,20 @@
///
/// SaveData Size
///
- public ulong SaveDataSize;
+ public ulong SaveDataSize { get; set; }
///
/// Jump ID
///
- public ulong JumpID;
+ public ulong JumpID { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved;
+ public byte[] Reserved { get; set; }
#else
- public byte[]? Reserved;
+ public byte[]? Reserved { get; set; }
#endif
}
}
diff --git a/N3DS/TestData.cs b/N3DS/TestData.cs
index 0335d04..7fd1281 100644
--- a/N3DS/TestData.cs
+++ b/N3DS/TestData.cs
@@ -10,86 +10,86 @@ namespace SabreTools.Models.N3DS
/// The bytes FF 00 FF 00 AA 55 AA 55.
///
#if NET48
- public byte[] Signature;
+ public byte[] Signature { get; set; }
#else
- public byte[]? Signature;
+ public byte[]? Signature { get; set; }
#endif
///
/// An ascending byte sequence equal to the offset mod 256 (08 09 0A ... FE FF 00 01 ... FF).
///
#if NET48
- public byte[] AscendingByteSequence;
+ public byte[] AscendingByteSequence { get; set; }
#else
- public byte[]? AscendingByteSequence;
+ public byte[]? AscendingByteSequence { get; set; }
#endif
///
/// A descending byte sequence equal to 255 minus the offset mod 256 (FF FE FD ... 00 FF DE ... 00).
///
#if NET48
- public byte[] DescendingByteSequence;
+ public byte[] DescendingByteSequence { get; set; }
#else
- public byte[]? DescendingByteSequence;
+ public byte[]? DescendingByteSequence { get; set; }
#endif
///
/// Filled with 00 (0b00000000) bytes.
///
#if NET48
- public byte[] Filled00;
+ public byte[] Filled00 { get; set; }
#else
- public byte[]? Filled00;
+ public byte[]? Filled00 { get; set; }
#endif
///
/// Filled with FF (0b11111111) bytes.
///
#if NET48
- public byte[] FilledFF;
+ public byte[] FilledFF { get; set; }
#else
- public byte[]? FilledFF;
+ public byte[]? FilledFF { get; set; }
#endif
///
/// Filled with 0F (0b00001111) bytes.
///
#if NET48
- public byte[] Filled0F;
+ public byte[] Filled0F { get; set; }
#else
- public byte[]? Filled0F;
+ public byte[]? Filled0F { get; set; }
#endif
///
/// Filled with F0 (0b11110000) bytes.
///
#if NET48
- public byte[] FilledF0;
+ public byte[] FilledF0 { get; set; }
#else
- public byte[]? FilledF0;
+ public byte[]? FilledF0 { get; set; }
#endif
///
/// Filled with 55 (0b01010101) bytes.
///
#if NET48
- public byte[] Filled55;
+ public byte[] Filled55 { get; set; }
#else
- public byte[]? Filled55;
+ public byte[]? Filled55 { get; set; }
#endif
///
/// Filled with AA (0b10101010) bytes.
///
#if NET48
- public byte[] FilledAA;
+ public byte[] FilledAA { get; set; }
#else
- public byte[]? FilledAA;
+ public byte[]? FilledAA { get; set; }
#endif
///
/// The final byte is 00 (0b00000000).
///
- public byte FinalByte;
+ public byte FinalByte { get; set; }
}
}
diff --git a/N3DS/Ticket.cs b/N3DS/Ticket.cs
index 1e9db74..957cfb6 100644
--- a/N3DS/Ticket.cs
+++ b/N3DS/Ticket.cs
@@ -10,68 +10,68 @@ namespace SabreTools.Models.N3DS
///
/// Signature Type
///
- public SignatureType SignatureType;
+ public SignatureType SignatureType { get; set; }
///
/// Signature size
///
- public ushort SignatureSize;
+ public ushort SignatureSize { get; set; }
///
/// Padding size
///
- public byte PaddingSize;
+ public byte PaddingSize { get; set; }
///
/// Signature
///
#if NET48
- public byte[] Signature;
+ public byte[] Signature { get; set; }
#else
- public byte[]? Signature;
+ public byte[]? Signature { get; set; }
#endif
///
/// Padding
///
#if NET48
- public byte[] Padding;
+ public byte[] Padding { get; set; }
#else
- public byte[]? Padding;
+ public byte[]? Padding { get; set; }
#endif
///
/// Issuer
///
#if NET48
- public string Issuer;
+ public string Issuer { get; set; }
#else
- public string? Issuer;
+ public string? Issuer { get; set; }
#endif
///
/// ECC PublicKey
///
#if NET48
- public byte[] ECCPublicKey;
+ public byte[] ECCPublicKey { get; set; }
#else
- public byte[]? ECCPublicKey;
+ public byte[]? ECCPublicKey { get; set; }
#endif
///
/// Version (For 3DS this is always 1)
///
- public byte Version;
+ public byte Version { get; set; }
///
/// CaCrlVersion
///
- public byte CaCrlVersion;
+ public byte CaCrlVersion { get; set; }
///
/// SignerCrlVersion
///
- public byte SignerCrlVersion;
+ public byte SignerCrlVersion { get; set; }
///
/// TitleKey (normal-key encrypted using one of the common keyYs; see below)
@@ -88,38 +88,38 @@ namespace SabreTools.Models.N3DS
/// the content index (as big endian u16, padded with trailing zeroes) as the IV.
///
#if NET48
- public byte[] TitleKey;
+ public byte[] TitleKey { get; set; }
#else
- public byte[]? TitleKey;
+ public byte[]? TitleKey { get; set; }
#endif
///
/// Reserved
///
- public byte Reserved1;
+ public byte Reserved1 { get; set; }
///
/// TicketID
///
- public ulong TicketID;
+ public ulong TicketID { get; set; }
///
/// ConsoleID
///
- public uint ConsoleID;
+ public uint ConsoleID { get; set; }
///
/// TitleID
///
- public ulong TitleID;
+ public ulong TitleID { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
@@ -129,58 +129,58 @@ namespace SabreTools.Models.N3DS
/// The Ticket Title Version is generally the same as the title version stored in the
/// Title Metadata. Although it doesn't have to match the TMD version to be valid.
///
- public ushort TicketTitleVersion;
+ public ushort TicketTitleVersion { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved3;
+ public byte[] Reserved3 { get; set; }
#else
- public byte[]? Reserved3;
+ public byte[]? Reserved3 { get; set; }
#endif
///
/// License Type
///
- public byte LicenseType;
+ public byte LicenseType { get; set; }
///
/// Index to the common keyY used for this ticket, usually 0x1 for retail system titles
///
- public byte CommonKeyYIndex;
+ public byte CommonKeyYIndex { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved4;
+ public byte[] Reserved4 { get; set; }
#else
- public byte[]? Reserved4;
+ public byte[]? Reserved4 { get; set; }
#endif
///
/// eShop Account ID?
///
- public uint eShopAccountID;
+ public uint eShopAccountID { get; set; }
///
/// Reserved
///
- public byte Reserved5;
+ public byte Reserved5 { get; set; }
///
/// Audit
///
- public byte Audit;
+ public byte Audit { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved6;
+ public byte[] Reserved6 { get; set; }
#else
- public byte[]? Reserved6;
+ public byte[]? Reserved6 { get; set; }
#endif
///
@@ -190,9 +190,9 @@ namespace SabreTools.Models.N3DS
/// In demos, the first u32 in the "Limits" section is 0x4, then the second u32 is the max-playcount.
///
#if NET48
- public uint[] Limits;
+ public uint[] Limits { get; set; }
#else
- public uint[]? Limits;
+ public uint[]? Limits { get; set; }
#endif
///
@@ -200,15 +200,15 @@ namespace SabreTools.Models.N3DS
/// with seemingly a minimal of 20 bytes, the second u32 in big endian defines
/// the full value of X.
///
- public uint ContentIndexSize;
+ public uint ContentIndexSize { get; set; }
///
/// Content Index
///
#if NET48
- public byte[] ContentIndex;
+ public byte[] ContentIndex { get; set; }
#else
- public byte[]? ContentIndex;
+ public byte[]? ContentIndex { get; set; }
#endif
///
@@ -218,9 +218,9 @@ namespace SabreTools.Models.N3DS
/// https://www.3dbrew.org/wiki/Ticket#Certificate_Chain
///
#if NET48
- public Certificate[] CertificateChain;
+ public Certificate[] CertificateChain { get; set; }
#else
- public Certificate?[]? CertificateChain;
+ public Certificate?[]? CertificateChain { get; set; }
#endif
}
}
diff --git a/N3DS/TitleMetadata.cs b/N3DS/TitleMetadata.cs
index 57214b5..6ae235d 100644
--- a/N3DS/TitleMetadata.cs
+++ b/N3DS/TitleMetadata.cs
@@ -11,163 +11,163 @@ namespace SabreTools.Models.N3DS
///
/// Signature Type
///
- public SignatureType SignatureType;
+ public SignatureType SignatureType { get; set; }
///
/// Signature size
///
- public ushort SignatureSize;
+ public ushort SignatureSize { get; set; }
///
/// Padding size
///
- public byte PaddingSize;
+ public byte PaddingSize { get; set; }
///
/// Signature
///
#if NET48
- public byte[] Signature;
+ public byte[] Signature { get; set; }
#else
- public byte[]? Signature;
+ public byte[]? Signature { get; set; }
#endif
///
/// Padding
///
#if NET48
- public byte[] Padding1;
+ public byte[] Padding1 { get; set; }
#else
- public byte[]? Padding1;
+ public byte[]? Padding1 { get; set; }
#endif
///
/// Signature Issuer
///
#if NET48
- public string Issuer;
+ public string Issuer { get; set; }
#else
- public string? Issuer;
+ public string? Issuer { get; set; }
#endif
///
/// Version
///
- public byte Version;
+ public byte Version { get; set; }
///
/// CaCrlVersion
///
- public byte CaCrlVersion;
+ public byte CaCrlVersion { get; set; }
///
/// SignerCrlVersion
///
- public byte SignerCrlVersion;
+ public byte SignerCrlVersion { get; set; }
///
/// Reserved
///
- public byte Reserved1;
+ public byte Reserved1 { get; set; }
///
/// System Version
///
- public ulong SystemVersion;
+ public ulong SystemVersion { get; set; }
///
/// TitleID
///
- public ulong TitleID;
+ public ulong TitleID { get; set; }
///
/// Title Type
///
- public uint TitleType;
+ public uint TitleType { get; set; }
///
/// Group ID
///
- public ushort GroupID;
+ public ushort GroupID { get; set; }
///
/// Save Data Size in Little Endian (Bytes) (Also SRL Public Save Data Size)
///
- public uint SaveDataSize;
+ public uint SaveDataSize { get; set; }
///
/// SRL Private Save Data Size in Little Endian (Bytes)
///
- public uint SRLPrivateSaveDataSize;
+ public uint SRLPrivateSaveDataSize { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
/// SRL Flag
///
- public byte SRLFlag;
+ public byte SRLFlag { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved3;
+ public byte[] Reserved3 { get; set; }
#else
- public byte[]? Reserved3;
+ public byte[]? Reserved3 { get; set; }
#endif
///
/// Access Rights
///
- public uint AccessRights;
+ public uint AccessRights { get; set; }
///
/// Title Version
///
- public ushort TitleVersion;
+ public ushort TitleVersion { get; set; }
///
/// Content Count (big-endian)
///
- public ushort ContentCount;
+ public ushort ContentCount { get; set; }
///
/// Boot Content
///
- public ushort BootContent;
+ public ushort BootContent { get; set; }
///
/// Padding
///
#if NET48
- public byte[] Padding2;
+ public byte[] Padding2 { get; set; }
#else
- public byte[]? Padding2;
+ public byte[]? Padding2 { get; set; }
#endif
///
/// SHA-256 Hash of the Content Info Records
///
#if NET48
- public byte[] SHA256HashContentInfoRecords;
+ public byte[] SHA256HashContentInfoRecords { get; set; }
#else
- public byte[]? SHA256HashContentInfoRecords;
+ public byte[]? SHA256HashContentInfoRecords { get; set; }
#endif
///
/// There are 64 of these records, usually only the first is used.
///
#if NET48
- public ContentInfoRecord[] ContentInfoRecords;
+ public ContentInfoRecord[] ContentInfoRecords { get; set; }
#else
- public ContentInfoRecord?[]? ContentInfoRecords;
+ public ContentInfoRecord?[]? ContentInfoRecords { get; set; }
#endif
///
@@ -175,9 +175,9 @@ namespace SabreTools.Models.N3DS
/// (Determined by "Content Count" in the TMD Header).
///
#if NET48
- public ContentChunkRecord[] ContentChunkRecords;
+ public ContentChunkRecord[] ContentChunkRecords { get; set; }
#else
- public ContentChunkRecord?[]? ContentChunkRecords;
+ public ContentChunkRecord?[]? ContentChunkRecords { get; set; }
#endif
///
@@ -187,9 +187,9 @@ namespace SabreTools.Models.N3DS
/// https://www.3dbrew.org/wiki/Title_metadata#Certificate_Chain
///
#if NET48
- public Certificate[] CertificateChain;
+ public Certificate[] CertificateChain { get; set; }
#else
- public Certificate?[]? CertificateChain;
+ public Certificate?[]? CertificateChain { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/NCF/ChecksumEntry.cs b/NCF/ChecksumEntry.cs
index 11dfd4e..d75ac17 100644
--- a/NCF/ChecksumEntry.cs
+++ b/NCF/ChecksumEntry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.NCF
///
/// Checksum.
///
- public uint Checksum;
+ public uint Checksum { get; set; }
}
}
diff --git a/NCF/ChecksumMapEntry.cs b/NCF/ChecksumMapEntry.cs
index 09a3d81..7ece4ab 100644
--- a/NCF/ChecksumMapEntry.cs
+++ b/NCF/ChecksumMapEntry.cs
@@ -6,11 +6,11 @@ namespace SabreTools.Models.NCF
///
/// Number of checksums.
///
- public uint ChecksumCount;
+ public uint ChecksumCount { get; set; }
///
/// Index of first checksum.
///
- public uint FirstChecksumIndex;
+ public uint FirstChecksumIndex { get; set; }
}
}
diff --git a/NCF/ChecksumMapHeader.cs b/NCF/ChecksumMapHeader.cs
index 6c387bc..2b112c2 100644
--- a/NCF/ChecksumMapHeader.cs
+++ b/NCF/ChecksumMapHeader.cs
@@ -6,21 +6,21 @@ namespace SabreTools.Models.NCF
///
/// Always 0x14893721
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Always 0x00000001
///
- public uint Dummy1;
+ public uint Dummy1 { get; set; }
///
/// Number of items.
///
- public uint ItemCount;
+ public uint ItemCount { get; set; }
///
/// Number of checksums.
///
- public uint ChecksumCount;
+ public uint ChecksumCount { get; set; }
}
}
diff --git a/NCF/DirectoryCopyEntry.cs b/NCF/DirectoryCopyEntry.cs
index 41e3559..5a55449 100644
--- a/NCF/DirectoryCopyEntry.cs
+++ b/NCF/DirectoryCopyEntry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.NCF
///
/// Index of the directory item.
///
- public uint DirectoryIndex;
+ public uint DirectoryIndex { get; set; }
}
}
diff --git a/NCF/DirectoryEntry.cs b/NCF/DirectoryEntry.cs
index dcad712..494f149 100644
--- a/NCF/DirectoryEntry.cs
+++ b/NCF/DirectoryEntry.cs
@@ -6,45 +6,45 @@ namespace SabreTools.Models.NCF
///
/// Offset to the directory item name from the end of the directory items.
///
- public uint NameOffset;
+ public uint NameOffset { get; set; }
///
/// Directory item name from the end of the directory items.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
/// Size of the item. (If file, file size. If folder, num items.)
///
- public uint ItemSize;
+ public uint ItemSize { get; set; }
///
/// Checksome index. (0xFFFFFFFF == None).
///
- public uint ChecksumIndex;
+ public uint ChecksumIndex { get; set; }
///
/// Flags for the directory item. (0x00000000 == Folder).
///
- public HL_NCF_FLAG DirectoryFlags;
+ public HL_NCF_FLAG DirectoryFlags { get; set; }
///
/// Index of the parent directory item. (0xFFFFFFFF == None).
///
- public uint ParentIndex;
+ public uint ParentIndex { get; set; }
///
/// Index of the next directory item. (0x00000000 == None).
///
- public uint NextIndex;
+ public uint NextIndex { get; set; }
///
/// Index of the first directory item. (0x00000000 == None).
///
- public uint FirstIndex;
+ public uint FirstIndex { get; set; }
}
}
diff --git a/NCF/DirectoryHeader.cs b/NCF/DirectoryHeader.cs
index e6915c7..b61d27d 100644
--- a/NCF/DirectoryHeader.cs
+++ b/NCF/DirectoryHeader.cs
@@ -6,71 +6,71 @@ namespace SabreTools.Models.NCF
///
/// Always 0x00000004
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Cache ID.
///
- public uint CacheID;
+ public uint CacheID { get; set; }
///
/// NCF file version.
///
- public uint LastVersionPlayed;
+ public uint LastVersionPlayed { get; set; }
///
/// Number of items in the directory.
///
- public uint ItemCount;
+ public uint ItemCount { get; set; }
///
/// Number of files in the directory.
///
- public uint FileCount;
+ public uint FileCount { get; set; }
///
/// Always 0x00008000. Data per checksum?
///
- public uint ChecksumDataLength;
+ public uint ChecksumDataLength { get; set; }
///
/// Size of lpNCFDirectoryEntries & lpNCFDirectoryNames & lpNCFDirectoryInfo1Entries & lpNCFDirectoryInfo2Entries & lpNCFDirectoryCopyEntries & lpNCFDirectoryLocalEntries in bytes.
///
- public uint DirectorySize;
+ public uint DirectorySize { get; set; }
///
/// Size of the directory names in bytes.
///
- public uint NameSize;
+ public uint NameSize { get; set; }
///
/// Number of Info1 entires.
///
- public uint Info1Count;
+ public uint Info1Count { get; set; }
///
/// Number of files to copy.
///
- public uint CopyCount;
+ public uint CopyCount { get; set; }
///
/// Number of files to keep local.
///
- public uint LocalCount;
+ public uint LocalCount { get; set; }
///
/// Reserved
///
- public uint Dummy1;
+ public uint Dummy1 { get; set; }
///
/// Reserved
///
- public uint Dummy2;
+ public uint Dummy2 { get; set; }
///
/// Header checksum.
///
- public uint Checksum;
+ public uint Checksum { get; set; }
}
}
diff --git a/NCF/DirectoryInfo1Entry.cs b/NCF/DirectoryInfo1Entry.cs
index a84eb8c..3e65147 100644
--- a/NCF/DirectoryInfo1Entry.cs
+++ b/NCF/DirectoryInfo1Entry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.NCF
///
/// Reserved
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
}
}
diff --git a/NCF/DirectoryLocalEntry.cs b/NCF/DirectoryLocalEntry.cs
index 4a913f1..de47a67 100644
--- a/NCF/DirectoryLocalEntry.cs
+++ b/NCF/DirectoryLocalEntry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.NCF
///
/// Index of the directory item.
///
- public uint DirectoryIndex;
+ public uint DirectoryIndex { get; set; }
}
}
diff --git a/NCF/Header.cs b/NCF/Header.cs
index 2bd3bc9..8a38953 100644
--- a/NCF/Header.cs
+++ b/NCF/Header.cs
@@ -6,56 +6,56 @@ namespace SabreTools.Models.NCF
///
/// Always 0x00000001
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Always 0x00000002
///
- public uint MajorVersion;
+ public uint MajorVersion { get; set; }
///
/// NCF version number.
///
- public uint MinorVersion;
+ public uint MinorVersion { get; set; }
///
/// Cache ID
///
- public uint CacheID;
+ public uint CacheID { get; set; }
///
/// Last version played
///
- public uint LastVersionPlayed;
+ public uint LastVersionPlayed { get; set; }
///
/// Reserved
///
- public uint Dummy1;
+ public uint Dummy1 { get; set; }
///
/// Reserved
///
- public uint Dummy2;
+ public uint Dummy2 { get; set; }
///
/// Total size of NCF file in bytes.
///
- public uint FileSize;
+ public uint FileSize { get; set; }
///
/// Size of each data block in bytes.
///
- public uint BlockSize;
+ public uint BlockSize { get; set; }
///
/// Number of data blocks.
///
- public uint BlockCount;
+ public uint BlockCount { get; set; }
///
/// Reserved
///
- public uint Dummy3;
+ public uint Dummy3 { get; set; }
}
}
diff --git a/NCF/UnknownEntry.cs b/NCF/UnknownEntry.cs
index 16d5569..5e5b1c2 100644
--- a/NCF/UnknownEntry.cs
+++ b/NCF/UnknownEntry.cs
@@ -6,6 +6,6 @@ namespace SabreTools.Models.NCF
///
/// Reserved
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
}
}
diff --git a/NCF/UnknownHeader.cs b/NCF/UnknownHeader.cs
index 00ece46..6bc1890 100644
--- a/NCF/UnknownHeader.cs
+++ b/NCF/UnknownHeader.cs
@@ -6,11 +6,11 @@ namespace SabreTools.Models.NCF
///
/// Always 0x00000001
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Always 0x00000000
///
- public uint Dummy1;
+ public uint Dummy1 { get; set; }
}
}
diff --git a/NewExecutable/EntryTableBundle.cs b/NewExecutable/EntryTableBundle.cs
index 55297d3..9da3d2a 100644
--- a/NewExecutable/EntryTableBundle.cs
+++ b/NewExecutable/EntryTableBundle.cs
@@ -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.
///
- public byte EntryCount;
+ public byte EntryCount { get; set; }
///
/// 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.
///
- public byte SegmentIndicator;
+ public byte SegmentIndicator { get; set; }
#region Fixed Segment Entry
///
/// Flag word.
///
- public FixedSegmentEntryFlag FixedFlagWord;
+ public FixedSegmentEntryFlag FixedFlagWord { get; set; }
///
/// Offset within segment to entry point.
///
- public ushort FixedOffset;
+ public ushort FixedOffset { get; set; }
#endregion
@@ -62,22 +62,22 @@
///
/// Flag word.
///
- public MoveableSegmentEntryFlag MoveableFlagWord;
+ public MoveableSegmentEntryFlag MoveableFlagWord { get; set; }
///
/// INT 3FH.
///
- public ushort MoveableReserved;
+ public ushort MoveableReserved { get; set; }
///
/// Segment number.
///
- public byte MoveableSegmentNumber;
+ public byte MoveableSegmentNumber { get; set; }
///
/// Offset within segment to entry point.
///
- public ushort MoveableOffset;
+ public ushort MoveableOffset { get; set; }
#endregion
}
diff --git a/NewExecutable/ExecutableHeader.cs b/NewExecutable/ExecutableHeader.cs
index 69227ea..4f43e15 100644
--- a/NewExecutable/ExecutableHeader.cs
+++ b/NewExecutable/ExecutableHeader.cs
@@ -26,33 +26,33 @@ namespace SabreTools.Models.NewExecutable
///
/// Version number of the linker.
///
- public byte LinkerVersion;
+ public byte LinkerVersion { get; set; }
///
/// Revision number of the linker.
///
- public byte LinkerRevision;
+ public byte LinkerRevision { get; set; }
///
/// Entry Table file offset, relative to the beginning of the segmented EXE header.
///
- public ushort EntryTableOffset;
+ public ushort EntryTableOffset { get; set; }
///
/// Number of bytes in the entry table.
///
- public ushort EntryTableSize;
+ public ushort EntryTableSize { get; set; }
///
/// 32-bit CRC of entire contents of file.
///
/// These words are taken as 00 during the calculation.
- public uint CrcChecksum;
+ public uint CrcChecksum { get; set; }
///
/// Flag word
///
- public HeaderFlag FlagWord;
+ public HeaderFlag FlagWord { get; set; }
///
/// 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.
///
- public ushort AutomaticDataSegmentNumber;
+ public ushort AutomaticDataSegmentNumber { get; set; }
///
/// Initial size, in bytes, of dynamic heap added to the
/// data segment. This value is zero if no initial local
/// heap is allocated.
///
- public ushort InitialHeapAlloc;
+ public ushort InitialHeapAlloc { get; set; }
///
/// 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.
///
- public ushort InitialStackAlloc;
+ public ushort InitialStackAlloc { get; set; }
///
/// Segment number:offset of CS:IP.
///
- public uint InitialCSIPSetting;
+ public uint InitialCSIPSetting { get; set; }
///
/// Segment number:offset of SS:SP.
@@ -95,108 +95,108 @@ namespace SabreTools.Models.NewExecutable
/// automatic data segment just below the additional heap
/// area.
///
- public uint InitialSSSPSetting;
+ public uint InitialSSSPSetting { get; set; }
///
/// Number of entries in the Segment Table.
///
- public ushort FileSegmentCount;
+ public ushort FileSegmentCount { get; set; }
///
/// Number of entries in the Module Reference Table.
///
- public ushort ModuleReferenceTableSize;
+ public ushort ModuleReferenceTableSize { get; set; }
///
/// Number of bytes in the Non-Resident Name Table.
///
- public ushort NonResidentNameTableSize;
+ public ushort NonResidentNameTableSize { get; set; }
///
/// Segment Table file offset, relative to the beginning
/// of the segmented EXE header.
///
- public ushort SegmentTableOffset;
+ public ushort SegmentTableOffset { get; set; }
///
/// Resource Table file offset, relative to the beginning
/// of the segmented EXE header.
///
- public ushort ResourceTableOffset;
+ public ushort ResourceTableOffset { get; set; }
///
/// Resident Name Table file offset, relative to the
/// beginning of the segmented EXE header.
///
- public ushort ResidentNameTableOffset;
+ public ushort ResidentNameTableOffset { get; set; }
///
/// Module Reference Table file offset, relative to the
/// beginning of the segmented EXE header.
///
- public ushort ModuleReferenceTableOffset;
+ public ushort ModuleReferenceTableOffset { get; set; }
///
/// Imported Names Table file offset, relative to the
/// beginning of the segmented EXE header.
///
- public ushort ImportedNamesTableOffset;
+ public ushort ImportedNamesTableOffset { get; set; }
///
/// Non-Resident Name Table offset, relative to the
/// beginning of the file.
///
- public uint NonResidentNamesTableOffset;
+ public uint NonResidentNamesTableOffset { get; set; }
///
/// Number of movable entries in the Entry Table.
///
- public ushort MovableEntriesCount;
+ public ushort MovableEntriesCount { get; set; }
///
/// Logical sector alignment shift count, log(base 2) of
/// the segment sector size (default 9).
///
- public ushort SegmentAlignmentShiftCount;
+ public ushort SegmentAlignmentShiftCount { get; set; }
///
/// Number of resource entries.
///
- public ushort ResourceEntriesCount;
+ public ushort ResourceEntriesCount { get; set; }
///
/// Executable type, used by loader.
///
- public OperatingSystem TargetOperatingSystem;
+ public OperatingSystem TargetOperatingSystem { get; set; }
///
/// Other OS/2 flags
///
- public OS2Flag AdditionalFlags;
+ public OS2Flag AdditionalFlags { get; set; }
///
/// Offset to return thunks or start of gangload area
///
- public ushort ReturnThunkOffset;
+ public ushort ReturnThunkOffset { get; set; }
///
/// Offset to segment reference thunks or size of gangload area
///
- public ushort SegmentReferenceThunkOffset;
+ public ushort SegmentReferenceThunkOffset { get; set; }
///
/// Minimum code swap area size
///
- public ushort MinCodeSwapAreaSize;
+ public ushort MinCodeSwapAreaSize { get; set; }
///
/// Windows SDK revison number
///
- public byte WindowsSDKRevision;
+ public byte WindowsSDKRevision { get; set; }
///
/// Windows SDK version number
///
- public byte WindowsSDKVersion;
+ public byte WindowsSDKVersion { get; set; }
}
}
diff --git a/NewExecutable/ImportNameRelocationRecord.cs b/NewExecutable/ImportNameRelocationRecord.cs
index 5b00812..2470d7d 100644
--- a/NewExecutable/ImportNameRelocationRecord.cs
+++ b/NewExecutable/ImportNameRelocationRecord.cs
@@ -9,11 +9,11 @@ namespace SabreTools.Models.NewExecutable
///
/// Index into module reference table for the imported module.
///
- public ushort Index;
+ public ushort Index { get; set; }
///
/// Offset within Imported Names Table to procedure name string.
///
- public ushort Offset;
+ public ushort Offset { get; set; }
}
}
diff --git a/NewExecutable/ImportOrdinalRelocationRecord.cs b/NewExecutable/ImportOrdinalRelocationRecord.cs
index 949303d..1f3e05f 100644
--- a/NewExecutable/ImportOrdinalRelocationRecord.cs
+++ b/NewExecutable/ImportOrdinalRelocationRecord.cs
@@ -9,11 +9,11 @@ namespace SabreTools.Models.NewExecutable
///
/// Index into module reference table for the imported module.
///
- public ushort Index;
+ public ushort Index { get; set; }
///
/// Procedure ordinal number.
///
- public ushort Ordinal;
+ public ushort Ordinal { get; set; }
}
}
diff --git a/NewExecutable/ImportedNameTableEntry.cs b/NewExecutable/ImportedNameTableEntry.cs
index 596a8af..9ba08a0 100644
--- a/NewExecutable/ImportedNameTableEntry.cs
+++ b/NewExecutable/ImportedNameTableEntry.cs
@@ -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.
///
- public byte Length;
+ public byte Length { get; set; }
///
/// ASCII text of the name string.
///
#if NET48
- public byte[] NameString;
+ public byte[] NameString { get; set; }
#else
- public byte[]? NameString;
+ public byte[]? NameString { get; set; }
#endif
}
}
diff --git a/NewExecutable/InternalRefRelocationRecord.cs b/NewExecutable/InternalRefRelocationRecord.cs
index 931b1bf..16e8342 100644
--- a/NewExecutable/InternalRefRelocationRecord.cs
+++ b/NewExecutable/InternalRefRelocationRecord.cs
@@ -10,17 +10,17 @@ namespace SabreTools.Models.NewExecutable
/// Segment number for a fixed segment, or 0FFh for a
/// movable segment.
///
- public byte SegmentNumber;
+ public byte SegmentNumber { get; set; }
///
/// 0
///
- public byte Reserved;
+ public byte Reserved { get; set; }
///
/// Offset into segment if fixed segment, or ordinal
/// number index into Entry Table if movable segment.
///
- public ushort Offset;
+ public ushort Offset { get; set; }
}
}
diff --git a/NewExecutable/ModuleReferenceTableEntry.cs b/NewExecutable/ModuleReferenceTableEntry.cs
index 8869626..780a58b 100644
--- a/NewExecutable/ModuleReferenceTableEntry.cs
+++ b/NewExecutable/ModuleReferenceTableEntry.cs
@@ -14,6 +14,6 @@ namespace SabreTools.Models.NewExecutable
///
/// Offset within Imported Names Table to referenced module name string.
///
- public ushort Offset;
+ public ushort Offset { get; set; }
}
}
diff --git a/NewExecutable/NonResidentNameTableEntry.cs b/NewExecutable/NonResidentNameTableEntry.cs
index 96b7535..48c161d 100644
--- a/NewExecutable/NonResidentNameTableEntry.cs
+++ b/NewExecutable/NonResidentNameTableEntry.cs
@@ -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.
///
- public byte Length;
+ public byte Length { get; set; }
///
/// ASCII text of the name string.
///
#if NET48
- public byte[] NameString;
+ public byte[] NameString { get; set; }
#else
- public byte[]? NameString;
+ public byte[]? NameString { get; set; }
#endif
///
/// Ordinal number (index into entry table). This value is ignored
/// for the module name.
///
- public ushort OrdinalNumber;
+ public ushort OrdinalNumber { get; set; }
}
}
diff --git a/NewExecutable/OSFixupRelocationRecord.cs b/NewExecutable/OSFixupRelocationRecord.cs
index daaaea3..4b33637 100644
--- a/NewExecutable/OSFixupRelocationRecord.cs
+++ b/NewExecutable/OSFixupRelocationRecord.cs
@@ -10,11 +10,11 @@ namespace SabreTools.Models.NewExecutable
/// Operating system fixup type.
/// Floating-point fixups.
///
- public OSFixupType FixupType;
+ public OSFixupType FixupType { get; set; }
///
/// 0
///
- public ushort Reserved;
+ public ushort Reserved { get; set; }
}
}
diff --git a/NewExecutable/PerSegmentData.cs b/NewExecutable/PerSegmentData.cs
index 87093f7..538085b 100644
--- a/NewExecutable/PerSegmentData.cs
+++ b/NewExecutable/PerSegmentData.cs
@@ -13,15 +13,15 @@
///
/// Number of relocation records that follow.
///
- public ushort RelocationRecordCount;
+ public ushort RelocationRecordCount { get; set; }
///
/// A table of relocation records follows.
///
#if NET48
- public RelocationRecord[] RelocationRecords;
+ public RelocationRecord[] RelocationRecords { get; set; }
#else
- public RelocationRecord?[]? RelocationRecords;
+ public RelocationRecord?[]? RelocationRecords { get; set; }
#endif
}
}
diff --git a/NewExecutable/RelocationRecord.cs b/NewExecutable/RelocationRecord.cs
index 6ab7894..daccd21 100644
--- a/NewExecutable/RelocationRecord.cs
+++ b/NewExecutable/RelocationRecord.cs
@@ -13,7 +13,7 @@ namespace SabreTools.Models.NewExecutable
///
/// Source type.
///
- public RelocationRecordSourceType SourceType;
+ public RelocationRecordSourceType SourceType { get; set; }
///
/// Flags byte.
@@ -21,7 +21,7 @@ namespace SabreTools.Models.NewExecutable
/// The target value has four types that are defined in the flag
/// byte field.
///
- public RelocationRecordFlag Flags;
+ public RelocationRecordFlag Flags { get; set; }
///
/// 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.
///
- public ushort Offset;
+ public ushort Offset { get; set; }
///
/// INTERNALREF
///
/// Must be NULL if is not set to
#if NET48
- public InternalRefRelocationRecord InternalRefRelocationRecord;
+ public InternalRefRelocationRecord InternalRefRelocationRecord { get; set; }
#else
- public InternalRefRelocationRecord? InternalRefRelocationRecord;
+ public InternalRefRelocationRecord? InternalRefRelocationRecord { get; set; }
#endif
///
@@ -48,9 +48,9 @@ namespace SabreTools.Models.NewExecutable
///
/// Must be NULL if is not set to
#if NET48
- public ImportNameRelocationRecord ImportNameRelocationRecord;
+ public ImportNameRelocationRecord ImportNameRelocationRecord { get; set; }
#else
- public ImportNameRelocationRecord? ImportNameRelocationRecord;
+ public ImportNameRelocationRecord? ImportNameRelocationRecord { get; set; }
#endif
///
@@ -58,9 +58,9 @@ namespace SabreTools.Models.NewExecutable
///
/// Must be NULL if is not set to
#if NET48
- public ImportOrdinalRelocationRecord ImportOrdinalRelocationRecord;
+ public ImportOrdinalRelocationRecord ImportOrdinalRelocationRecord { get; set; }
#else
- public ImportOrdinalRelocationRecord? ImportOrdinalRelocationRecord;
+ public ImportOrdinalRelocationRecord? ImportOrdinalRelocationRecord { get; set; }
#endif
///
@@ -68,9 +68,9 @@ namespace SabreTools.Models.NewExecutable
///
/// Must be NULL if is not set to
#if NET48
- public OSFixupRelocationRecord OSFixupRelocationRecord;
+ public OSFixupRelocationRecord OSFixupRelocationRecord { get; set; }
#else
- public OSFixupRelocationRecord? OSFixupRelocationRecord;
+ public OSFixupRelocationRecord? OSFixupRelocationRecord { get; set; }
#endif
}
}
diff --git a/NewExecutable/ResidentNameTableEntry.cs b/NewExecutable/ResidentNameTableEntry.cs
index 44fef52..642bc95 100644
--- a/NewExecutable/ResidentNameTableEntry.cs
+++ b/NewExecutable/ResidentNameTableEntry.cs
@@ -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.
///
- public byte Length;
+ public byte Length { get; set; }
///
/// ASCII text of the name string.
///
#if NET48
- public byte[] NameString;
+ public byte[] NameString { get; set; }
#else
- public byte[]? NameString;
+ public byte[]? NameString { get; set; }
#endif
///
/// Ordinal number (index into entry table). This value is ignored
/// for the module name.
///
- public ushort OrdinalNumber;
+ public ushort OrdinalNumber { get; set; }
}
}
diff --git a/NewExecutable/ResourceTable.cs b/NewExecutable/ResourceTable.cs
index 7bf9029..c279b90 100644
--- a/NewExecutable/ResourceTable.cs
+++ b/NewExecutable/ResourceTable.cs
@@ -20,15 +20,15 @@ namespace SabreTools.Models.NewExecutable
///
/// Alignment shift count for resource data.
///
- public ushort AlignmentShiftCount;
+ public ushort AlignmentShiftCount { get; set; }
///
/// A table of resource type information blocks follows.
///
#if NET48
- public ResourceTypeInformationEntry[] ResourceTypes;
+ public ResourceTypeInformationEntry[] ResourceTypes { get; set; }
#else
- public ResourceTypeInformationEntry?[]? ResourceTypes;
+ public ResourceTypeInformationEntry?[]? ResourceTypes { get; set; }
#endif
///
@@ -36,9 +36,9 @@ namespace SabreTools.Models.NewExecutable
/// resource table.
///
#if NET48
- public Dictionary TypeAndNameStrings;
+ public Dictionary TypeAndNameStrings { get; set; }
#else
- public Dictionary? TypeAndNameStrings;
+ public Dictionary? TypeAndNameStrings { get; set; }
#endif
}
}
diff --git a/NewExecutable/ResourceTypeAndNameString.cs b/NewExecutable/ResourceTypeAndNameString.cs
index 0e1815f..b7f6089 100644
--- a/NewExecutable/ResourceTypeAndNameString.cs
+++ b/NewExecutable/ResourceTypeAndNameString.cs
@@ -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.
///
- public byte Length;
+ public byte Length { get; set; }
///
/// ASCII text of the type or name string.
///
#if NET48
- public byte[] Text;
+ public byte[] Text { get; set; }
#else
- public byte[]? Text;
+ public byte[]? Text { get; set; }
#endif
}
}
diff --git a/NewExecutable/ResourceTypeInformationEntry.cs b/NewExecutable/ResourceTypeInformationEntry.cs
index 82367c7..6ed1f28 100644
--- a/NewExecutable/ResourceTypeInformationEntry.cs
+++ b/NewExecutable/ResourceTypeInformationEntry.cs
@@ -17,25 +17,25 @@ namespace SabreTools.Models.NewExecutable
/// table. A zero type ID marks the end of the resource type
/// information blocks.
///
- public ushort TypeID;
+ public ushort TypeID { get; set; }
///
/// Number of resources for this type.
///
- public ushort ResourceCount;
+ public ushort ResourceCount { get; set; }
///
/// Reserved.
///
- public uint Reserved;
+ public uint Reserved { get; set; }
///
/// A table of resources for this type follows.
///
#if NET48
- public ResourceTypeResourceEntry[] Resources;
+ public ResourceTypeResourceEntry[] Resources { get; set; }
#else
- public ResourceTypeResourceEntry?[]? Resources;
+ public ResourceTypeResourceEntry?[]? Resources { get; set; }
#endif
}
}
diff --git a/NewExecutable/ResourceTypeResourceEntry.cs b/NewExecutable/ResourceTypeResourceEntry.cs
index 65553ec..53edb22 100644
--- a/NewExecutable/ResourceTypeResourceEntry.cs
+++ b/NewExecutable/ResourceTypeResourceEntry.cs
@@ -16,17 +16,17 @@ namespace SabreTools.Models.NewExecutable
/// of the alignment shift count value specified at
/// beginning of the resource table.
///
- public ushort Offset;
+ public ushort Offset { get; set; }
///
/// Length of the resource in the file (in bytes).
///
- public ushort Length;
+ public ushort Length { get; set; }
///
/// Flag word.
///
- public ResourceTypeResourceFlag FlagWord;
+ public ResourceTypeResourceFlag FlagWord { get; set; }
///
/// 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.
///
- public ushort ResourceID;
+ public ushort ResourceID { get; set; }
///
/// Reserved.
///
- public uint Reserved;
+ public uint Reserved { get; set; }
}
}
diff --git a/NewExecutable/SegmentTableEntry.cs b/NewExecutable/SegmentTableEntry.cs
index 4326e83..b85a660 100644
--- a/NewExecutable/SegmentTableEntry.cs
+++ b/NewExecutable/SegmentTableEntry.cs
@@ -17,22 +17,22 @@ namespace SabreTools.Models.NewExecutable
/// data, relative to the beginning of the file. Zero means no
/// file data.
///
- public ushort Offset;
+ public ushort Offset { get; set; }
///
/// Length of the segment in the file, in bytes. Zero means 64K.
///
- public ushort Length;
+ public ushort Length { get; set; }
///
/// Flag word.
///
- public SegmentTableEntryFlag FlagWord;
+ public SegmentTableEntryFlag FlagWord { get; set; }
///
/// Minimum allocation size of the segment, in bytes. Total size
/// of the segment. Zero means 64K.
///
- public ushort MinimumAllocationSize;
+ public ushort MinimumAllocationSize { get; set; }
}
}
diff --git a/Nitro/CommonHeader.cs b/Nitro/CommonHeader.cs
index be2f399..9b37c07 100644
--- a/Nitro/CommonHeader.cs
+++ b/Nitro/CommonHeader.cs
@@ -10,233 +10,233 @@ namespace SabreTools.Models.Nitro
/// Game Title
///
#if NET48
- public string GameTitle;
+ public string GameTitle { get; set; }
#else
- public string? GameTitle;
+ public string? GameTitle { get; set; }
#endif
///
/// Gamecode
///
- public uint GameCode;
+ public uint GameCode { get; set; }
///
/// Makercode
///
#if NET48
- public string MakerCode;
+ public string MakerCode { get; set; }
#else
- public string? MakerCode;
+ public string? MakerCode { get; set; }
#endif
///
/// Unitcode
///
- public Unitcode UnitCode;
+ public Unitcode UnitCode { get; set; }
///
/// Encryption seed select (device code. 0 = normal)
///
- public byte EncryptionSeedSelect;
+ public byte EncryptionSeedSelect { get; set; }
///
/// Devicecapacity
///
- public byte DeviceCapacity;
+ public byte DeviceCapacity { get; set; }
///
/// Reserved
///
#if NET48
- public byte[] Reserved1;
+ public byte[] Reserved1 { get; set; }
#else
- public byte[]? Reserved1;
+ public byte[]? Reserved1 { get; set; }
#endif
///
/// Game Revision (used by DSi titles)
///
- public ushort GameRevision;
+ public ushort GameRevision { get; set; }
///
/// ROM Version
///
- public byte RomVersion;
+ public byte RomVersion { get; set; }
///
/// Internal flags, (Bit2: Autostart)
///
- public byte InternalFlags;
+ public byte InternalFlags { get; set; }
///
/// ARM9 rom offset
///
- public uint ARM9RomOffset;
+ public uint ARM9RomOffset { get; set; }
///
/// ARM9 entry address
///
- public uint ARM9EntryAddress;
+ public uint ARM9EntryAddress { get; set; }
///
/// ARM9 load address
///
- public uint ARM9LoadAddress;
+ public uint ARM9LoadAddress { get; set; }
///
/// ARM9 size
///
- public uint ARM9Size;
+ public uint ARM9Size { get; set; }
///
/// ARM7 rom offset
///
- public uint ARM7RomOffset;
+ public uint ARM7RomOffset { get; set; }
///
/// ARM7 entry address
///
- public uint ARM7EntryAddress;
+ public uint ARM7EntryAddress { get; set; }
///
/// ARM7 load address
///
- public uint ARM7LoadAddress;
+ public uint ARM7LoadAddress { get; set; }
///
/// ARM7 size
///
- public uint ARM7Size;
+ public uint ARM7Size { get; set; }
///
/// File Name Table (FNT) offset
///
- public uint FileNameTableOffset;
+ public uint FileNameTableOffset { get; set; }
///
/// File Name Table (FNT) length
///
- public uint FileNameTableLength;
+ public uint FileNameTableLength { get; set; }
///
/// File Allocation Table (FNT) offset
///
- public uint FileAllocationTableOffset;
+ public uint FileAllocationTableOffset { get; set; }
///
/// File Allocation Table (FNT) length
///
- public uint FileAllocationTableLength;
+ public uint FileAllocationTableLength { get; set; }
///
/// File Name Table (FNT) offset
///
- public uint ARM9OverlayOffset;
+ public uint ARM9OverlayOffset { get; set; }
///
/// File Name Table (FNT) length
///
- public uint ARM9OverlayLength;
+ public uint ARM9OverlayLength { get; set; }
///
/// File Name Table (FNT) offset
///
- public uint ARM7OverlayOffset;
+ public uint ARM7OverlayOffset { get; set; }
///
/// File Name Table (FNT) length
///
- public uint ARM7OverlayLength;
+ public uint ARM7OverlayLength { get; set; }
///
/// Normal card control register settings (0x00416657 for OneTimePROM)
///
- public uint NormalCardControlRegisterSettings;
+ public uint NormalCardControlRegisterSettings { get; set; }
///
/// Secure card control register settings (0x081808F8 for OneTimePROM)
///
- public uint SecureCardControlRegisterSettings;
+ public uint SecureCardControlRegisterSettings { get; set; }
///
/// Icon Banner offset (NDSi same as NDS, but with new extra entries)
///
- public uint IconBannerOffset;
+ public uint IconBannerOffset { get; set; }
///
/// Secure area (2K) CRC
///
- public ushort SecureAreaCRC;
+ public ushort SecureAreaCRC { get; set; }
///
/// Secure transfer timeout (0x0D7E for OneTimePROM)
///
- public ushort SecureTransferTimeout;
+ public ushort SecureTransferTimeout { get; set; }
///
/// ARM9 autoload
///
- public uint ARM9Autoload;
+ public uint ARM9Autoload { get; set; }
///
/// ARM7 autoload
///
- public uint ARM7Autoload;
+ public uint ARM7Autoload { get; set; }
///
/// Secure disable
///
#if NET48
- public byte[] SecureDisable;
+ public byte[] SecureDisable { get; set; }
#else
- public byte[]? SecureDisable;
+ public byte[]? SecureDisable { get; set; }
#endif
///
/// NTR region ROM size (excluding DSi area)
///
- public uint NTRRegionRomSize;
+ public uint NTRRegionRomSize { get; set; }
///
/// Header size
///
- public uint HeaderSize;
+ public uint HeaderSize { get; set; }
///
///Reserved (0x88, 0x8C, 0x90 = Unknown, used by DSi)
///
#if NET48
- public byte[] Reserved2;
+ public byte[] Reserved2 { get; set; }
#else
- public byte[]? Reserved2;
+ public byte[]? Reserved2 { get; set; }
#endif
///
/// Nintendo Logo
///
#if NET48
- public byte[] NintendoLogo;
+ public byte[] NintendoLogo { get; set; }
#else
- public byte[]? NintendoLogo;
+ public byte[]? NintendoLogo { get; set; }
#endif
///
/// Nintendo Logo CRC
///
- public ushort NintendoLogoCRC;
+ public ushort NintendoLogoCRC { get; set; }
///
/// Header CRC
///
- public ushort HeaderCRC;
+ public ushort HeaderCRC { get; set; }
///
/// Debugger reserved
///
#if NET48
- public byte[] DebuggerReserved;
+ public byte[] DebuggerReserved { get; set; }
#else
- public byte[]? DebuggerReserved;
+ public byte[]? DebuggerReserved { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/Nitro/ExtendedDSiHeader.cs b/Nitro/ExtendedDSiHeader.cs
index cb0edcf..98148d6 100644
--- a/Nitro/ExtendedDSiHeader.cs
+++ b/Nitro/ExtendedDSiHeader.cs
@@ -10,322 +10,322 @@ namespace SabreTools.Models.Nitro
/// Global MBK1..MBK5 Settings
///
#if NET48
- public uint[] GlobalMBK15Settings;
+ public uint[] GlobalMBK15Settings { get; set; }
#else
- public uint[]? GlobalMBK15Settings;
+ public uint[]? GlobalMBK15Settings { get; set; }
#endif
///
/// Local MBK6..MBK8 Settings for ARM9
///
#if NET48
- public uint[] LocalMBK68SettingsARM9;
+ public uint[] LocalMBK68SettingsARM9 { get; set; }
#else
- public uint[]? LocalMBK68SettingsARM9;
+ public uint[]? LocalMBK68SettingsARM9 { get; set; }
#endif
///
/// Local MBK6..MBK8 Settings for ARM7
///
#if NET48
- public uint[] LocalMBK68SettingsARM7;
+ public uint[] LocalMBK68SettingsARM7 { get; set; }
#else
- public uint[]? LocalMBK68SettingsARM7;
+ public uint[]? LocalMBK68SettingsARM7 { get; set; }
#endif
///
/// Global MBK9 Setting
///
- public uint GlobalMBK9Setting;
+ public uint GlobalMBK9Setting { get; set; }
///
/// Region Flags
///
- public uint RegionFlags;
+ public uint RegionFlags { get; set; }
///
/// Access control
///
- public uint AccessControl;
+ public uint AccessControl { get; set; }
///
/// ARM7 SCFG EXT mask (controls which devices to enable)
///
- public uint ARM7SCFGEXTMask;
+ public uint ARM7SCFGEXTMask { get; set; }
///
/// Reserved/flags? When bit2 of byte 0x1bf is set, usage of banner.sav from the title data dir is enabled.(additional banner data)
///
- public uint ReservedFlags;
+ public uint ReservedFlags { get; set; }
///
/// ARM9i rom offset
///
- public uint ARM9iRomOffset;
+ public uint ARM9iRomOffset { get; set; }
///
/// Reserved
///
- public uint Reserved3;
+ public uint Reserved3 { get; set; }
///
/// ARM9i load address
///
- public uint ARM9iLoadAddress;
+ public uint ARM9iLoadAddress { get; set; }
///
- /// ARM9i size;
+ /// ARM9i size { get; set; }
///
- public uint ARM9iSize;
+ public uint ARM9iSize { get; set; }
///
/// ARM7i rom offset
///
- public uint ARM7iRomOffset;
+ public uint ARM7iRomOffset { get; set; }
///
/// Pointer to base address where various structures and parameters are passed to the title - what is that???
///
- public uint Reserved4;
+ public uint Reserved4 { get; set; }
///
/// ARM7i load address
///
- public uint ARM7iLoadAddress;
+ public uint ARM7iLoadAddress { get; set; }
///
- /// ARM7i size;
+ /// ARM7i size { get; set; }
///
- public uint ARM7iSize;
+ public uint ARM7iSize { get; set; }
///
/// Digest NTR region offset
///
- public uint DigestNTRRegionOffset;
+ public uint DigestNTRRegionOffset { get; set; }
///
/// Digest NTR region length
///
- public uint DigestNTRRegionLength;
+ public uint DigestNTRRegionLength { get; set; }
//
/// Digest TWL region offset
///
- public uint DigestTWLRegionOffset;
+ public uint DigestTWLRegionOffset { get; set; }
///
/// Digest TWL region length
///
- public uint DigestTWLRegionLength;
+ public uint DigestTWLRegionLength { get; set; }
//
/// Digest Sector Hashtable region offset
///
- public uint DigestSectorHashtableRegionOffset;
+ public uint DigestSectorHashtableRegionOffset { get; set; }
///
/// Digest Sector Hashtable region length
///
- public uint DigestSectorHashtableRegionLength;
+ public uint DigestSectorHashtableRegionLength { get; set; }
//
/// Digest Block Hashtable region offset
///
- public uint DigestBlockHashtableRegionOffset;
+ public uint DigestBlockHashtableRegionOffset { get; set; }
///
/// Digest Block Hashtable region length
///
- public uint DigestBlockHashtableRegionLength;
+ public uint DigestBlockHashtableRegionLength { get; set; }
///
/// Digest Sector size
///
- public uint DigestSectorSize;
+ public uint DigestSectorSize { get; set; }
///
/// Digeset Block Sectorount
///
- public uint DigestBlockSectorCount;
+ public uint DigestBlockSectorCount { get; set; }
///
/// Icon Banner Size (usually 0x23C0)
///
- public uint IconBannerSize;
+ public uint IconBannerSize { get; set; }
///
/// Unknown (used by DSi)
///
- public uint Unknown1;
+ public uint Unknown1 { get; set; }
///
/// NTR+TWL region ROM size (total size including DSi area)
///
- public uint NTRTWLRegionRomSize;
+ public uint NTRTWLRegionRomSize { get; set; }
///
/// Unknown (used by DSi)
///
#if NET48
- public byte[] Unknown2;
+ public byte[] Unknown2 { get; set; }
#else
- public byte[]? Unknown2;
+ public byte[]? Unknown2 { get; set; }
#endif
///
/// Modcrypt area 1 offset
///
- public uint ModcryptArea1Offset;
+ public uint ModcryptArea1Offset { get; set; }
///
/// Modcrypt area 1 size
///
- public uint ModcryptArea1Size;
+ public uint ModcryptArea1Size { get; set; }
///
/// Modcrypt area 2 offset
///
- public uint ModcryptArea2Offset;
+ public uint ModcryptArea2Offset { get; set; }
///
/// Modcrypt area 2 size
///
- public uint ModcryptArea2Size;
+ public uint ModcryptArea2Size { get; set; }
///
/// Title ID
///
#if NET48
- public byte[] TitleID;
+ public byte[] TitleID { get; set; }
#else
- public byte[]? TitleID;
+ public byte[]? TitleID { get; set; }
#endif
///
/// DSiWare: "public.sav" size
///
- public uint DSiWarePublicSavSize;
+ public uint DSiWarePublicSavSize { get; set; }
///
/// DSiWare: "private.sav" size
///
- public uint DSiWarePrivateSavSize;
+ public uint DSiWarePrivateSavSize { get; set; }
///
/// Reserved (zero)
///
#if NET48
- public byte[] ReservedZero;
+ public byte[] ReservedZero { get; set; }
#else
- public byte[]? ReservedZero;
+ public byte[]? ReservedZero { get; set; }
#endif
///
/// Unknown (used by DSi)
///
#if NET48
- public byte[] Unknown3;
+ public byte[] Unknown3 { get; set; }
#else
- public byte[]? Unknown3;
+ public byte[]? Unknown3 { get; set; }
#endif
///
/// ARM9 (with encrypted secure area) SHA1 HMAC hash
///
#if NET48
- public byte[] ARM9WithSecureAreaSHA1HMACHash;
+ public byte[] ARM9WithSecureAreaSHA1HMACHash { get; set; }
#else
- public byte[]? ARM9WithSecureAreaSHA1HMACHash;
+ public byte[]? ARM9WithSecureAreaSHA1HMACHash { get; set; }
#endif
///
/// ARM7 SHA1 HMAC hash
///
#if NET48
- public byte[] ARM7SHA1HMACHash;
+ public byte[] ARM7SHA1HMACHash { get; set; }
#else
- public byte[]? ARM7SHA1HMACHash;
+ public byte[]? ARM7SHA1HMACHash { get; set; }
#endif
///
/// Digest master SHA1 HMAC hash
///
#if NET48
- public byte[] DigestMasterSHA1HMACHash;
+ public byte[] DigestMasterSHA1HMACHash { get; set; }
#else
- public byte[]? DigestMasterSHA1HMACHash;
+ public byte[]? DigestMasterSHA1HMACHash { get; set; }
#endif
///
/// Banner SHA1 HMAC hash
///
#if NET48
- public byte[] BannerSHA1HMACHash;
+ public byte[] BannerSHA1HMACHash { get; set; }
#else
- public byte[]? BannerSHA1HMACHash;
+ public byte[]? BannerSHA1HMACHash { get; set; }
#endif
///
/// ARM9i (decrypted) SHA1 HMAC hash
///
#if NET48
- public byte[] ARM9iDecryptedSHA1HMACHash;
+ public byte[] ARM9iDecryptedSHA1HMACHash { get; set; }
#else
- public byte[]? ARM9iDecryptedSHA1HMACHash;
+ public byte[]? ARM9iDecryptedSHA1HMACHash { get; set; }
#endif
///
/// ARM7i (decrypted) SHA1 HMAC hash
///
#if NET48
- public byte[] ARM7iDecryptedSHA1HMACHash;
+ public byte[] ARM7iDecryptedSHA1HMACHash { get; set; }
#else
- public byte[]? ARM7iDecryptedSHA1HMACHash;
+ public byte[]? ARM7iDecryptedSHA1HMACHash { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved5;
+ public byte[] Reserved5 { get; set; }
#else
- public byte[]? Reserved5;
+ public byte[]? Reserved5 { get; set; }
#endif
///
/// ARM9 (without secure area) SHA1 HMAC hash
///
#if NET48
- public byte[] ARM9NoSecureAreaSHA1HMACHash;
+ public byte[] ARM9NoSecureAreaSHA1HMACHash { get; set; }
#else
- public byte[]? ARM9NoSecureAreaSHA1HMACHash;
+ public byte[]? ARM9NoSecureAreaSHA1HMACHash { get; set; }
#endif
///
/// Reserved
///
#if NET48
- public byte[] Reserved6;
+ public byte[] Reserved6 { get; set; }
#else
- public byte[]? Reserved6;
+ public byte[]? Reserved6 { get; set; }
#endif
///
/// Reserved and unchecked region, always zero. Used for passing arguments in debug environment.
///
#if NET48
- public byte[] ReservedAndUnchecked;
+ public byte[] ReservedAndUnchecked { get; set; }
#else
- public byte[]? ReservedAndUnchecked;
+ public byte[]? ReservedAndUnchecked { get; set; }
#endif
///
/// RSA signature (the first 0xE00 bytes of the header are signed with an 1024-bit RSA signature).
///
#if NET48
- public byte[] RSASignature;
+ public byte[] RSASignature { get; set; }
#else
- public byte[]? RSASignature;
+ public byte[]? RSASignature { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/Nitro/FileAllocationTableEntry.cs b/Nitro/FileAllocationTableEntry.cs
index 712ab89..47817e1 100644
--- a/Nitro/FileAllocationTableEntry.cs
+++ b/Nitro/FileAllocationTableEntry.cs
@@ -10,11 +10,11 @@ namespace SabreTools.Models.Nitro
///
/// Start offset of file
///
- public uint StartOffset;
+ public uint StartOffset { get; set; }
///
/// End offset of file (after this is padding)
///
- public uint EndOffset;
+ public uint EndOffset { get; set; }
}
}
\ No newline at end of file
diff --git a/Nitro/FolderAllocationTableEntry.cs b/Nitro/FolderAllocationTableEntry.cs
index 8817912..e177991 100644
--- a/Nitro/FolderAllocationTableEntry.cs
+++ b/Nitro/FolderAllocationTableEntry.cs
@@ -12,22 +12,22 @@ namespace SabreTools.Models.Nitro
/// Start offset of folder contents within Name List
/// relative to start of NameTable
///
- public uint StartOffset;
+ public uint StartOffset { get; set; }
///
/// Index of first file within folder in File Allocation Table
///
- public ushort FirstFileIndex;
+ public ushort FirstFileIndex { get; set; }
///
/// Index of parent folder in current table; for root folder
/// this holds the number of entries in the table
///
- public byte ParentFolderIndex;
+ public byte ParentFolderIndex { get; set; }
///
/// Unknown, always 0xF0 except for root folder
///
- public byte Unknown;
+ public byte Unknown { get; set; }
}
}
\ No newline at end of file
diff --git a/Nitro/NameListEntry.cs b/Nitro/NameListEntry.cs
index 414bc07..6883fa2 100644
--- a/Nitro/NameListEntry.cs
+++ b/Nitro/NameListEntry.cs
@@ -12,15 +12,15 @@ namespace SabreTools.Models.Nitro
/// and the most significant bit indicates whether it is a
/// folder (1 = folder, 0 = file).
///
- public bool Folder;
+ public bool Folder { get; set; }
///
/// The variable length name (UTF-8)
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
@@ -28,6 +28,6 @@ namespace SabreTools.Models.Nitro
/// within the Folder allocation table, allowing its contents to
/// be found.
///
- public ushort Index;
+ public ushort Index { get; set; }
}
}
\ No newline at end of file
diff --git a/Nitro/NameTable.cs b/Nitro/NameTable.cs
index 5d5da6e..c55b9a2 100644
--- a/Nitro/NameTable.cs
+++ b/Nitro/NameTable.cs
@@ -16,18 +16,18 @@ namespace SabreTools.Models.Nitro
/// Folder allocation table
///
#if NET48
- public FolderAllocationTableEntry[] FolderAllocationTable;
+ public FolderAllocationTableEntry[] FolderAllocationTable { get; set; }
#else
- public FolderAllocationTableEntry?[]? FolderAllocationTable;
+ public FolderAllocationTableEntry?[]? FolderAllocationTable { get; set; }
#endif
///
/// Name list
///
#if NET48
- public NameListEntry[] NameList;
+ public NameListEntry[] NameList { get; set; }
#else
- public NameListEntry?[]? NameList;
+ public NameListEntry?[]? NameList { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/PAK/DirectoryItem.cs b/PAK/DirectoryItem.cs
index 56e7c33..a6e0349 100644
--- a/PAK/DirectoryItem.cs
+++ b/PAK/DirectoryItem.cs
@@ -7,19 +7,19 @@ namespace SabreTools.Models.PAK
/// Item Name
///
#if NET48
- public string ItemName;
+ public string ItemName { get; set; }
#else
- public string? ItemName;
+ public string? ItemName { get; set; }
#endif
///
/// Item Offset
///
- public uint ItemOffset;
+ public uint ItemOffset { get; set; }
///
/// Item Length
///
- public uint ItemLength;
+ public uint ItemLength { get; set; }
}
}
diff --git a/PAK/Header.cs b/PAK/Header.cs
index fa764ec..18a5c68 100644
--- a/PAK/Header.cs
+++ b/PAK/Header.cs
@@ -7,19 +7,19 @@ namespace SabreTools.Models.PAK
/// Signature
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Directory Offset
///
- public uint DirectoryOffset;
+ public uint DirectoryOffset { get; set; }
///
/// Directory Length
///
- public uint DirectoryLength;
+ public uint DirectoryLength { get; set; }
}
}
diff --git a/PFF/Footer.cs b/PFF/Footer.cs
index 4eab7ad..235d082 100644
--- a/PFF/Footer.cs
+++ b/PFF/Footer.cs
@@ -9,20 +9,20 @@ namespace SabreTools.Models.PFF
///
/// Current system IP
///
- public uint SystemIP;
+ public uint SystemIP { get; set; }
///
/// Reserved
///
- public uint Reserved;
+ public uint Reserved { get; set; }
///
/// King tag
///
#if NET48
- public string KingTag;
+ public string KingTag { get; set; }
#else
- public string? KingTag;
+ public string? KingTag { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/PFF/Header.cs b/PFF/Header.cs
index 674d029..8c4fe86 100644
--- a/PFF/Header.cs
+++ b/PFF/Header.cs
@@ -10,31 +10,31 @@ namespace SabreTools.Models.PFF
///
/// Size of the following header
///
- public uint HeaderSize;
+ public uint HeaderSize { get; set; }
///
/// Signature
///
/// Versions 2 and 3 share the same signature but different header sizes
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Number of files
///
- public uint NumberOfFiles;
+ public uint NumberOfFiles { get; set; }
///
/// File segment size
///
- public uint FileSegmentSize;
+ public uint FileSegmentSize { get; set; }
///
/// File list offset
///
- public uint FileListOffset;
+ public uint FileListOffset { get; set; }
}
}
\ No newline at end of file
diff --git a/PFF/Segment.cs b/PFF/Segment.cs
index ad5c37f..7840bb7 100644
--- a/PFF/Segment.cs
+++ b/PFF/Segment.cs
@@ -9,42 +9,42 @@ namespace SabreTools.Models.PFF
///
/// Deleted flag
///
- public uint Deleted;
+ public uint Deleted { get; set; }
///
/// File location
///
- public uint FileLocation;
+ public uint FileLocation { get; set; }
///
/// File size
///
- public uint FileSize;
+ public uint FileSize { get; set; }
///
/// Packed date
///
- public uint PackedDate;
+ public uint PackedDate { get; set; }
///
/// File name
///
#if NET48
- public string FileName;
+ public string FileName { get; set; }
#else
- public string? FileName;
+ public string? FileName { get; set; }
#endif
///
/// Modified date
///
/// Only for versions 3 and 4
- public uint ModifiedDate;
+ public uint ModifiedDate { get; set; }
///
/// Compression level
///
/// Only for version 4
- public uint CompressionLevel;
+ public uint CompressionLevel { get; set; }
}
}
\ No newline at end of file
diff --git a/PlayJ/AudioHeader.cs b/PlayJ/AudioHeader.cs
index 1a1f6d3..6a9b96d 100644
--- a/PlayJ/AudioHeader.cs
+++ b/PlayJ/AudioHeader.cs
@@ -9,113 +9,113 @@ namespace SabreTools.Models.PlayJ
///
/// Signature (0x4B539DFF)
///
- public uint Signature;
+ public uint Signature { get; set; }
///
/// Version
///
- public uint Version;
+ public uint Version { get; set; }
// Header-specific data goes here
///
/// Length of the track name
///
- public ushort TrackLength;
+ public ushort TrackLength { get; set; }
///
/// Track name (not null-terminated)
///
#if NET48
- public string Track;
+ public string Track { get; set; }
#else
- public string? Track;
+ public string? Track { get; set; }
#endif
///
/// Length of the artist name
///
- public ushort ArtistLength;
+ public ushort ArtistLength { get; set; }
///
/// Artist name (not null-terminated)
///
#if NET48
- public string Artist;
+ public string Artist { get; set; }
#else
- public string? Artist;
+ public string? Artist { get; set; }
#endif
///
/// Length of the album name
///
- public ushort AlbumLength;
+ public ushort AlbumLength { get; set; }
///
/// Album name (not null-terminated)
///
#if NET48
- public string Album;
+ public string Album { get; set; }
#else
- public string? Album;
+ public string? Album { get; set; }
#endif
///
/// Length of the writer name
///
- public ushort WriterLength;
+ public ushort WriterLength { get; set; }
///
/// Writer name (not null-terminated)
///
#if NET48
- public string Writer;
+ public string Writer { get; set; }
#else
- public string? Writer;
+ public string? Writer { get; set; }
#endif
///
/// Length of the publisher name
///
- public ushort PublisherLength;
+ public ushort PublisherLength { get; set; }
///
/// Publisher name (not null-terminated)
///
#if NET48
- public string Publisher;
+ public string Publisher { get; set; }
#else
- public string? Publisher;
+ public string? Publisher { get; set; }
#endif
///
/// Length of the label name
///
- public ushort LabelLength;
+ public ushort LabelLength { get; set; }
///
/// Label name (not null-terminated)
///
#if NET48
- public string Label;
+ public string Label { get; set; }
#else
- public string? Label;
+ public string? Label { get; set; }
#endif
///
/// Length of the comments
///
/// Optional field only in some samples
- public ushort CommentsLength;
+ public ushort CommentsLength { get; set; }
///
/// Comments (not null-terminated)
///
/// Optional field only in some samples
#if NET48
- public string Comments;
+ public string Comments { get; set; }
#else
- public string? Comments;
+ public string? Comments { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/PlayJ/AudioHeaderV1.cs b/PlayJ/AudioHeaderV1.cs
index 67da596..4577286 100644
--- a/PlayJ/AudioHeaderV1.cs
+++ b/PlayJ/AudioHeaderV1.cs
@@ -9,54 +9,54 @@ namespace SabreTools.Models.PlayJ
/// Download track ID
///
/// 0xFFFFFFFF if unset
- public uint TrackID;
+ public uint TrackID { get; set; }
///
/// Offset to unknown data block 1
///
- public uint UnknownOffset1;
+ public uint UnknownOffset1 { get; set; }
///
/// Offset to unknown data block 2
///
- public uint UnknownOffset2;
+ public uint UnknownOffset2 { get; set; }
///
/// Offset to unknown data block 3
///
- public uint UnknownOffset3;
+ public uint UnknownOffset3 { get; set; }
///
/// Unknown
///
/// Always 0x00000001
- public uint Unknown1;
+ public uint Unknown1 { get; set; }
///
/// Unknown
///
/// Typically 0x00000001 in download titles
- public uint Unknown2;
+ public uint Unknown2 { get; set; }
///
/// Track year
///
/// 0xFFFFFFFF if unset
- public uint Year;
+ public uint Year { get; set; }
///
/// Track number
///
- public byte TrackNumber;
+ public byte TrackNumber { get; set; }
///
/// Subgenre
///
- public Subgenre Subgenre;
+ public Subgenre Subgenre { get; set; }
///
/// Track duration in seconds
///
- public uint Duration;
+ public uint Duration { get; set; }
}
}
\ No newline at end of file
diff --git a/PlayJ/AudioHeaderV2.cs b/PlayJ/AudioHeaderV2.cs
index 54709ae..5156a51 100644
--- a/PlayJ/AudioHeaderV2.cs
+++ b/PlayJ/AudioHeaderV2.cs
@@ -8,119 +8,119 @@ namespace SabreTools.Models.PlayJ
///
/// Unknown (Always 0x00000001)
///
- public uint Unknown1;
+ public uint Unknown1 { get; set; }
///
/// Unknown (Always 0x00000001)
///
- public uint Unknown2;
+ public uint Unknown2 { get; set; }
///
/// Unknown (Always 0x00000000)
///
- public uint Unknown3;
+ public uint Unknown3 { get; set; }
///
/// Unknown (Always 0x00000003)
///
- public uint Unknown4;
+ public uint Unknown4 { get; set; }
///
/// Unknown (Always 0x00000001)
///
- public uint Unknown5;
+ public uint Unknown5 { get; set; }
///
/// Unknown (Always 0x00000000)
///
- public uint Unknown6;
+ public uint Unknown6 { get; set; }
///
/// Offset to unknown block 1, relative to the track ID
///
- public uint UnknownOffset1;
+ public uint UnknownOffset1 { get; set; }
///
/// Unknown
///
- public uint Unknown7;
+ public uint Unknown7 { get; set; }
///
/// Unknown (Always 0x00000004)
///
- public uint Unknown8;
+ public uint Unknown8 { get; set; }
///
/// Unknown (Always 0x00000002)
///
- public uint Unknown9;
+ public uint Unknown9 { get; set; }
///
/// Offset to unknown block 1, relative to the track ID
///
/// Always identical to ?
- public uint UnknownOffset2;
+ public uint UnknownOffset2 { get; set; }
///
/// Unknown
///
- public uint Unknown10;
+ public uint Unknown10 { get; set; }
///
/// Unknown
///
- public uint Unknown11;
+ public uint Unknown11 { get; set; }
///
/// Unknown (Always 0x0000005)
///
- public uint Unknown12;
+ public uint Unknown12 { get; set; }
///
/// Unknown (Always 0x0000009)
///
- public uint Unknown13;
+ public uint Unknown13 { get; set; }
///
/// Unknown
///
- public uint Unknown14;
+ public uint Unknown14 { get; set; }
///
/// Unknown
///
- public uint Unknown15;
+ public uint Unknown15 { get; set; }
///
/// Unknown (Always 0x0000000)
///
- public uint Unknown16;
+ public uint Unknown16 { get; set; }
///
/// Unknown (Always 0x00000007)
///
- public uint Unknown17;
+ public uint Unknown17 { get; set; }
///
/// Download track ID
///
/// 0xFFFFFFFF if unset
- public uint TrackID;
+ public uint TrackID { get; set; }
///
/// Track year -- UNCONFIRMED
///
/// 0xFFFFFFFF if unset
- public uint Year;
+ public uint Year { get; set; }
///
/// Track number
///
- public uint TrackNumber;
+ public uint TrackNumber { get; set; }
///
/// Unknown
///
- public uint Unknown18;
+ public uint Unknown18 { get; set; }
}
}
\ No newline at end of file
diff --git a/PlayJ/DataFile.cs b/PlayJ/DataFile.cs
index 48a3312..205ceb2 100644
--- a/PlayJ/DataFile.cs
+++ b/PlayJ/DataFile.cs
@@ -8,29 +8,29 @@ namespace SabreTools.Models.PlayJ
///
/// Length of the data file name
///
- public ushort FileNameLength;
+ public ushort FileNameLength { get; set; }
///
/// Data file name
///
#if NET48
- public string FileName;
+ public string FileName { get; set; }
#else
- public string? FileName;
+ public string? FileName { get; set; }
#endif
///
/// Length of the data
///
- public uint DataLength;
+ public uint DataLength { get; set; }
///
/// Data
///
#if NET48
- public byte[] Data;
+ public byte[] Data { get; set; }
#else
- public byte[]? Data;
+ public byte[]? Data { get; set; }
#endif
// Notes about Data:
diff --git a/PlayJ/PlaylistHeader.cs b/PlayJ/PlaylistHeader.cs
index 8e0c512..fb0326c 100644
--- a/PlayJ/PlaylistHeader.cs
+++ b/PlayJ/PlaylistHeader.cs
@@ -8,15 +8,15 @@ namespace SabreTools.Models.PlayJ
///
/// Number of tracks contained within the playlist
///
- public uint TrackCount;
+ public uint TrackCount { get; set; }
///
/// 52 bytes of unknown data
///
#if NET48
- public byte[] Data;
+ public byte[] Data { get; set; }
#else
- public byte[]? Data;
+ public byte[]? Data { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/PlayJ/UnknownBlock1.cs b/PlayJ/UnknownBlock1.cs
index b8d8b90..27026ce 100644
--- a/PlayJ/UnknownBlock1.cs
+++ b/PlayJ/UnknownBlock1.cs
@@ -8,15 +8,15 @@ namespace SabreTools.Models.PlayJ
///
/// Length of the following data block
///
- public uint Length;
+ public uint Length { get; set; }
///
/// Unknown data
///
#if NET48
- public byte[] Data;
+ public byte[] Data { get; set; }
#else
- public byte[]? Data;
+ public byte[]? Data { get; set; }
#endif
// Notes about Data:
diff --git a/PlayJ/UnknownBlock3.cs b/PlayJ/UnknownBlock3.cs
index 0ad1840..fc81f8a 100644
--- a/PlayJ/UnknownBlock3.cs
+++ b/PlayJ/UnknownBlock3.cs
@@ -9,9 +9,9 @@ namespace SabreTools.Models.PlayJ
/// Unknown data
///
#if NET48
- public byte[] Data;
+ public byte[] Data { get; set; }
#else
- public byte[]? Data;
+ public byte[]? Data { get; set; }
#endif
// Notes about Data:
diff --git a/PortableExecutable/AcceleratorTableEntry.cs b/PortableExecutable/AcceleratorTableEntry.cs
index e421588..f87c77a 100644
--- a/PortableExecutable/AcceleratorTableEntry.cs
+++ b/PortableExecutable/AcceleratorTableEntry.cs
@@ -13,22 +13,22 @@ namespace SabreTools.Models.PortableExecutable
///
/// Describes keyboard accelerator characteristics.
///
- public AcceleratorTableFlags Flags;
+ public AcceleratorTableFlags Flags { get; set; }
///
/// An ANSI character value or a virtual-key code that identifies the accelerator key.
///
- public ushort Ansi;
+ public ushort Ansi { get; set; }
///
/// An identifier for the keyboard accelerator. This is the value passed to the window
/// procedure when the user presses the specified key.
///
- public ushort Id;
+ public ushort Id { get; set; }
///
/// The number of bytes inserted to ensure that the structure is aligned on a DWORD boundary.
///
- public ushort Padding;
+ public ushort Padding { get; set; }
}
}
diff --git a/PortableExecutable/AssemblyManifest.cs b/PortableExecutable/AssemblyManifest.cs
index 655c24e..1ced131 100644
--- a/PortableExecutable/AssemblyManifest.cs
+++ b/PortableExecutable/AssemblyManifest.cs
@@ -8,25 +8,25 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("manifestVersion")]
#if NET48
- public string ManifestVersion;
+ public string ManifestVersion { get; set; }
#else
- public string? ManifestVersion;
+ public string? ManifestVersion { get; set; }
#endif
#region Group
[XmlElement("assemblyIdentity")]
#if NET48
- public AssemblyIdentity[] AssemblyIdentities;
+ public AssemblyIdentity[] AssemblyIdentities { get; set; }
#else
- public AssemblyIdentity?[]? AssemblyIdentities;
+ public AssemblyIdentity?[]? AssemblyIdentities { get; set; }
#endif
[XmlElement("noInheritable")]
#if NET48
- public AssemblyNoInheritable[] NoInheritables;
+ public AssemblyNoInheritable[] NoInheritables { get; set; }
#else
- public AssemblyNoInheritable?[]? NoInheritables;
+ public AssemblyNoInheritable?[]? NoInheritables { get; set; }
#endif
#endregion
@@ -35,63 +35,63 @@ namespace SabreTools.Models.PortableExecutable
[XmlElement("description")]
#if NET48
- public AssemblyDescription Description;
+ public AssemblyDescription Description { get; set; }
#else
- public AssemblyDescription? Description;
+ public AssemblyDescription? Description { get; set; }
#endif
[XmlElement("noInherit")]
#if NET48
- public AssemblyNoInherit NoInherit;
+ public AssemblyNoInherit NoInherit { get; set; }
#else
- public AssemblyNoInherit? NoInherit;
+ public AssemblyNoInherit? NoInherit { get; set; }
#endif
//[XmlElement("noInheritable")]
- //public AssemblyNoInheritable NoInheritable;
+ //public AssemblyNoInheritable NoInheritable { get; set; }
[XmlElement("comInterfaceExternalProxyStub")]
#if NET48
- public AssemblyCOMInterfaceExternalProxyStub[] COMInterfaceExternalProxyStub;
+ public AssemblyCOMInterfaceExternalProxyStub[] COMInterfaceExternalProxyStub { get; set; }
#else
- public AssemblyCOMInterfaceExternalProxyStub?[]? COMInterfaceExternalProxyStub;
+ public AssemblyCOMInterfaceExternalProxyStub?[]? COMInterfaceExternalProxyStub { get; set; }
#endif
[XmlElement("dependency")]
#if NET48
- public AssemblyDependency[] Dependency;
+ public AssemblyDependency[] Dependency { get; set; }
#else
- public AssemblyDependency?[]? Dependency;
+ public AssemblyDependency?[]? Dependency { get; set; }
#endif
[XmlElement("file")]
#if NET48
- public AssemblyFile[] File;
+ public AssemblyFile[] File { get; set; }
#else
- public AssemblyFile?[]? File;
+ public AssemblyFile?[]? File { get; set; }
#endif
[XmlElement("clrClass")]
#if NET48
- public AssemblyCommonLanguageRuntimeClass[] CLRClass;
+ public AssemblyCommonLanguageRuntimeClass[] CLRClass { get; set; }
#else
- public AssemblyCommonLanguageRuntimeClass?[]? CLRClass;
+ public AssemblyCommonLanguageRuntimeClass?[]? CLRClass { get; set; }
#endif
[XmlElement("clrSurrogate")]
#if NET48
- public AssemblyCommonLanguageSurrogateClass[] CLRSurrogate;
+ public AssemblyCommonLanguageSurrogateClass[] CLRSurrogate { get; set; }
#else
- public AssemblyCommonLanguageSurrogateClass?[]? CLRSurrogate;
+ public AssemblyCommonLanguageSurrogateClass?[]? CLRSurrogate { get; set; }
#endif
#endregion
[XmlAnyElement]
#if NET48
- public object[] EverythingElse;
+ public object[] EverythingElse { get; set; }
#else
- public object[]? EverythingElse;
+ public object[]? EverythingElse { get; set; }
#endif
}
@@ -100,9 +100,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -111,9 +111,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -122,16 +122,16 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("oldVersion")]
#if NET48
- public string OldVersion;
+ public string OldVersion { get; set; }
#else
- public string? OldVersion;
+ public string? OldVersion { get; set; }
#endif
[XmlAttribute("newVersion")]
#if NET48
- public string NewVersion;
+ public string NewVersion { get; set; }
#else
- public string? NewVersion;
+ public string? NewVersion { get; set; }
#endif
}
@@ -140,44 +140,44 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("clsid")]
#if NET48
- public string CLSID;
+ public string CLSID { get; set; }
#else
- public string? CLSID;
+ public string? CLSID { get; set; }
#endif
[XmlAttribute("threadingModel")]
#if NET48
- public string ThreadingModel;
+ public string ThreadingModel { get; set; }
#else
- public string? ThreadingModel;
+ public string? ThreadingModel { get; set; }
#endif
[XmlAttribute("progid")]
#if NET48
- public string ProgID;
+ public string ProgID { get; set; }
#else
- public string? ProgID;
+ public string? ProgID { get; set; }
#endif
[XmlAttribute("tlbid")]
#if NET48
- public string TLBID;
+ public string TLBID { get; set; }
#else
- public string? TLBID;
+ public string? TLBID { get; set; }
#endif
[XmlAttribute("description")]
#if NET48
- public string Description;
+ public string Description { get; set; }
#else
- public string? Description;
+ public string? Description { get; set; }
#endif
[XmlElement("progid")]
#if NET48
- public AssemblyProgID[] ProgIDs;
+ public AssemblyProgID[] ProgIDs { get; set; }
#else
- public AssemblyProgID?[]? ProgIDs;
+ public AssemblyProgID?[]? ProgIDs { get; set; }
#endif
}
@@ -186,44 +186,44 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("iid")]
#if NET48
- public string IID;
+ public string IID { get; set; }
#else
- public string? IID;
+ public string? IID { get; set; }
#endif
[XmlAttribute("name")]
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
[XmlAttribute("tlbid")]
#if NET48
- public string TLBID;
+ public string TLBID { get; set; }
#else
- public string? TLBID;
+ public string? TLBID { get; set; }
#endif
[XmlAttribute("numMethods")]
#if NET48
- public string NumMethods;
+ public string NumMethods { get; set; }
#else
- public string? NumMethods;
+ public string? NumMethods { get; set; }
#endif
[XmlAttribute("proxyStubClsid32")]
#if NET48
- public string ProxyStubClsid32;
+ public string ProxyStubClsid32 { get; set; }
#else
- public string? ProxyStubClsid32;
+ public string? ProxyStubClsid32 { get; set; }
#endif
[XmlAttribute("baseInterface")]
#if NET48
- public string BaseInterface;
+ public string BaseInterface { get; set; }
#else
- public string? BaseInterface;
+ public string? BaseInterface { get; set; }
#endif
}
@@ -232,44 +232,44 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("iid")]
#if NET48
- public string IID;
+ public string IID { get; set; }
#else
- public string? IID;
+ public string? IID { get; set; }
#endif
[XmlAttribute("name")]
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
[XmlAttribute("tlbid")]
#if NET48
- public string TLBID;
+ public string TLBID { get; set; }
#else
- public string? TLBID;
+ public string? TLBID { get; set; }
#endif
[XmlAttribute("numMethods")]
#if NET48
- public string NumMethods;
+ public string NumMethods { get; set; }
#else
- public string? NumMethods;
+ public string? NumMethods { get; set; }
#endif
[XmlAttribute("proxyStubClsid32")]
#if NET48
- public string ProxyStubClsid32;
+ public string ProxyStubClsid32 { get; set; }
#else
- public string? ProxyStubClsid32;
+ public string? ProxyStubClsid32 { get; set; }
#endif
[XmlAttribute("baseInterface")]
#if NET48
- public string BaseInterface;
+ public string BaseInterface { get; set; }
#else
- public string? BaseInterface;
+ public string? BaseInterface { get; set; }
#endif
}
@@ -278,58 +278,58 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("name")]
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
[XmlAttribute("clsid")]
#if NET48
- public string CLSID;
+ public string CLSID { get; set; }
#else
- public string? CLSID;
+ public string? CLSID { get; set; }
#endif
[XmlAttribute("progid")]
#if NET48
- public string ProgID;
+ public string ProgID { get; set; }
#else
- public string? ProgID;
+ public string? ProgID { get; set; }
#endif
[XmlAttribute("tlbid")]
#if NET48
- public string TLBID;
+ public string TLBID { get; set; }
#else
- public string? TLBID;
+ public string? TLBID { get; set; }
#endif
[XmlAttribute("description")]
#if NET48
- public string Description;
+ public string Description { get; set; }
#else
- public string? Description;
+ public string? Description { get; set; }
#endif
[XmlAttribute("runtimeVersion")]
#if NET48
- public string RuntimeVersion;
+ public string RuntimeVersion { get; set; }
#else
- public string? RuntimeVersion;
+ public string? RuntimeVersion { get; set; }
#endif
[XmlAttribute("threadingModel")]
#if NET48
- public string ThreadingModel;
+ public string ThreadingModel { get; set; }
#else
- public string? ThreadingModel;
+ public string? ThreadingModel { get; set; }
#endif
[XmlElement("progid")]
#if NET48
- public AssemblyProgID[] ProgIDs;
+ public AssemblyProgID[] ProgIDs { get; set; }
#else
- public AssemblyProgID?[]? ProgIDs;
+ public AssemblyProgID?[]? ProgIDs { get; set; }
#endif
}
@@ -338,23 +338,23 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("clsid")]
#if NET48
- public string CLSID;
+ public string CLSID { get; set; }
#else
- public string? CLSID;
+ public string? CLSID { get; set; }
#endif
[XmlAttribute("name")]
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
[XmlAttribute("runtimeVersion")]
#if NET48
- public string RuntimeVersion;
+ public string RuntimeVersion { get; set; }
#else
- public string? RuntimeVersion;
+ public string? RuntimeVersion { get; set; }
#endif
}
@@ -363,16 +363,16 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlElement("dependentAssembly")]
#if NET48
- public AssemblyDependentAssembly DependentAssembly;
+ public AssemblyDependentAssembly DependentAssembly { get; set; }
#else
- public AssemblyDependentAssembly? DependentAssembly;
+ public AssemblyDependentAssembly? DependentAssembly { get; set; }
#endif
[XmlAttribute("optional")]
#if NET48
- public string Optional;
+ public string Optional { get; set; }
#else
- public string? Optional;
+ public string? Optional { get; set; }
#endif
}
@@ -381,16 +381,16 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlElement("assemblyIdentity")]
#if NET48
- public AssemblyIdentity AssemblyIdentity;
+ public AssemblyIdentity AssemblyIdentity { get; set; }
#else
- public AssemblyIdentity? AssemblyIdentity;
+ public AssemblyIdentity? AssemblyIdentity { get; set; }
#endif
[XmlElement("bindingRedirect")]
#if NET48
- public AssemblyBindingRedirect[] BindingRedirect;
+ public AssemblyBindingRedirect[] BindingRedirect { get; set; }
#else
- public AssemblyBindingRedirect?[]? BindingRedirect;
+ public AssemblyBindingRedirect?[]? BindingRedirect { get; set; }
#endif
}
@@ -399,9 +399,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -410,9 +410,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -421,9 +421,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -432,9 +432,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -443,9 +443,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -454,60 +454,60 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("name")]
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
[XmlAttribute("hash")]
#if NET48
- public string Hash;
+ public string Hash { get; set; }
#else
- public string? Hash;
+ public string? Hash { get; set; }
#endif
[XmlAttribute("hashalg")]
#if NET48
- public string HashAlgorithm;
+ public string HashAlgorithm { get; set; }
#else
- public string? HashAlgorithm;
+ public string? HashAlgorithm { get; set; }
#endif
[XmlAttribute("size")]
#if NET48
- public string Size;
+ public string Size { get; set; }
#else
- public string? Size;
+ public string? Size { get; set; }
#endif
#region Group
[XmlElement("comClass")]
#if NET48
- public AssemblyCOMClass[] COMClass;
+ public AssemblyCOMClass[] COMClass { get; set; }
#else
- public AssemblyCOMClass?[]? COMClass;
+ public AssemblyCOMClass?[]? COMClass { get; set; }
#endif
[XmlElement("comInterfaceProxyStub")]
#if NET48
- public AssemblyCOMInterfaceProxyStub[] COMInterfaceProxyStub;
+ public AssemblyCOMInterfaceProxyStub[] COMInterfaceProxyStub { get; set; }
#else
- public AssemblyCOMInterfaceProxyStub?[]? COMInterfaceProxyStub;
+ public AssemblyCOMInterfaceProxyStub?[]? COMInterfaceProxyStub { get; set; }
#endif
[XmlElement("typelib")]
#if NET48
- public AssemblyTypeLib[] Typelib;
+ public AssemblyTypeLib[] Typelib { get; set; }
#else
- public AssemblyTypeLib?[]? Typelib;
+ public AssemblyTypeLib?[]? Typelib { get; set; }
#endif
[XmlElement("windowClass")]
#if NET48
- public AssemblyWindowClass[] WindowClass;
+ public AssemblyWindowClass[] WindowClass { get; set; }
#else
- public AssemblyWindowClass?[]? WindowClass;
+ public AssemblyWindowClass?[]? WindowClass { get; set; }
#endif
#endregion
@@ -518,9 +518,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -529,9 +529,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -540,9 +540,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -551,44 +551,44 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("name")]
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
[XmlAttribute("version")]
#if NET48
- public string Version;
+ public string Version { get; set; }
#else
- public string? Version;
+ public string? Version { get; set; }
#endif
[XmlAttribute("type")]
#if NET48
- public string Type;
+ public string Type { get; set; }
#else
- public string? Type;
+ public string? Type { get; set; }
#endif
[XmlAttribute("processorArchitecture")]
#if NET48
- public string ProcessorArchitecture;
+ public string ProcessorArchitecture { get; set; }
#else
- public string? ProcessorArchitecture;
+ public string? ProcessorArchitecture { get; set; }
#endif
[XmlAttribute("publicKeyToken")]
#if NET48
- public string PublicKeyToken;
+ public string PublicKeyToken { get; set; }
#else
- public string? PublicKeyToken;
+ public string? PublicKeyToken { get; set; }
#endif
[XmlAttribute("language")]
#if NET48
- public string Language;
+ public string Language { get; set; }
#else
- public string? Language;
+ public string? Language { get; set; }
#endif
}
@@ -597,9 +597,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -618,9 +618,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -629,9 +629,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -640,9 +640,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("Id")]
#if NET48
- public string Id;
+ public string Id { get; set; }
#else
- public string? Id;
+ public string? Id { get; set; }
#endif
}
@@ -651,37 +651,37 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlElement("tlbid")]
#if NET48
- public string TLBID;
+ public string TLBID { get; set; }
#else
- public string? TLBID;
+ public string? TLBID { get; set; }
#endif
[XmlElement("version")]
#if NET48
- public string Version;
+ public string Version { get; set; }
#else
- public string? Version;
+ public string? Version { get; set; }
#endif
[XmlElement("helpdir")]
#if NET48
- public string HelpDir;
+ public string HelpDir { get; set; }
#else
- public string? HelpDir;
+ public string? HelpDir { get; set; }
#endif
[XmlElement("resourceid")]
#if NET48
- public string ResourceID;
+ public string ResourceID { get; set; }
#else
- public string? ResourceID;
+ public string? ResourceID { get; set; }
#endif
[XmlElement("flags")]
#if NET48
- public string Flags;
+ public string Flags { get; set; }
#else
- public string? Flags;
+ public string? Flags { get; set; }
#endif
}
@@ -690,9 +690,9 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
@@ -701,16 +701,16 @@ namespace SabreTools.Models.PortableExecutable
{
[XmlAttribute("versioned")]
#if NET48
- public string Versioned;
+ public string Versioned { get; set; }
#else
- public string? Versioned;
+ public string? Versioned { get; set; }
#endif
[XmlText]
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
diff --git a/PortableExecutable/AttributeCertificateTableEntry.cs b/PortableExecutable/AttributeCertificateTableEntry.cs
index 6c74efa..d002d42 100644
--- a/PortableExecutable/AttributeCertificateTableEntry.cs
+++ b/PortableExecutable/AttributeCertificateTableEntry.cs
@@ -42,26 +42,26 @@
///
/// Specifies the length of the attribute certificate entry.
///
- public uint Length;
+ public uint Length { get; set; }
///
/// Contains the certificate version number.
///
- public WindowsCertificateRevision Revision;
+ public WindowsCertificateRevision Revision { get; set; }
///
/// Specifies the type of content in Certificate.
///
- public WindowsCertificateType CertificateType;
+ public WindowsCertificateType CertificateType { get; set; }
///
/// Contains a certificate, such as an Authenticode signature.
///
///
#if NET48
- public byte[] Certificate;
+ public byte[] Certificate { get; set; }
#else
- public byte[]? Certificate;
+ public byte[]? Certificate { get; set; }
#endif
}
}
diff --git a/PortableExecutable/BaseRelocationBlock.cs b/PortableExecutable/BaseRelocationBlock.cs
index 2482107..29ccf07 100644
--- a/PortableExecutable/BaseRelocationBlock.cs
+++ b/PortableExecutable/BaseRelocationBlock.cs
@@ -24,14 +24,14 @@
/// The image base plus the page RVA is added to each offset to create
/// the VA where the base relocation must be applied.
///
- public uint PageRVA;
+ public uint PageRVA { get; set; }
///
/// The total number of bytes in the base relocation block, including
/// the Page RVA and Block Size fields and the Type/Offset fields that
/// follow.
///
- public uint BlockSize;
+ public uint BlockSize { get; set; }
///
/// The Block Size field is then followed by any number of Type or Offset
@@ -47,9 +47,9 @@
/// specifies where the base relocation is to be applied.
///
#if NET48
- public BaseRelocationTypeOffsetFieldEntry[] TypeOffsetFieldEntries;
+ public BaseRelocationTypeOffsetFieldEntry[] TypeOffsetFieldEntries { get; set; }
#else
- public BaseRelocationTypeOffsetFieldEntry?[]? TypeOffsetFieldEntries;
+ public BaseRelocationTypeOffsetFieldEntry?[]? TypeOffsetFieldEntries { get; set; }
#endif
}
}
diff --git a/PortableExecutable/BaseRelocationTypeOffsetFieldEntry.cs b/PortableExecutable/BaseRelocationTypeOffsetFieldEntry.cs
index 64da3ea..eef727e 100644
--- a/PortableExecutable/BaseRelocationTypeOffsetFieldEntry.cs
+++ b/PortableExecutable/BaseRelocationTypeOffsetFieldEntry.cs
@@ -10,13 +10,13 @@
/// 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;
+ 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;
+ public ushort Offset { get; set; }
}
}
diff --git a/PortableExecutable/COFFFileHeader.cs b/PortableExecutable/COFFFileHeader.cs
index 0fb0352..39fa94d 100644
--- a/PortableExecutable/COFFFileHeader.cs
+++ b/PortableExecutable/COFFFileHeader.cs
@@ -14,43 +14,43 @@ namespace SabreTools.Models.PortableExecutable
///
/// The number that identifies the type of target machine.
///
- public MachineType Machine;
+ public MachineType Machine { get; set; }
///
/// The number of sections. This indicates the size of the section table,
/// which immediately follows the headers.
///
- public ushort NumberOfSections;
+ public ushort NumberOfSections { get; set; }
///
/// The low 32 bits of the number of seconds since 00:00 January 1, 1970
/// (a C run-time time_t value), which indicates when the file was created.
///
- public uint TimeDateStamp;
+ public uint TimeDateStamp { get; set; }
///
/// The file offset of the COFF symbol table, or zero if no COFF symbol table
/// is present. This value should be zero for an image because COFF debugging
/// information is deprecated.
///
- public uint PointerToSymbolTable;
+ public uint PointerToSymbolTable { get; set; }
///
/// The number of entries in the symbol table. This data can be used to locate
/// the string table, which immediately follows the symbol table. This value
/// should be zero for an image because COFF debugging information is deprecated.
///
- public uint NumberOfSymbols;
+ public uint NumberOfSymbols { get; set; }
///
/// The size of the optional header, which is required for executable files but
/// not for object files. This value should be zero for an object file.
///
- public ushort SizeOfOptionalHeader;
+ public ushort SizeOfOptionalHeader { get; set; }
///
/// The flags that indicate the attributes of the file.
///
- public Characteristics Characteristics;
+ public Characteristics Characteristics { get; set; }
}
}
diff --git a/PortableExecutable/COFFRelocation.cs b/PortableExecutable/COFFRelocation.cs
index 50c84f7..e8b6765 100644
--- a/PortableExecutable/COFFRelocation.cs
+++ b/PortableExecutable/COFFRelocation.cs
@@ -27,7 +27,7 @@ namespace SabreTools.Models.PortableExecutable
/// For example, if the first byte of the section has an address of 0x10,
/// the third byte has an address of 0x12.
///
- public uint VirtualAddress;
+ public uint VirtualAddress { get; set; }
///
/// A zero-based index into the symbol table. This symbol gives the address
@@ -35,12 +35,12 @@ namespace SabreTools.Models.PortableExecutable
/// storage class, then the symbol's address is the address with the first
/// section of the same name.
///
- public uint SymbolTableIndex;
+ public uint SymbolTableIndex { get; set; }
///
/// A value that indicates the kind of relocation that should be performed.
/// Valid relocation types depend on machine type.
///
- public RelocationType TypeIndicator;
+ public RelocationType TypeIndicator { get; set; }
}
}
diff --git a/PortableExecutable/COFFStringTable.cs b/PortableExecutable/COFFStringTable.cs
index 94d8a12..0c4c465 100644
--- a/PortableExecutable/COFFStringTable.cs
+++ b/PortableExecutable/COFFStringTable.cs
@@ -14,16 +14,16 @@
/// the size field itself, so that the value in this location would be 4 if no
/// strings were present.
///
- public uint TotalSize;
+ public uint TotalSize { get; set; }
///
/// Following the size are null-terminated strings that are pointed to by symbols
/// in the COFF symbol table.
///
#if NET48
- public string[] Strings;
+ public string[] Strings { get; set; }
#else
- public string[]? Strings;
+ public string[]? Strings { get; set; }
#endif
}
}
diff --git a/PortableExecutable/COFFSymbolTableEntry.cs b/PortableExecutable/COFFSymbolTableEntry.cs
index 5e8aa9a..2d03415 100644
--- a/PortableExecutable/COFFSymbolTableEntry.cs
+++ b/PortableExecutable/COFFSymbolTableEntry.cs
@@ -38,12 +38,12 @@ namespace SabreTools.Models.PortableExecutable
///
/// A field that is set to all zeros if the name is longer than 8 bytes.
///
- public uint Zeroes;
+ public uint Zeroes { get; set; }
///
/// An offset into the string table.
///
- public uint Offset;
+ public uint Offset { get; set; }
#endregion
@@ -52,29 +52,29 @@ namespace SabreTools.Models.PortableExecutable
/// field depends on SectionNumber and StorageClass. A typical meaning is the
/// relocatable address.
///
- public uint Value;
+ public uint Value { get; set; }
///
/// The signed integer that identifies the section, using a one-based index
/// into the section table. Some values have special meaning.
///
- public ushort SectionNumber;
+ public ushort SectionNumber { get; set; }
///
/// A number that represents type. Microsoft tools set this field to 0x20
/// (function) or 0x0 (not a function).
///
- public SymbolType SymbolType;
+ public SymbolType SymbolType { get; set; }
///
/// An enumerated value that represents storage class.
///
- public StorageClass StorageClass;
+ public StorageClass StorageClass { get; set; }
///
/// The number of auxiliary symbol table entries that follow this record.
///
- public byte NumberOfAuxSymbols;
+ public byte NumberOfAuxSymbols { get; set; }
#endregion
@@ -106,31 +106,31 @@ namespace SabreTools.Models.PortableExecutable
/// The symbol-table index of the corresponding .bf (begin function)
/// symbol record.
///
- public uint AuxFormat1TagIndex;
+ public uint AuxFormat1TagIndex { get; set; }
///
/// The size of the executable code for the function itself. If the function
/// is in its own section, the SizeOfRawData in the section header is greater
/// or equal to this field, depending on alignment considerations.
///
- public uint AuxFormat1TotalSize;
+ public uint AuxFormat1TotalSize { get; set; }
///
/// The file offset of the first COFF line-number entry for the function, or
/// zero if none exists.
///
- public uint AuxFormat1PointerToLinenumber;
+ public uint AuxFormat1PointerToLinenumber { get; set; }
///
/// The symbol-table index of the record for the next function. If the function
/// is the last in the symbol table, this field is set to zero.
///
- public uint AuxFormat1PointerToNextFunction;
+ public uint AuxFormat1PointerToNextFunction { get; set; }
///
/// Unused
///
- public ushort AuxFormat1Unused;
+ public ushort AuxFormat1Unused { get; set; }
#endregion
@@ -154,13 +154,13 @@ namespace SabreTools.Models.PortableExecutable
///
/// Unused
///
- public uint AuxFormat2Unused1;
+ public uint AuxFormat2Unused1 { get; set; }
///
/// The actual ordinal line number (1, 2, 3, and so on) within the source file,
/// corresponding to the .bf or .ef record.
///
- public ushort AuxFormat2Linenumber;
+ public ushort AuxFormat2Linenumber { get; set; }
///
/// Unused
@@ -177,12 +177,12 @@ namespace SabreTools.Models.PortableExecutable
/// last in the symbol table, this field is set to zero. It is not used for
/// .ef records.
///
- public uint AuxFormat2PointerToNextFunction;
+ public uint AuxFormat2PointerToNextFunction { get; set; }
///
/// Unused
///
- public ushort AuxFormat2Unused3;
+ public ushort AuxFormat2Unused3 { get; set; }
#endregion
@@ -207,7 +207,7 @@ namespace SabreTools.Models.PortableExecutable
///
/// The symbol-table index of sym2, the symbol to be linked if sym1 is not found.
///
- public uint AuxFormat3TagIndex;
+ public uint AuxFormat3TagIndex { get; set; }
///
/// A value of IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY indicates that no library search
@@ -216,7 +216,7 @@ namespace SabreTools.Models.PortableExecutable
/// sym1 should be performed.
/// A value of IMAGE_WEAK_EXTERN_SEARCH_ALIAS indicates that sym1 is an alias for sym2.
///
- public uint AuxFormat3Characteristics;
+ public uint AuxFormat3Characteristics { get; set; }
///
/// Unused
@@ -244,7 +244,7 @@ namespace SabreTools.Models.PortableExecutable
#if NET48
public byte[] AuxFormat4FileName;
#else
- public byte[]? AuxFormat4FileName;
+ public byte[]? AuxFormat4FileName;}
#endif
#endregion
@@ -260,35 +260,35 @@ namespace SabreTools.Models.PortableExecutable
///
/// The size of section data; the same as SizeOfRawData in the section header.
///
- public uint AuxFormat5Length;
+ public uint AuxFormat5Length { get; set; }
///
/// The number of relocation entries for the section.
///
- public ushort AuxFormat5NumberOfRelocations;
+ public ushort AuxFormat5NumberOfRelocations { get; set; }
///
/// The number of line-number entries for the section.
///
- public ushort AuxFormat5NumberOfLinenumbers;
+ public ushort AuxFormat5NumberOfLinenumbers { get; set; }
///
/// The checksum for communal data. It is applicable if the IMAGE_SCN_LNK_COMDAT
/// flag is set in the section header.
///
- public uint AuxFormat5CheckSum;
+ public uint AuxFormat5CheckSum { get; set; }
///
/// One-based index into the section table for the associated section. This is
/// used when the COMDAT selection setting is 5.
///
- public ushort AuxFormat5Number;
+ public ushort AuxFormat5Number { get; set; }
///
/// The COMDAT selection number. This is applicable if the section is a
/// COMDAT section.
///
- public byte AuxFormat5Selection;
+ public byte AuxFormat5Selection { get; set; }
///
/// Unused
@@ -310,17 +310,17 @@ namespace SabreTools.Models.PortableExecutable
///
/// Must be IMAGE_AUX_SYMBOL_TYPE_TOKEN_DEF (1).
///
- public byte AuxFormat6AuxType;
+ public byte AuxFormat6AuxType { get; set; }
///
/// Reserved, must be zero.
///
- public byte AuxFormat6Reserved1;
+ public byte AuxFormat6Reserved1 { get; set; }
///
/// The symbol index of the COFF symbol to which this CLR token definition refers.
///
- public uint AuxFormat6SymbolTableIndex;
+ public uint AuxFormat6SymbolTableIndex { get; set; }
///
/// Reserved, must be zero.
diff --git a/PortableExecutable/CursorAndIconResource.cs b/PortableExecutable/CursorAndIconResource.cs
index 2777685..81ea13a 100644
--- a/PortableExecutable/CursorAndIconResource.cs
+++ b/PortableExecutable/CursorAndIconResource.cs
@@ -34,9 +34,9 @@
/// Describes keyboard accelerator characteristics.
///
#if NET48
- public NewHeader NEWHEADER;
+ public NewHeader NEWHEADER { get; set; }
#else
- public NewHeader? NEWHEADER;
+ public NewHeader? NEWHEADER { get; set; }
#endif
// TODO: Add array of entries in the resource
diff --git a/PortableExecutable/DataDirectory.cs b/PortableExecutable/DataDirectory.cs
index db03c86..4886956 100644
--- a/PortableExecutable/DataDirectory.cs
+++ b/PortableExecutable/DataDirectory.cs
@@ -19,11 +19,11 @@ namespace SabreTools.Models.PortableExecutable
/// is the address of the table relative to the base address of the image when
/// the table is loaded.
///
- public uint VirtualAddress;
+ public uint VirtualAddress { get; set; }
///
/// The second field gives the size in bytes.
///
- public uint Size;
+ public uint Size { get; set; }
}
}
diff --git a/PortableExecutable/DebugDirectoryEntry.cs b/PortableExecutable/DebugDirectoryEntry.cs
index af811c7..f6c95ba 100644
--- a/PortableExecutable/DebugDirectoryEntry.cs
+++ b/PortableExecutable/DebugDirectoryEntry.cs
@@ -25,42 +25,42 @@ namespace SabreTools.Models.PortableExecutable
///
/// Reserved, must be zero.
///
- public uint Characteristics;
+ public uint Characteristics { get; set; }
///
/// The time and date that the debug data was created.
///
- public uint TimeDateStamp;
+ public uint TimeDateStamp { get; set; }
///
/// The major version number of the debug data format.
///
- public ushort MajorVersion;
+ public ushort MajorVersion { get; set; }
///
/// The minor version number of the debug data format.
///
- public ushort MinorVersion;
+ public ushort MinorVersion { get; set; }
///
/// The format of debugging information. This field enables support
/// of multiple debuggers.
///
- public DebugType DebugType;
+ public DebugType DebugType { get; set; }
///
/// The size of the debug data (not including the debug directory itself).
///
- public uint SizeOfData;
+ public uint SizeOfData { get; set; }
///
/// The address of the debug data when loaded, relative to the image base.
///
- public uint AddressOfRawData;
+ public uint AddressOfRawData { get; set; }
///
/// The file pointer to the debug data.
///
- public uint PointerToRawData;
+ public uint PointerToRawData { get; set; }
}
}
diff --git a/PortableExecutable/DebugTable.cs b/PortableExecutable/DebugTable.cs
index 4334d7d..595e862 100644
--- a/PortableExecutable/DebugTable.cs
+++ b/PortableExecutable/DebugTable.cs
@@ -34,9 +34,9 @@
/// the RVA is its address.
///
#if NET48
- public DebugDirectoryEntry[] DebugDirectoryTable;
+ public DebugDirectoryEntry[] DebugDirectoryTable { get; set; }
#else
- public DebugDirectoryEntry?[]? DebugDirectoryTable;
+ public DebugDirectoryEntry?[]? DebugDirectoryTable { get; set; }
#endif
}
}
diff --git a/PortableExecutable/DelayLoadDirectoryTable.cs b/PortableExecutable/DelayLoadDirectoryTable.cs
index 2a28fa6..1b8b117 100644
--- a/PortableExecutable/DelayLoadDirectoryTable.cs
+++ b/PortableExecutable/DelayLoadDirectoryTable.cs
@@ -20,7 +20,7 @@ namespace SabreTools.Models.PortableExecutable
/// indicating the presence of new fields, or it can be used to indicate
/// behaviors to the delay or unload helper functions.
///
- public uint Attributes;
+ public uint Attributes { get; set; }
///
/// The RVA of the name of the DLL to be loaded. The name resides in the
@@ -30,7 +30,7 @@ namespace SabreTools.Models.PortableExecutable
/// The name of the DLL to be delay-loaded resides in the read-only data
/// section of the image. It is referenced through the szName field.
///
- public uint Name;
+ public uint Name { get; set; }
///
/// The RVA of the module handle (in the data section of the image) of the DLL
@@ -42,7 +42,7 @@ namespace SabreTools.Models.PortableExecutable
/// The phmod field points to the handle. The supplied delay-load helper uses
/// this location to store the handle to the loaded DLL.
///
- public uint ModuleHandle;
+ public uint ModuleHandle { get; set; }
///
/// The RVA of the delay-load import address table.
@@ -54,7 +54,7 @@ namespace SabreTools.Models.PortableExecutable
/// the calling loop. The function pointers are accessed by using the expression
/// pINT->u1.Function.
///
- public uint DelayImportAddressTable;
+ public uint DelayImportAddressTable { get; set; }
///
/// The RVA of the delay-load name table, which contains the names of the imports
@@ -66,7 +66,7 @@ namespace SabreTools.Models.PortableExecutable
/// in the IAT. They consist of the same structures as the standard INT and are
/// accessed by using the expression pINT->u1.AddressOfData->Name[0].
///
- public uint DelayImportNameTable;
+ public uint DelayImportNameTable { get; set; }
///
/// The RVA of the bound delay-load address table, if it exists.
@@ -76,7 +76,7 @@ namespace SabreTools.Models.PortableExecutable
/// IMAGE_THUNK_DATA items that is used along with the timestamp field of the
/// delay-load directory table by a post-process binding phase.
///
- public uint BoundDelayImportTable;
+ public uint BoundDelayImportTable { get; set; }
///
/// The RVA of the unload delay-load address table, if it exists. This is an exact
@@ -92,7 +92,7 @@ namespace SabreTools.Models.PortableExecutable
/// On the unload request, the library can be freed, the *phmod cleared, and the
/// UIAT written over the IAT to restore everything to its preload state.
///
- public uint UnloadDelayImportTable;
+ public uint UnloadDelayImportTable { get; set; }
///
/// The timestamp of the DLL to which this image has been bound.
@@ -102,6 +102,6 @@ namespace SabreTools.Models.PortableExecutable
/// IMAGE_THUNK_DATA items that is used along with the timestamp field of the
/// delay-load directory table by a post-process binding phase.
///
- public uint TimeStamp;
+ public uint TimeStamp { get; set; }
}
}
diff --git a/PortableExecutable/DialogBoxResource.cs b/PortableExecutable/DialogBoxResource.cs
index 993073d..375776b 100644
--- a/PortableExecutable/DialogBoxResource.cs
+++ b/PortableExecutable/DialogBoxResource.cs
@@ -15,18 +15,18 @@
/// Dialog box header structure
///
#if NET48
- public DialogTemplate DialogTemplate;
+ public DialogTemplate DialogTemplate { get; set; }
#else
- public DialogTemplate? DialogTemplate;
+ public DialogTemplate? DialogTemplate { get; set; }
#endif
///
/// Dialog box extended header structure
///
#if NET48
- public DialogTemplateExtended ExtendedDialogTemplate;
+ public DialogTemplateExtended ExtendedDialogTemplate { get; set; }
#else
- public DialogTemplateExtended? ExtendedDialogTemplate;
+ public DialogTemplateExtended? ExtendedDialogTemplate { get; set; }
#endif
#endregion
@@ -40,9 +40,9 @@
/// These DLGITEMTEMPLATE structures must be aligned on DWORD boundaries.
///
#if NET48
- public DialogItemTemplate[] DialogItemTemplates;
+ public DialogItemTemplate[] DialogItemTemplates { get; set; }
#else
- public DialogItemTemplate?[]? DialogItemTemplates;
+ public DialogItemTemplate?[]? DialogItemTemplates { get; set; }
#endif
///
@@ -52,9 +52,9 @@
/// structures that follow in the template.
///
#if NET48
- public DialogItemTemplateExtended[] ExtendedDialogItemTemplates;
+ public DialogItemTemplateExtended[] ExtendedDialogItemTemplates { get; set; }
#else
- public DialogItemTemplateExtended?[]? ExtendedDialogItemTemplates;
+ public DialogItemTemplateExtended?[]? ExtendedDialogItemTemplates { get; set; }
#endif
#endregion
diff --git a/PortableExecutable/DialogItemTemplate.cs b/PortableExecutable/DialogItemTemplate.cs
index 26b4498..2b20890 100644
--- a/PortableExecutable/DialogItemTemplate.cs
+++ b/PortableExecutable/DialogItemTemplate.cs
@@ -16,14 +16,14 @@ namespace SabreTools.Models.PortableExecutable
/// (such as WS_BORDER) and one or more of the control style values (such as
/// BS_PUSHBUTTON and ES_LEFT).
///
- public WindowStyles Style;
+ public WindowStyles Style { get; set; }
///
/// The extended styles for a window. This member is not used to create dialog boxes,
/// but applications that use dialog box templates can use it to create other types
/// of windows.
///
- public ExtendedWindowStyles ExtendedStyle;
+ public ExtendedWindowStyles ExtendedStyle { get; set; }
///
/// The x-coordinate, in dialog box units, of the upper-left corner of the control.
@@ -34,7 +34,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values to screen
/// units (pixels) by using the MapDialogRect function.
///
- public short PositionX;
+ public short PositionX { get; set; }
///
/// The y-coordinate, in dialog box units, of the upper-left corner of the control.
@@ -45,7 +45,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values to screen
/// units (pixels) by using the MapDialogRect function.
///
- public short PositionY;
+ public short PositionY { get; set; }
///
/// The width, in dialog box units, of the control.
@@ -54,7 +54,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values to screen
/// units (pixels) by using the MapDialogRect function.
///
- public short WidthX;
+ public short WidthX { get; set; }
///
/// The height, in dialog box units, of the control.
@@ -63,12 +63,12 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values to screen
/// units (pixels) by using the MapDialogRect function.
///
- public short HeightY;
+ public short HeightY { get; set; }
///
/// The control identifier.
///
- public ushort ID;
+ public ushort ID { get; set; }
// In a standard template for a dialog box, the DLGITEMTEMPLATE structure is always immediately
// followed by three variable-length arrays specifying the class, title, and creation data for
@@ -90,15 +90,15 @@ namespace SabreTools.Models.PortableExecutable
/// MultiByteToWideChar function to generate Unicode strings from ANSI strings.
///
#if NET48
- public string ClassResource;
+ public string ClassResource { get; set; }
#else
- public string? ClassResource;
+ public string? ClassResource { get; set; }
#endif
///
/// The ordinal value of a predefined system class.
///
- public DialogItemTemplateOrdinal ClassResourceOrdinal;
+ public DialogItemTemplateOrdinal ClassResourceOrdinal { get; set; }
///
/// Following the class array is a title array that contains the initial text or resource identifier
@@ -113,22 +113,22 @@ namespace SabreTools.Models.PortableExecutable
/// MultiByteToWideChar function to generate Unicode strings from ANSI strings.
///
#if NET48
- public string TitleResource;
+ public string TitleResource { get; set; }
#else
- public string? TitleResource;
+ public string? TitleResource { get; set; }
#endif
///
/// An ordinal value of a resource, such as an icon, in an executable file
///
- public ushort TitleResourceOrdinal;
+ public ushort TitleResourceOrdinal { get; set; }
///
/// The creation data array begins at the next WORD boundary after the title array. This creation data
/// can be of any size and format. If the first word of the creation data array is nonzero, it indicates
/// the size, in bytes, of the creation data (including the size word).
///
- public ushort CreationDataSize;
+ public ushort CreationDataSize { get; set; }
///
/// The creation data array begins at the next WORD boundary after the title array. This creation data
@@ -137,9 +137,9 @@ namespace SabreTools.Models.PortableExecutable
/// WM_CREATE message that it sends to the control.
///
#if NET48
- public byte[] CreationData;
+ public byte[] CreationData { get; set; }
#else
- public byte[]? CreationData;
+ public byte[]? CreationData { get; set; }
#endif
}
}
diff --git a/PortableExecutable/DialogItemTemplateExtended.cs b/PortableExecutable/DialogItemTemplateExtended.cs
index 28e451b..871d659 100644
--- a/PortableExecutable/DialogItemTemplateExtended.cs
+++ b/PortableExecutable/DialogItemTemplateExtended.cs
@@ -14,21 +14,21 @@ namespace SabreTools.Models.PortableExecutable
/// The help context identifier for the control. When the system sends a WM_HELP message,
/// it passes the helpID value in the dwContextId member of the HELPINFO structure.
///
- public uint HelpID;
+ public uint HelpID { get; set; }
///
/// The extended styles for a window. This member is not used to create controls in dialog
/// boxes, but applications that use dialog box templates can use it to create other types
/// of windows.
///
- public ExtendedWindowStyles ExtendedStyle;
+ public ExtendedWindowStyles ExtendedStyle { get; set; }
///
/// The style of the control. This member can be a combination of window style values
/// (such as WS_BORDER) and one or more of the control style values (such as
/// BS_PUSHBUTTON and ES_LEFT).
///
- public WindowStyles Style;
+ public WindowStyles Style { get; set; }
///
/// The x-coordinate, in dialog box units, of the upper-left corner of the control.
@@ -39,7 +39,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values to screen
/// units (pixels) by using the MapDialogRect function.
///
- public short PositionX;
+ public short PositionX { get; set; }
///
/// The y-coordinate, in dialog box units, of the upper-left corner of the control.
@@ -50,7 +50,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values to screen
/// units (pixels) by using the MapDialogRect function.
///
- public short PositionY;
+ public short PositionY { get; set; }
///
/// The width, in dialog box units, of the control.
@@ -59,7 +59,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values to screen
/// units (pixels) by using the MapDialogRect function.
///
- public short WidthX;
+ public short WidthX { get; set; }
///
/// The height, in dialog box units, of the control.
@@ -68,12 +68,12 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values to screen
/// units (pixels) by using the MapDialogRect function.
///
- public short HeightY;
+ public short HeightY { get; set; }
///
/// The control identifier.
///
- public uint ID;
+ public uint ID { get; set; }
///
/// A variable-length array of 16-bit elements that specifies the window class of the control. If
@@ -88,15 +88,15 @@ namespace SabreTools.Models.PortableExecutable
/// MultiByteToWideChar function to generate Unicode strings from ANSI strings.
///
#if NET48
- public string ClassResource;
+ public string ClassResource { get; set; }
#else
- public string? ClassResource;
+ public string? ClassResource { get; set; }
#endif
///
/// The ordinal value of a predefined system class.
///
- public DialogItemTemplateOrdinal ClassResourceOrdinal;
+ public DialogItemTemplateOrdinal ClassResourceOrdinal { get; set; }
///
/// A variable-length array of 16-bit elements that contains the initial text or resource identifier of the
@@ -111,22 +111,22 @@ namespace SabreTools.Models.PortableExecutable
/// MultiByteToWideChar function to generate Unicode strings from ANSI strings.
///
#if NET48
- public string TitleResource;
+ public string TitleResource { get; set; }
#else
- public string? TitleResource;
+ public string? TitleResource { get; set; }
#endif
///
/// An ordinal value of a resource, such as an icon, in an executable file
///
- public ushort TitleResourceOrdinal;
+ public ushort TitleResourceOrdinal { get; set; }
///
/// The creation data array begins at the next WORD boundary after the title array. This creation data
/// can be of any size and format. If the first word of the creation data array is nonzero, it indicates
/// the size, in bytes, of the creation data (including the size word).
///
- public ushort CreationDataSize;
+ public ushort CreationDataSize { get; set; }
///
/// The creation data array begins at the next WORD boundary after the title array. This creation data
@@ -135,9 +135,9 @@ namespace SabreTools.Models.PortableExecutable
/// WM_CREATE message that it sends to the control.
///
#if NET48
- public byte[] CreationData;
+ public byte[] CreationData { get; set; }
#else
- public byte[]? CreationData;
+ public byte[]? CreationData { get; set; }
#endif
}
}
diff --git a/PortableExecutable/DialogTemplate.cs b/PortableExecutable/DialogTemplate.cs
index 9fead63..05b170e 100644
--- a/PortableExecutable/DialogTemplate.cs
+++ b/PortableExecutable/DialogTemplate.cs
@@ -29,19 +29,19 @@ namespace SabreTools.Models.PortableExecutable
///
/// The DS_SHELLFONT style is not supported in the DLGTEMPLATE header.
///
- public WindowStyles Style;
+ public WindowStyles Style { get; set; }
///
/// The extended styles for a window. This member is not used to create dialog boxes,
/// but applications that use dialog box templates can use it to create other types
/// of windows.
///
- public ExtendedWindowStyles ExtendedStyle;
+ public ExtendedWindowStyles ExtendedStyle { get; set; }
///
/// The number of items in the dialog box.
///
- public ushort ItemCount;
+ public ushort ItemCount { get; set; }
///
/// The x-coordinate, in dialog box units, of the upper-left corner of the dialog box.
@@ -50,7 +50,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values
/// to screen units (pixels) by using the MapDialogRect function.
///
- public short PositionX;
+ public short PositionX { get; set; }
///
/// The y-coordinate, in dialog box units, of the upper-left corner of the dialog box.
@@ -59,7 +59,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values
/// to screen units (pixels) by using the MapDialogRect function.
///
- public short PositionY;
+ public short PositionY { get; set; }
///
/// The width, in dialog box units, of the dialog box.
@@ -68,7 +68,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values
/// to screen units (pixels) by using the MapDialogRect function.
///
- public short WidthX;
+ public short WidthX { get; set; }
///
/// The height, in dialog box units, of the dialog box.
@@ -77,7 +77,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values
/// to screen units (pixels) by using the MapDialogRect function.
///
- public short HeightY;
+ public short HeightY { get; set; }
// In a standard template for a dialog box, the DLGTEMPLATE structure is always immediately
// followed by three variable-length arrays that specify the menu, class, and title for the
@@ -100,15 +100,15 @@ namespace SabreTools.Models.PortableExecutable
/// Unicode strings.
///
#if NET48
- public string MenuResource;
+ public string MenuResource { get; set; }
#else
- public string? MenuResource;
+ public string? MenuResource { get; set; }
#endif
///
/// The ordinal value of a menu resource in an executable file.
///
- public ushort MenuResourceOrdinal;
+ public ushort MenuResourceOrdinal { get; set; }
///
/// Following the menu array is a class array that identifies the window class of the dialog box.
@@ -123,15 +123,15 @@ namespace SabreTools.Models.PortableExecutable
/// Unicode strings.
///
#if NET48
- public string ClassResource;
+ public string ClassResource { get; set; }
#else
- public string? ClassResource;
+ public string? ClassResource { get; set; }
#endif
///
/// The ordinal value of a predefined system class.
///
- public ushort ClassResourceOrdinal;
+ public ushort ClassResourceOrdinal { get; set; }
///
/// Following the class array is a title array that specifies a null-terminated Unicode string
@@ -143,9 +143,9 @@ namespace SabreTools.Models.PortableExecutable
/// Unicode strings.
///
#if NET48
- public string TitleResource;
+ public string TitleResource { get; set; }
#else
- public string? TitleResource;
+ public string? TitleResource { get; set; }
#endif
///
@@ -156,7 +156,7 @@ namespace SabreTools.Models.PortableExecutable
/// and sends a WM_SETFONT message to the dialog box procedure and the control window
/// procedures as it creates the dialog box and controls.
///
- public ushort PointSizeValue;
+ public ushort PointSizeValue { get; set; }
///
/// The 16-bit point size value and the typeface array follow the title array, but only if the
@@ -171,9 +171,9 @@ namespace SabreTools.Models.PortableExecutable
/// Unicode strings.
///
#if NET48
- public string Typeface;
+ public string Typeface { get; set; }
#else
- public string? Typeface;
+ public string? Typeface { get; set; }
#endif
}
}
diff --git a/PortableExecutable/DialogTemplateExtended.cs b/PortableExecutable/DialogTemplateExtended.cs
index a73de47..92e0c64 100644
--- a/PortableExecutable/DialogTemplateExtended.cs
+++ b/PortableExecutable/DialogTemplateExtended.cs
@@ -20,7 +20,7 @@ namespace SabreTools.Models.PortableExecutable
/// The version number of the extended dialog box template. This member must be
/// set to 1.
///
- public ushort Version;
+ public ushort Version { get; set; }
///
/// Indicates whether a template is an extended dialog box template. If signature
@@ -29,21 +29,21 @@ namespace SabreTools.Models.PortableExecutable
/// than 0xFFFF, this is a standard dialog box template that uses the DLGTEMPLATE
/// and DLGITEMTEMPLATE structures.
///
- public ushort Signature;
+ public ushort Signature { get; set; }
///
/// The help context identifier for the dialog box window. When the system sends a
/// WM_HELP message, it passes this value in the wContextId member of the HELPINFO
/// structure.
///
- public uint HelpID;
+ public uint HelpID { get; set; }
///
/// The extended windows styles. This member is not used when creating dialog boxes,
/// but applications that use dialog box templates can use it to create other types
/// of windows.
///
- public ExtendedWindowStyles ExtendedStyle;
+ public ExtendedWindowStyles ExtendedStyle { get; set; }
///
/// The style of the dialog box.
@@ -55,12 +55,12 @@ namespace SabreTools.Models.PortableExecutable
/// to the values specified in these members. Then the system sends a WM_SETFONT message
/// to the dialog box and to each control to provide a handle to the font.
///
- public WindowStyles Style;
+ public WindowStyles Style { get; set; }
///
/// The number of controls in the dialog box.
///
- public ushort DialogItems;
+ public ushort DialogItems { get; set; }
///
/// The x-coordinate, in dialog box units, of the upper-left corner of the dialog box.
@@ -69,7 +69,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values
/// to screen units (pixels) by using the MapDialogRect function.
///
- public short PositionX;
+ public short PositionX { get; set; }
///
/// The y-coordinate, in dialog box units, of the upper-left corner of the dialog box.
@@ -78,7 +78,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values
/// to screen units (pixels) by using the MapDialogRect function.
///
- public short PositionY;
+ public short PositionY { get; set; }
///
/// The width, in dialog box units, of the dialog box.
@@ -87,7 +87,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values
/// to screen units (pixels) by using the MapDialogRect function.
///
- public short WidthX;
+ public short WidthX { get; set; }
///
/// The height, in dialog box units, of the dialog box.
@@ -96,7 +96,7 @@ namespace SabreTools.Models.PortableExecutable
/// The x, y, cx, and cy members specify values in dialog box units. You can convert these values
/// to screen units (pixels) by using the MapDialogRect function.
///
- public short HeightY;
+ public short HeightY { get; set; }
///
/// A variable-length array of 16-bit elements that identifies a menu resource for the dialog box.
@@ -111,15 +111,15 @@ namespace SabreTools.Models.PortableExecutable
/// MultiByteToWideChar function to generate Unicode strings from ANSI strings.
///
#if NET48
- public string MenuResource;
+ public string MenuResource { get; set; }
#else
- public string? MenuResource;
+ public string? MenuResource { get; set; }
#endif
///
/// The ordinal value of a menu resource in an executable file.
///
- public ushort MenuResourceOrdinal;
+ public ushort MenuResourceOrdinal { get; set; }
/// A variable-length array of 16-bit elements that identifies the window class of the
/// dialog box. If the first element of the array is 0x0000, the system uses the predefined dialog
@@ -133,15 +133,15 @@ namespace SabreTools.Models.PortableExecutable
/// MultiByteToWideChar function to generate Unicode strings from ANSI strings.
///
#if NET48
- public string ClassResource;
+ public string ClassResource { get; set; }
#else
- public string? ClassResource;
+ public string? ClassResource { get; set; }
#endif
///
/// The ordinal value of a predefined system window class.
///
- public ushort ClassResourceOrdinal;
+ public ushort ClassResourceOrdinal { get; set; }
///
/// The title of the dialog box. If the first element of this array is 0x0000, the dialog box has no
@@ -152,9 +152,9 @@ namespace SabreTools.Models.PortableExecutable
/// MultiByteToWideChar function to generate Unicode strings from ANSI strings.
///
#if NET48
- public string TitleResource;
+ public string TitleResource { get; set; }
#else
- public string? TitleResource;
+ public string? TitleResource { get; set; }
#endif
///
@@ -162,7 +162,7 @@ namespace SabreTools.Models.PortableExecutable
///
/// This member is present only if the style member specifies DS_SETFONT or DS_SHELLFONT.
///
- public ushort PointSize;
+ public ushort PointSize { get; set; }
///
/// The weight of the font. Note that, although this can be any of the values listed for the lfWeight
@@ -170,21 +170,21 @@ namespace SabreTools.Models.PortableExecutable
///
/// This member is present only if the style member specifies DS_SETFONT or DS_SHELLFONT.
///
- public ushort Weight;
+ public ushort Weight { get; set; }
///
/// Indicates whether the font is italic. If this value is TRUE, the font is italic.
///
/// This member is present only if the style member specifies DS_SETFONT or DS_SHELLFONT.
///
- public byte Italic;
+ public byte Italic { get; set; }
///
/// The character set to be used. For more information, see the lfcharset member of LOGFONT.
///
/// This member is present only if the style member specifies DS_SETFONT or DS_SHELLFONT.
///
- public byte CharSet;
+ public byte CharSet { get; set; }
///
/// The name of the typeface for the font.
@@ -196,9 +196,9 @@ namespace SabreTools.Models.PortableExecutable
/// MultiByteToWideChar function to generate Unicode strings from ANSI strings.
///
#if NET48
- public string Typeface;
+ public string Typeface { get; set; }
#else
- public string? Typeface;
+ public string? Typeface { get; set; }
#endif
}
}
diff --git a/PortableExecutable/DirEntry.cs b/PortableExecutable/DirEntry.cs
index 597baa7..cf30907 100644
--- a/PortableExecutable/DirEntry.cs
+++ b/PortableExecutable/DirEntry.cs
@@ -10,16 +10,16 @@
///
/// A unique ordinal identifier for an individual font in a font resource group.
///
- public ushort FontOrdinal;
+ public ushort FontOrdinal { get; set; }
///
/// The FONTDIRENTRY structure for the specified font directly follows the DIRENTRY structure
/// for that font.
///
#if NET48
- public FontDirEntry Entry;
+ public FontDirEntry Entry { get; set; }
#else
- public FontDirEntry? Entry;
+ public FontDirEntry? Entry { get; set; }
#endif
}
}
diff --git a/PortableExecutable/ExportDirectoryTable.cs b/PortableExecutable/ExportDirectoryTable.cs
index e27fbd7..b3f853e 100644
--- a/PortableExecutable/ExportDirectoryTable.cs
+++ b/PortableExecutable/ExportDirectoryTable.cs
@@ -15,37 +15,37 @@ namespace SabreTools.Models.PortableExecutable
///
/// Reserved, must be 0.
///
- public uint ExportFlags;
+ public uint ExportFlags { get; set; }
///
/// The time and date that the export data was created.
///
- public uint TimeDateStamp;
+ public uint TimeDateStamp { get; set; }
///
/// The major version number. The major and minor version numbers can be set
/// by the user.
///
- public ushort MajorVersion;
+ public ushort MajorVersion { get; set; }
///
/// The minor version number.
///
- public ushort MinorVersion;
+ public ushort MinorVersion { get; set; }
///
/// The address of the ASCII string that contains the name of the DLL. This
/// address is relative to the image base.
///
- public uint NameRVA;
+ public uint NameRVA { get; set; }
///
/// ASCII string that contains the name of the DLL.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
@@ -53,33 +53,33 @@ namespace SabreTools.Models.PortableExecutable
/// the starting ordinal number for the export address table. It is usually set
/// to 1.
///
- public uint OrdinalBase;
+ public uint OrdinalBase { get; set; }
///
/// The number of entries in the export address table.
///
- public uint AddressTableEntries;
+ public uint AddressTableEntries { get; set; }
///
/// The number of entries in the name pointer table. This is also the number of
/// entries in the ordinal table.
///
- public uint NumberOfNamePointers;
+ public uint NumberOfNamePointers { get; set; }
///
/// The address of the export address table, relative to the image base.
///
- public uint ExportAddressTableRVA;
+ public uint ExportAddressTableRVA { get; set; }
///
/// The address of the export name pointer table, relative to the image base.
/// The table size is given by the Number of Name Pointers field.
///
- public uint NamePointerRVA;
+ public uint NamePointerRVA { get; set; }
///
/// The address of the ordinal table, relative to the image base.
///
- public uint OrdinalTableRVA;
+ public uint OrdinalTableRVA { get; set; }
}
}
diff --git a/PortableExecutable/ExportNamePointerTable.cs b/PortableExecutable/ExportNamePointerTable.cs
index 1e79473..2cae1f7 100644
--- a/PortableExecutable/ExportNamePointerTable.cs
+++ b/PortableExecutable/ExportNamePointerTable.cs
@@ -14,9 +14,9 @@
/// The pointers are 32 bits each and are relative to the image base.
///
#if NET48
- public uint[] Pointers;
+ public uint[] Pointers { get; set; }
#else
- public uint[]? Pointers;
+ public uint[]? Pointers { get; set; }
#endif
}
}
diff --git a/PortableExecutable/ExportNameTable.cs b/PortableExecutable/ExportNameTable.cs
index 8035f0c..99cc296 100644
--- a/PortableExecutable/ExportNameTable.cs
+++ b/PortableExecutable/ExportNameTable.cs
@@ -23,9 +23,9 @@
/// A series of null-terminated ASCII strings of variable length.
///
#if NET48
- public string[] Strings;
+ public string[] Strings { get; set; }
#else
- public string[]? Strings;
+ public string[]? Strings { get; set; }
#endif
}
}
diff --git a/PortableExecutable/ExportOrdinalTable.cs b/PortableExecutable/ExportOrdinalTable.cs
index f9bb480..58f3330 100644
--- a/PortableExecutable/ExportOrdinalTable.cs
+++ b/PortableExecutable/ExportOrdinalTable.cs
@@ -38,9 +38,9 @@
/// An array of 16-bit unbiased indexes into the export address table
///
#if NET48
- public ushort[] Indexes;
+ public ushort[] Indexes { get; set; }
#else
- public ushort[]? Indexes;
+ public ushort[]? Indexes { get; set; }
#endif
}
}
diff --git a/PortableExecutable/ExportTable.cs b/PortableExecutable/ExportTable.cs
index e450222..5e6a570 100644
--- a/PortableExecutable/ExportTable.cs
+++ b/PortableExecutable/ExportTable.cs
@@ -20,9 +20,9 @@
/// locations and sizes of the other export tables.
///
#if NET48
- public ExportDirectoryTable ExportDirectoryTable;
+ public ExportDirectoryTable ExportDirectoryTable { get; set; }
#else
- public ExportDirectoryTable? ExportDirectoryTable;
+ public ExportDirectoryTable? ExportDirectoryTable { get; set; }
#endif
///
@@ -32,18 +32,18 @@
/// using the public name that corresponds to the ordinal if a public name is defined.
///
#if NET48
- public ExportAddressTableEntry[] ExportAddressTable;
+ public ExportAddressTableEntry[] ExportAddressTable { get; set; }
#else
- public ExportAddressTableEntry?[]? ExportAddressTable;
+ public ExportAddressTableEntry?[]? ExportAddressTable { get; set; }
#endif
///
/// An array of pointers to the public export names, sorted in ascending order.
///
#if NET48
- public ExportNamePointerTable NamePointerTable;
+ public ExportNamePointerTable NamePointerTable { get; set; }
#else
- public ExportNamePointerTable? NamePointerTable;
+ public ExportNamePointerTable? NamePointerTable { get; set; }
#endif
///
@@ -53,9 +53,9 @@
/// table.
///
#if NET48
- public ExportOrdinalTable OrdinalTable;
+ public ExportOrdinalTable OrdinalTable { get; set; }
#else
- public ExportOrdinalTable? OrdinalTable;
+ public ExportOrdinalTable? OrdinalTable { get; set; }
#endif
///
@@ -65,9 +65,9 @@
/// the image file.
///
#if NET48
- public ExportNameTable ExportNameTable;
+ public ExportNameTable ExportNameTable { get; set; }
#else
- public ExportNameTable? ExportNameTable;
+ public ExportNameTable? ExportNameTable { get; set; }
#endif
}
}
diff --git a/PortableExecutable/FixedFileInfo.cs b/PortableExecutable/FixedFileInfo.cs
index 03f40f7..36b19a3 100644
--- a/PortableExecutable/FixedFileInfo.cs
+++ b/PortableExecutable/FixedFileInfo.cs
@@ -14,75 +14,75 @@ namespace SabreTools.Models.PortableExecutable
/// Contains the value 0xFEEF04BD. This is used with the szKey member of the VS_VERSIONINFO
/// structure when searching a file for the FixedFileInfo structure.
///
- public uint Signature;
+ public uint Signature { get; set; }
///
/// The binary version number of this structure. The high-order word of this member contains
/// the major version number, and the low-order word contains the minor version number.
///
- public uint StrucVersion;
+ public uint StrucVersion { get; set; }
///
/// The most significant 32 bits of the file's binary version number. This member is used with
/// FileVersionLS to form a 64-bit value used for numeric comparisons.
///
- public uint FileVersionMS;
+ public uint FileVersionMS { get; set; }
///
/// The least significant 32 bits of the file's binary version number. This member is used with
/// FileVersionMS to form a 64-bit value used for numeric comparisons.
///
- public uint FileVersionLS;
+ public uint FileVersionLS { get; set; }
///
/// The most significant 32 bits of the binary version number of the product with which this file
/// was distributed. This member is used with ProductVersionLS to form a 64-bit value used for
/// numeric comparisons.
///
- public uint ProductVersionMS;
+ public uint ProductVersionMS { get; set; }
///
/// The least significant 32 bits of the binary version number of the product with which this file
/// was distributed. This member is used with ProductVersionMS to form a 64-bit value used for
/// numeric comparisons.
///
- public uint ProductVersionLS;
+ public uint ProductVersionLS { get; set; }
///
/// Contains a bitmask that specifies the valid bits in FileFlags. A bit is valid only if it was
/// defined when the file was created.
///
- public uint FileFlagsMask;
+ public uint FileFlagsMask { get; set; }
///
/// Contains a bitmask that specifies the Boolean attributes of the file.
///
- public FixedFileInfoFlags FileFlags;
+ public FixedFileInfoFlags FileFlags { get; set; }
///
/// The operating system for which this file was designed.
///
- public FixedFileInfoOS FileOS;
+ public FixedFileInfoOS FileOS { get; set; }
///
/// The general type of file.
///
- public FixedFileInfoFileType FileType;
+ public FixedFileInfoFileType FileType { get; set; }
///
/// The function of the file. The possible values depend on the value of FileType. For all values
/// of FileType not described in the following list, FileSubtype is zero.
///
- public FixedFileInfoFileSubtype FileSubtype;
+ public FixedFileInfoFileSubtype FileSubtype { get; set; }
///
/// The most significant 32 bits of the file's 64-bit binary creation date and time stamp.
///
- public uint FileDateMS;
+ public uint FileDateMS { get; set; }
///
/// The least significant 32 bits of the file's 64-bit binary creation date and time stamp.
///
- public uint FileDateLS;
+ public uint FileDateLS { get; set; }
}
}
diff --git a/PortableExecutable/FontDirEntry.cs b/PortableExecutable/FontDirEntry.cs
index 0b3105a..f16b628 100644
--- a/PortableExecutable/FontDirEntry.cs
+++ b/PortableExecutable/FontDirEntry.cs
@@ -11,176 +11,176 @@
/// A user-defined version number for the resource data that tools can use to read and write
/// resource files.
///
- public ushort Version;
+ public ushort Version { get; set; }
///
/// The size of the file, in bytes.
///
- public uint Size;
+ public uint Size { get; set; }
///
/// The font supplier's copyright information.
///
/// 60 characters
#if NET48
- public byte[] Copyright;
+ public byte[] Copyright { get; set; }
#else
- public byte[]? Copyright;
+ public byte[]? Copyright { get; set; }
#endif
///
/// The type of font file.
///
- public ushort Type;
+ public ushort Type { get; set; }
///
/// The point size at which this character set looks best.
///
- public ushort Points;
+ public ushort Points { get; set; }
///
/// The vertical resolution, in dots per inch, at which this character set was digitized.
///
- public ushort VertRes;
+ public ushort VertRes { get; set; }
///
/// The horizontal resolution, in dots per inch, at which this character set was digitized.
///
- public ushort HorizRes;
+ public ushort HorizRes { get; set; }
///
/// The distance from the top of a character definition cell to the baseline of the typographical
/// font.
///
- public ushort Ascent;
+ public ushort Ascent { get; set; }
///
/// The amount of leading inside the bounds set by the PixHeight member. Accent marks and other
/// diacritical characters can occur in this area.
///
- public ushort InternalLeading;
+ public ushort InternalLeading { get; set; }
///
/// The amount of extra leading that the application adds between rows.
///
- public ushort ExternalLeading;
+ public ushort ExternalLeading { get; set; }
///
/// An italic font if not equal to zero.
///
- public byte Italic;
+ public byte Italic { get; set; }
///
/// An underlined font if not equal to zero.
///
- public byte Underline;
+ public byte Underline { get; set; }
///
/// A strikeout font if not equal to zero.
///
- public byte StrikeOut;
+ public byte StrikeOut { get; set; }
///
/// The weight of the font in the range 0 through 1000. For example, 400 is roman and 700 is bold.
/// If this value is zero, a default weight is used. For additional defined values, see the
/// description of the LOGFONT structure.
///
- public ushort Weight;
+ public ushort Weight { get; set; }
///
/// The character set of the font. For predefined values, see the description of the LOGFONT
/// structure.
///
- public byte CharSet;
+ public byte CharSet { get; set; }
///
/// The width of the grid on which a vector font was digitized. For raster fonts, if the member
/// is not equal to zero, it represents the width for all the characters in the bitmap. If the
/// member is equal to zero, the font has variable-width characters.
///
- public ushort PixWidth;
+ public ushort PixWidth { get; set; }
///
/// The height of the character bitmap for raster fonts or the height of the grid on which a
/// vector font was digitized.
///
- public ushort PixHeight;
+ public ushort PixHeight { get; set; }
///
/// The pitch and the family of the font. For additional information, see the description of
/// the LOGFONT structure.
///
- public byte PitchAndFamily;
+ public byte PitchAndFamily { get; set; }
///
/// The average width of characters in the font (generally defined as the width of the letter x).
/// This value does not include the overhang required for bold or italic characters.
///
- public ushort AvgWidth;
+ public ushort AvgWidth { get; set; }
///
/// The width of the widest character in the font.
///
- public ushort MaxWidth;
+ public ushort MaxWidth { get; set; }
///
/// The first character code defined in the font.
///
- public byte FirstChar;
+ public byte FirstChar { get; set; }
///
/// The last character code defined in the font.
///
- public byte LastChar;
+ public byte LastChar { get; set; }
///
/// The character to substitute for characters not in the font.
///
- public byte DefaultChar;
+ public byte DefaultChar { get; set; }
///
/// The character that will be used to define word breaks for text justification.
///
- public byte BreakChar;
+ public byte BreakChar { get; set; }
///
/// The number of bytes in each row of the bitmap. This value is always even so that the rows
/// start on word boundaries. For vector fonts, this member has no meaning.
///
- public ushort WidthBytes;
+ public ushort WidthBytes { get; set; }
///
/// The offset in the file to a null-terminated string that specifies a device name. For a
/// generic font, this value is zero.
///
- public uint Device;
+ public uint Device { get; set; }
///
/// The offset in the file to a null-terminated string that names the typeface.
///
- public uint Face;
+ public uint Face { get; set; }
///
/// This member is reserved.
///
- public uint Reserved;
+ public uint Reserved { get; set; }
///
/// The name of the device if this font file is designated for a specific device.
///
#if NET48
- public string DeviceName;
+ public string DeviceName { get; set; }
#else
- public string? DeviceName;
+ public string? DeviceName { get; set; }
#endif
///
/// The typeface name of the font.
///
#if NET48
- public string FaceName;
+ public string FaceName { get; set; }
#else
- public string? FaceName;
+ public string? FaceName { get; set; }
#endif
}
}
diff --git a/PortableExecutable/FontGroupHeader.cs b/PortableExecutable/FontGroupHeader.cs
index b4fc37c..edfd195 100644
--- a/PortableExecutable/FontGroupHeader.cs
+++ b/PortableExecutable/FontGroupHeader.cs
@@ -10,16 +10,16 @@
///
/// The number of individual fonts associated with this resource.
///
- public ushort NumberOfFonts;
+ public ushort NumberOfFonts { get; set; }
///
/// A structure that contains a unique ordinal identifier for each font in the resource. The DE
/// member is a placeholder for the variable-length array of DIRENTRY structures.
///
#if NET48
- public DirEntry[] DE;
+ public DirEntry[] DE { get; set; }
#else
- public DirEntry?[]? DE;
+ public DirEntry?[]? DE { get; set; }
#endif
}
}
diff --git a/PortableExecutable/HintNameTableEntry.cs b/PortableExecutable/HintNameTableEntry.cs
index 3ad1b22..b56f778 100644
--- a/PortableExecutable/HintNameTableEntry.cs
+++ b/PortableExecutable/HintNameTableEntry.cs
@@ -11,7 +11,7 @@
/// with this value. If it fails, a binary search is performed on the DLL's
/// export name pointer table.
///
- public ushort Hint;
+ public ushort Hint { get; set; }
///
/// An ASCII string that contains the name to import. This is the string that
@@ -19,9 +19,9 @@
/// and terminated by a null byte.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
}
}
diff --git a/PortableExecutable/ImportAddressTableEntry.cs b/PortableExecutable/ImportAddressTableEntry.cs
index be71f41..a59deb7 100644
--- a/PortableExecutable/ImportAddressTableEntry.cs
+++ b/PortableExecutable/ImportAddressTableEntry.cs
@@ -16,14 +16,14 @@
/// masked as 0x80000000 for PE32, 0x8000000000000000 for PE32+.
///
/// Bit 31/63
- public bool OrdinalNameFlag;
+ public bool OrdinalNameFlag { get; set; }
///
/// A 16-bit ordinal number. This field is used only if the Ordinal/Name Flag
/// bit field is 1 (import by ordinal). Bits 30-15 or 62-15 must be 0.
///
/// Bits 15-0
- public ushort OrdinalNumber;
+ public ushort OrdinalNumber { get; set; }
///
/// A 31-bit RVA of a hint/name table entry. This field is used only if the
@@ -31,6 +31,6 @@
/// must be zero.
///
/// Bits 30-0
- public uint HintNameTableRVA;
+ public uint HintNameTableRVA { get; set; }
}
}
diff --git a/PortableExecutable/ImportDirectoryTableEntry.cs b/PortableExecutable/ImportDirectoryTableEntry.cs
index d142e81..bfbd2d0 100644
--- a/PortableExecutable/ImportDirectoryTableEntry.cs
+++ b/PortableExecutable/ImportDirectoryTableEntry.cs
@@ -20,38 +20,38 @@ namespace SabreTools.Models.PortableExecutable
/// for each import. (The name "Characteristics" is used in Winnt.h, but no
/// longer describes this field.)
///
- public uint ImportLookupTableRVA;
+ public uint ImportLookupTableRVA { get; set; }
///
/// The stamp that is set to zero until the image is bound. After the image is
/// bound, this field is set to the time/data stamp of the DLL.
///
- public uint TimeDateStamp;
+ public uint TimeDateStamp { get; set; }
///
/// The index of the first forwarder reference.
///
- public uint ForwarderChain;
+ public uint ForwarderChain { get; set; }
///
/// The address of an ASCII string that contains the name of the DLL. This address
/// is relative to the image base.
///
- public uint NameRVA;
+ public uint NameRVA { get; set; }
///
/// ASCII string that contains the name of the DLL.
///
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
///
/// The RVA of the import address table. The contents of this table are identical
/// to the contents of the import lookup table until the image is bound.
///
- public uint ImportAddressTableRVA;
+ public uint ImportAddressTableRVA { get; set; }
}
}
diff --git a/PortableExecutable/ImportLookupTableEntry.cs b/PortableExecutable/ImportLookupTableEntry.cs
index e65c017..91661a0 100644
--- a/PortableExecutable/ImportLookupTableEntry.cs
+++ b/PortableExecutable/ImportLookupTableEntry.cs
@@ -16,14 +16,14 @@
/// masked as 0x80000000 for PE32, 0x8000000000000000 for PE32+.
///
/// Bit 31/63
- public bool OrdinalNameFlag;
+ public bool OrdinalNameFlag { get; set; }
///
/// A 16-bit ordinal number. This field is used only if the Ordinal/Name Flag
/// bit field is 1 (import by ordinal). Bits 30-15 or 62-15 must be 0.
///
/// Bits 15-0
- public ushort OrdinalNumber;
+ public ushort OrdinalNumber { get; set; }
///
/// A 31-bit RVA of a hint/name table entry. This field is used only if the
@@ -31,6 +31,6 @@
/// must be zero.
///
/// Bits 30-0
- public uint HintNameTableRVA;
+ public uint HintNameTableRVA { get; set; }
}
}
diff --git a/PortableExecutable/ImportTable.cs b/PortableExecutable/ImportTable.cs
index 0aaec0a..0cc69e3 100644
--- a/PortableExecutable/ImportTable.cs
+++ b/PortableExecutable/ImportTable.cs
@@ -24,9 +24,9 @@ namespace SabreTools.Models.PortableExecutable
/// remainder of the import information.
///
#if NET48
- public ImportDirectoryTableEntry[] ImportDirectoryTable;
+ public ImportDirectoryTableEntry[] ImportDirectoryTable { get; set; }
#else
- public ImportDirectoryTableEntry?[]? ImportDirectoryTable;
+ public ImportDirectoryTableEntry?[]? ImportDirectoryTable { get; set; }
#endif
///
@@ -34,9 +34,9 @@ namespace SabreTools.Models.PortableExecutable
/// numbers for PE32+.
///
#if NET48
- public Dictionary ImportLookupTables;
+ public Dictionary ImportLookupTables { get; set; }
#else
- public Dictionary? ImportLookupTables;
+ public Dictionary? ImportLookupTables { get; set; }
#endif
///
@@ -44,18 +44,18 @@ namespace SabreTools.Models.PortableExecutable
/// they are still called "virtual addresses".
///
#if NET48
- public Dictionary ImportAddressTables;
+ public Dictionary ImportAddressTables { get; set; }
#else
- public Dictionary? ImportAddressTables;
+ public Dictionary? ImportAddressTables { get; set; }
#endif
///
/// One hint/name table suffices for the entire import section.
///
#if NET48
- public HintNameTableEntry[] HintNameTable;
+ public HintNameTableEntry[] HintNameTable { get; set; }
#else
- public HintNameTableEntry?[]? HintNameTable;
+ public HintNameTableEntry?[]? HintNameTable { get; set; }
#endif
}
}
diff --git a/PortableExecutable/LoadConfigurationDirectory.cs b/PortableExecutable/LoadConfigurationDirectory.cs
index c6709be..4e153c2 100644
--- a/PortableExecutable/LoadConfigurationDirectory.cs
+++ b/PortableExecutable/LoadConfigurationDirectory.cs
@@ -14,7 +14,7 @@
///
/// Flags that indicate attributes of the file, currently unused.
///
- public uint Characteristics;
+ public uint Characteristics { get; set; }
///
/// Date and time stamp value. The value is represented in the number of
@@ -22,47 +22,47 @@
/// Universal Coordinated Time, according to the system clock. The time
/// stamp can be printed by using the C runtime (CRT) time function.
///
- public uint TimeDateStamp;
+ public uint TimeDateStamp { get; set; }
///
/// Major version number.
///
- public ushort MajorVersion;
+ public ushort MajorVersion { get; set; }
///
/// Minor version number.
///
- public ushort MinorVersion;
+ public ushort MinorVersion { get; set; }
///
/// The global loader flags to clear for this process as the loader starts
/// the process.
///
- public uint GlobalFlagsClear;
+ public uint GlobalFlagsClear { get; set; }
///
/// The global loader flags to set for this process as the loader starts
/// the process.
///
- public uint GlobalFlagsSet;
+ public uint GlobalFlagsSet { get; set; }
///
/// The default timeout value to use for this process's critical sections
/// that are abandoned.
///
- public uint CriticalSectionDefaultTimeout;
+ public uint CriticalSectionDefaultTimeout { get; set; }
#region DeCommitFreeBlockThreshold
///
/// Memory that must be freed before it is returned to the system, in bytes.
///
- public uint DeCommitFreeBlockThreshold_PE32;
+ public uint DeCommitFreeBlockThreshold_PE32 { get; set; }
///
/// Memory that must be freed before it is returned to the system, in bytes.
///
- public ulong DeCommitFreeBlockThreshold_PE32Plus;
+ public ulong DeCommitFreeBlockThreshold_PE32Plus { get; set; }
#endregion
@@ -71,12 +71,12 @@
///
/// Total amount of free memory, in bytes.
///
- public uint DeCommitTotalFreeThreshold_PE32;
+ public uint DeCommitTotalFreeThreshold_PE32 { get; set; }
///
/// Total amount of free memory, in bytes.
///
- public ulong DeCommitTotalFreeThreshold_PE32Plus;
+ public ulong DeCommitTotalFreeThreshold_PE32Plus { get; set; }
#endregion
@@ -86,13 +86,13 @@
/// [x86 only] The VA of a list of addresses where the LOCK prefix is used so
/// that they can be replaced with NOP on single processor machines.
///
- public uint LockPrefixTable_PE32;
+ public uint LockPrefixTable_PE32 { get; set; }
///
/// [x86 only] The VA of a list of addresses where the LOCK prefix is used so
/// that they can be replaced with NOP on single processor machines.
///
- public ulong LockPrefixTable_PE32Plus;
+ public ulong LockPrefixTable_PE32Plus { get; set; }
#endregion
@@ -101,12 +101,12 @@
///
/// Maximum allocation size, in bytes.
///
- public uint MaximumAllocationSize_PE32;
+ public uint MaximumAllocationSize_PE32 { get; set; }
///
/// Maximum allocation size, in bytes.
///
- public ulong MaximumAllocationSize_PE32Plus;
+ public ulong MaximumAllocationSize_PE32Plus { get; set; }
#endregion
@@ -115,12 +115,12 @@
///
/// Maximum virtual memory size, in bytes.
///
- public uint VirtualMemoryThreshold_PE32;
+ public uint VirtualMemoryThreshold_PE32 { get; set; }
///
/// Maximum virtual memory size, in bytes.
///
- public ulong VirtualMemoryThreshold_PE32Plus;
+ public ulong VirtualMemoryThreshold_PE32Plus { get; set; }
#endregion
@@ -130,13 +130,13 @@
/// Setting this field to a non-zero value is equivalent to calling
/// SetProcessAffinityMask with this value during process startup (.exe only)
///
- public uint ProcessAffinityMask_PE32;
+ public uint ProcessAffinityMask_PE32 { get; set; }
///
/// Setting this field to a non-zero value is equivalent to calling
/// SetProcessAffinityMask with this value during process startup (.exe only)
///
- public ulong ProcessAffinityMask_PE32Plus;
+ public ulong ProcessAffinityMask_PE32Plus { get; set; }
#endregion
@@ -145,29 +145,29 @@
/// HeapCreate function. These flags apply to the process heap that
/// is created during process startup.
///
- public uint ProcessHeapFlags;
+ public uint ProcessHeapFlags { get; set; }
///
/// The service pack version identifier.
///
- public ushort CSDVersion;
+ public ushort CSDVersion { get; set; }
///
/// Must be zero.
///
- public ushort Reserved;
+ public ushort Reserved { get; set; }
#region EditList
///
/// Reserved for use by the system.
///
- public uint EditList_PE32;
+ public uint EditList_PE32 { get; set; }
///
/// Reserved for use by the system.
///
- public ulong EditList_PE32Plus;
+ public ulong EditList_PE32Plus { get; set; }
#endregion
@@ -176,12 +176,12 @@
///
/// A pointer to a cookie that is used by Visual C++ or GS implementation.
///
- public uint SecurityCookie_PE32;
+ public uint SecurityCookie_PE32 { get; set; }
///
/// A pointer to a cookie that is used by Visual C++ or GS implementation.
///
- public ulong SecurityCookie_PE32Plus;
+ public ulong SecurityCookie_PE32Plus { get; set; }
#endregion
@@ -191,13 +191,13 @@
/// [x86 only] The VA of the sorted table of RVAs of each valid, unique
/// SE handler in the image.
///
- public uint SEHandlerTable_PE32;
+ public uint SEHandlerTable_PE32 { get; set; }
///
/// [x86 only] The VA of the sorted table of RVAs of each valid, unique
/// SE handler in the image.
///
- public ulong SEHandlerTable_PE32Plus;
+ public ulong SEHandlerTable_PE32Plus { get; set; }
#endregion
@@ -206,12 +206,12 @@
///
/// [x86 only] The count of unique handlers in the table.
///
- public uint SEHandlerCount_PE32;
+ public uint SEHandlerCount_PE32 { get; set; }
///
/// [x86 only] The count of unique handlers in the table.
///
- public ulong SEHandlerCount_PE32Plus;
+ public ulong SEHandlerCount_PE32Plus { get; set; }
#endregion
@@ -220,12 +220,12 @@
///
/// The VA where Control Flow Guard check-function pointer is stored.
///
- public uint GuardCFCheckFunctionPointer_PE32;
+ public uint GuardCFCheckFunctionPointer_PE32 { get; set; }
///
/// The VA where Control Flow Guard check-function pointer is stored.
///
- public ulong GuardCFCheckFunctionPointer_PE32Plus;
+ public ulong GuardCFCheckFunctionPointer_PE32Plus { get; set; }
#endregion
@@ -234,12 +234,12 @@
///
/// The VA where Control Flow Guard dispatch-function pointer is stored.
///
- public uint GuardCFDispatchFunctionPointer_PE32;
+ public uint GuardCFDispatchFunctionPointer_PE32 { get; set; }
///
/// The VA where Control Flow Guard dispatch-function pointer is stored.
///
- public ulong GuardCFDispatchFunctionPointer_PE32Plus;
+ public ulong GuardCFDispatchFunctionPointer_PE32Plus { get; set; }
#endregion
@@ -249,13 +249,13 @@
/// The VA of the sorted table of RVAs of each Control Flow Guard
/// function in the image.
///
- public uint GuardCFFunctionTable_PE32;
+ public uint GuardCFFunctionTable_PE32 { get; set; }
///
/// The VA of the sorted table of RVAs of each Control Flow Guard
/// function in the image.
///
- public ulong GuardCFFunctionTable_PE32Plus;
+ public ulong GuardCFFunctionTable_PE32Plus { get; set; }
#endregion
@@ -264,28 +264,28 @@
///
/// The count of unique RVAs in the above table.
///
- public uint GuardCFFunctionCount_PE32;
+ public uint GuardCFFunctionCount_PE32 { get; set; }
///
/// The count of unique RVAs in the above table.
///
- public ulong GuardCFFunctionCount_PE32Plus;
+ public ulong GuardCFFunctionCount_PE32Plus { get; set; }
#endregion
///
/// Control Flow Guard related flags.
///
- public GuardFlags GuardFlags;
+ public GuardFlags GuardFlags { get; set; }
///
/// Code integrity information.
///
/// 12 bytes
#if NET48
- public byte[] CodeIntegrity;
+ public byte[] CodeIntegrity { get; set; }
#else
- public byte[]? CodeIntegrity;
+ public byte[]? CodeIntegrity { get; set; }
#endif
#region GuardAddressTakenIatEntryTable
@@ -293,12 +293,12 @@
///
/// The VA where Control Flow Guard address taken IAT table is stored.
///
- public uint GuardAddressTakenIatEntryTable_PE32;
+ public uint GuardAddressTakenIatEntryTable_PE32 { get; set; }
///
/// The VA where Control Flow Guard address taken IAT table is stored.
///
- public ulong GuardAddressTakenIatEntryTable_PE32Plus;
+ public ulong GuardAddressTakenIatEntryTable_PE32Plus { get; set; }
#endregion
@@ -307,12 +307,12 @@
///
/// The count of unique RVAs in the above table.
///
- public uint GuardAddressTakenIatEntryCount_PE32;
+ public uint GuardAddressTakenIatEntryCount_PE32 { get; set; }
///
/// The count of unique RVAs in the above table.
///
- public ulong GuardAddressTakenIatEntryCount_PE32Plus;
+ public ulong GuardAddressTakenIatEntryCount_PE32Plus { get; set; }
#endregion
@@ -321,12 +321,12 @@
///
/// The VA where Control Flow Guard long jump target table is stored.
///
- public uint GuardLongJumpTargetTable_PE32;
+ public uint GuardLongJumpTargetTable_PE32 { get; set; }
///
/// The VA where Control Flow Guard long jump target table is stored.
///
- public ulong GuardLongJumpTargetTable_PE32Plus;
+ public ulong GuardLongJumpTargetTable_PE32Plus { get; set; }
#endregion
@@ -335,12 +335,12 @@
///
/// The count of unique RVAs in the above table.
///
- public uint GuardLongJumpTargetCount_PE32;
+ public uint GuardLongJumpTargetCount_PE32 { get; set; }
///
/// The count of unique RVAs in the above table.
///
- public ulong GuardLongJumpTargetCount_PE32Plus;
+ public ulong GuardLongJumpTargetCount_PE32Plus { get; set; }
#endregion
}
diff --git a/PortableExecutable/MenuHeader.cs b/PortableExecutable/MenuHeader.cs
index 9a7b7fb..4d44da2 100644
--- a/PortableExecutable/MenuHeader.cs
+++ b/PortableExecutable/MenuHeader.cs
@@ -14,12 +14,12 @@ namespace SabreTools.Models.PortableExecutable
/// The version number of the menu template. This member must be equal to zero to indicate
/// that this is an RT_MENU created with a standard menu template.
///
- public ushort Version;
+ public ushort Version { get; set; }
///
/// The size of the menu template header. This value is zero for menus you create with a
/// standard menu template.
///
- public ushort HeaderSize;
+ public ushort HeaderSize { get; set; }
}
}
diff --git a/PortableExecutable/MenuHeaderExtended.cs b/PortableExecutable/MenuHeaderExtended.cs
index 9fbdc25..f35eb1a 100644
--- a/PortableExecutable/MenuHeaderExtended.cs
+++ b/PortableExecutable/MenuHeaderExtended.cs
@@ -13,18 +13,18 @@ namespace SabreTools.Models.PortableExecutable
///
/// The template version number. This member must be 1 for extended menu templates.
///
- public ushort Version;
+ public ushort Version { get; set; }
///
/// The offset to the first MENUEX_TEMPLATE_ITEM structure, relative to the end of
/// this structure member. If the first item definition immediately follows the
/// dwHelpId member, this member should be 4.
///
- public ushort Offset;
+ public ushort Offset { get; set; }
///
/// The help identifier of menu bar.
///
- public uint HelpID;
+ public uint HelpID { get; set; }
}
}
diff --git a/PortableExecutable/MenuItem.cs b/PortableExecutable/MenuItem.cs
index cae6672..cb745a3 100644
--- a/PortableExecutable/MenuItem.cs
+++ b/PortableExecutable/MenuItem.cs
@@ -18,16 +18,16 @@
///
/// The type of menu item.
///
- public MenuFlags NormalResInfo;
+ public MenuFlags NormalResInfo { get; set; }
///
/// A null-terminated Unicode string that contains the text for this menu item.
/// There is no fixed limit on the size of this string.
///
#if NET48
- public string NormalMenuText;
+ public string NormalMenuText { get; set; }
#else
- public string? NormalMenuText;
+ public string? NormalMenuText { get; set; }
#endif
#endregion
@@ -37,32 +37,32 @@
///
/// Describes the menu item.
///
- public MenuFlags PopupItemType;
+ public MenuFlags PopupItemType { get; set; }
///
/// Describes the menu item.
///
- public MenuFlags PopupState;
+ public MenuFlags PopupState { get; set; }
///
/// A numeric expression that identifies the menu item that is passed in the
/// WM_COMMAND message.
///
- public uint PopupID;
+ public uint PopupID { get; set; }
///
/// A set of bit flags that specify the type of menu item.
///
- public MenuFlags PopupResInfo;
+ public MenuFlags PopupResInfo { get; set; }
///
/// A null-terminated Unicode string that contains the text for this menu item.
/// There is no fixed limit on the size of this string.
///
#if NET48
- public string PopupMenuText;
+ public string PopupMenuText { get; set; }
#else
- public string? PopupMenuText;
+ public string? PopupMenuText { get; set; }
#endif
#endregion
diff --git a/PortableExecutable/MenuItemExtended.cs b/PortableExecutable/MenuItemExtended.cs
index 305724c..dd83d52 100644
--- a/PortableExecutable/MenuItemExtended.cs
+++ b/PortableExecutable/MenuItemExtended.cs
@@ -10,32 +10,32 @@
///
/// Describes the menu item.
///
- public MenuFlags ItemType;
+ public MenuFlags ItemType { get; set; }
///
/// Describes the menu item.
///
- public MenuFlags State;
+ public MenuFlags State { get; set; }
///
/// A numeric expression that identifies the menu item that is passed in the
/// WM_COMMAND message.
///
- public uint ID;
+ public uint ID { get; set; }
///
/// A set of bit flags that specify the type of menu item.
///
- public MenuFlags Flags;
+ public MenuFlags Flags { get; set; }
///
/// A null-terminated Unicode string that contains the text for this menu item.
/// There is no fixed limit on the size of this string.
///
#if NET48
- public string MenuText;
+ public string MenuText { get; set; }
#else
- public string? MenuText;
+ public string? MenuText { get; set; }
#endif
}
}
diff --git a/PortableExecutable/MenuResource.cs b/PortableExecutable/MenuResource.cs
index 9788df4..b384422 100644
--- a/PortableExecutable/MenuResource.cs
+++ b/PortableExecutable/MenuResource.cs
@@ -15,18 +15,18 @@
/// Menu header structure
///
#if NET48
- public MenuHeader MenuHeader;
+ public MenuHeader MenuHeader { get; set; }
#else
- public MenuHeader? MenuHeader;
+ public MenuHeader? MenuHeader { get; set; }
#endif
///
/// Menu extended header structure
///
#if NET48
- public MenuHeaderExtended ExtendedMenuHeader;
+ public MenuHeaderExtended ExtendedMenuHeader { get; set; }
#else
- public MenuHeaderExtended? ExtendedMenuHeader;
+ public MenuHeaderExtended? ExtendedMenuHeader { get; set; }
#endif
#endregion
@@ -37,18 +37,18 @@
/// Menu items
///
#if NET48
- public MenuItem[] MenuItems;
+ public MenuItem[] MenuItems { get; set; }
#else
- public MenuItem?[]? MenuItems;
+ public MenuItem?[]? MenuItems { get; set; }
#endif
///
/// Extended menu items
///
#if NET48
- public MenuItemExtended[] ExtendedMenuItems;
+ public MenuItemExtended[] ExtendedMenuItems { get; set; }
#else
- public MenuItemExtended?[]? ExtendedMenuItems;
+ public MenuItemExtended?[]? ExtendedMenuItems { get; set; }
#endif
#endregion
diff --git a/PortableExecutable/MessageResourceBlock.cs b/PortableExecutable/MessageResourceBlock.cs
index 978dd3c..17d9794 100644
--- a/PortableExecutable/MessageResourceBlock.cs
+++ b/PortableExecutable/MessageResourceBlock.cs
@@ -10,18 +10,18 @@
///
/// The lowest message identifier contained within this structure.
///
- public uint LowId;
+ public uint LowId { get; set; }
///
/// The highest message identifier contained within this structure.
///
- public uint HighId;
+ public uint HighId { get; set; }
///
/// The offset, in bytes, from the beginning of the MESSAGE_RESOURCE_DATA structure to the
/// MESSAGE_RESOURCE_ENTRY structures in this MESSAGE_RESOURCE_BLOCK. The MESSAGE_RESOURCE_ENTRY
/// structures contain the message strings.
///
- public uint OffsetToEntries;
+ public uint OffsetToEntries { get; set; }
}
}
diff --git a/PortableExecutable/MessageResourceData.cs b/PortableExecutable/MessageResourceData.cs
index 17aa6a7..9228c1d 100644
--- a/PortableExecutable/MessageResourceData.cs
+++ b/PortableExecutable/MessageResourceData.cs
@@ -12,24 +12,24 @@ namespace SabreTools.Models.PortableExecutable
///
/// The number of MESSAGE_RESOURCE_BLOCK structures.
///
- public uint NumberOfBlocks;
+ public uint NumberOfBlocks { get; set; }
///
/// An array of structures. The array is the size indicated by the NumberOfBlocks member.
///
#if NET48
- public MessageResourceBlock[] Blocks;
+ public MessageResourceBlock[] Blocks { get; set; }
#else
- public MessageResourceBlock?[]? Blocks;
+ public MessageResourceBlock?[]? Blocks { get; set; }
#endif
///
/// Message resource entries
///
#if NET48
- public Dictionary Entries;
+ public Dictionary Entries { get; set; }
#else
- public Dictionary? Entries;
+ public Dictionary? Entries { get; set; }
#endif
}
}
diff --git a/PortableExecutable/MessageResourceEntry.cs b/PortableExecutable/MessageResourceEntry.cs
index 04ef016..4400db0 100644
--- a/PortableExecutable/MessageResourceEntry.cs
+++ b/PortableExecutable/MessageResourceEntry.cs
@@ -9,21 +9,21 @@
///
/// The length, in bytes, of the MESSAGE_RESOURCE_ENTRY structure.
///
- public ushort Length;
+ public ushort Length { get; set; }
///
/// Indicates that the string is encoded in Unicode, if equal to the value 0x0001.
/// Indicates that the string is encoded in ANSI, if equal to the value 0x0000.
///
- public ushort Flags;
+ public ushort Flags { get; set; }
///
/// Pointer to an array that contains the error message or message box display text.
///
#if NET48
- public string Text;
+ public string Text { get; set; }
#else
- public string? Text;
+ public string? Text { get; set; }
#endif
}
}
diff --git a/PortableExecutable/NB10ProgramDatabase.cs b/PortableExecutable/NB10ProgramDatabase.cs
index 1b4d89b..081b384 100644
--- a/PortableExecutable/NB10ProgramDatabase.cs
+++ b/PortableExecutable/NB10ProgramDatabase.cs
@@ -12,35 +12,35 @@ namespace SabreTools.Models.PortableExecutable
///
/// "CodeView signature, equal to “NB10”
///
- public uint Signature;
+ public uint Signature { get; set; }
///
/// CodeView offset. Set to 0, because debug information
/// is stored in a separate file.
///
- public uint Offset;
+ public uint Offset { get; set; }
///
/// The time when debug information was created (in seconds
/// since 01.01.1970)
///
- public uint Timestamp;
+ public uint Timestamp { get; set; }
///
/// Ever-incrementing value, which is initially set to 1 and
/// incremented every time when a part of the PDB file is updated
/// without rewriting the whole file.
///
- public uint Age;
+ public uint Age { get; set; }
///
/// Null-terminated name of the PDB file. It can also contain full
/// or partial path to the file.
///
#if NET48
- public string PdbFileName;
+ public string PdbFileName { get; set; }
#else
- public string? PdbFileName;
+ public string? PdbFileName { get; set; }
#endif
}
}
diff --git a/PortableExecutable/NewHeader.cs b/PortableExecutable/NewHeader.cs
index 161fae3..985f6ad 100644
--- a/PortableExecutable/NewHeader.cs
+++ b/PortableExecutable/NewHeader.cs
@@ -14,18 +14,18 @@ namespace SabreTools.Models.PortableExecutable
///
/// Reserved; must be zero.
///
- public ushort Reserved;
+ public ushort Reserved { get; set; }
///
/// The resource type. This member must have one of the following values.
/// - RES_ICON (1): Icon resource type.
/// - RES_CURSOR (2): Cursor resource type.
///
- public ushort ResType;
+ public ushort ResType { get; set; }
///
/// The number of icon or cursor components in the resource group.
///
- public ushort ResCount;
+ public ushort ResCount { get; set; }
}
}
diff --git a/PortableExecutable/OptionalHeader.cs b/PortableExecutable/OptionalHeader.cs
index 8640ace..02d4b6a 100644
--- a/PortableExecutable/OptionalHeader.cs
+++ b/PortableExecutable/OptionalHeader.cs
@@ -37,35 +37,35 @@
/// common number is 0x10B, which identifies it as a normal executable file.
/// 0x107 identifies it as a ROM image, and 0x20B identifies it as a PE32+ executable.
///
- public OptionalHeaderMagicNumber Magic;
+ public OptionalHeaderMagicNumber Magic { get; set; }
///
/// The linker major version number.
///
- public byte MajorLinkerVersion;
+ public byte MajorLinkerVersion { get; set; }
///
/// The linker minor version number.
///
- public byte MinorLinkerVersion;
+ public byte MinorLinkerVersion { get; set; }
///
/// The size of the code (text) section, or the sum of all code sections if there
/// are multiple sections.
///
- public uint SizeOfCode;
+ public uint SizeOfCode { get; set; }
///
/// The size of the initialized data section, or the sum of all such sections if
/// there are multiple data sections.
///
- public uint SizeOfInitializedData;
+ public uint SizeOfInitializedData { get; set; }
///
/// The size of the uninitialized data section (BSS), or the sum of all such sections
/// if there are multiple BSS sections.
///
- public uint SizeOfUninitializedData;
+ public uint SizeOfUninitializedData { get; set; }
///
/// The address of the entry point relative to the image base when the executable file
@@ -73,13 +73,13 @@
/// device drivers, this is the address of the initialization function. An entry point
/// is optional for DLLs. When no entry point is present, this field must be zero.
///
- public uint AddressOfEntryPoint;
+ public uint AddressOfEntryPoint { get; set; }
///
/// The address that is relative to the image base of the beginning-of-code section when
/// it is loaded into memory.
///
- public uint BaseOfCode;
+ public uint BaseOfCode { get; set; }
#region PE32-Only
@@ -87,7 +87,7 @@
/// The address that is relative to the image base of the beginning-of-data section when
/// it is loaded into memory.
///
- public uint BaseOfData;
+ public uint BaseOfData { get; set; }
#endregion
@@ -98,20 +98,20 @@
#region ImageBase
///
- /// The preferred address of the first byte of image when loaded into memory;
+ /// The preferred address of the first byte of image when loaded into memory { get; set; }
/// must be a multiple of 64 K. The default for DLLs is 0x10000000. The default
/// for Windows CE EXEs is 0x00010000. The default for Windows NT, Windows 2000,
/// Windows XP, Windows 95, Windows 98, and Windows Me is 0x00400000.
///
- public uint ImageBase_PE32;
+ public uint ImageBase_PE32 { get; set; }
///
- /// The preferred address of the first byte of image when loaded into memory;
+ /// The preferred address of the first byte of image when loaded into memory { get; set; }
/// must be a multiple of 64 K. The default for DLLs is 0x10000000. The default
/// for Windows CE EXEs is 0x00010000. The default for Windows NT, Windows 2000,
/// Windows XP, Windows 95, Windows 98, and Windows Me is 0x00400000.
///
- public ulong ImageBase_PE32Plus;
+ public ulong ImageBase_PE32Plus { get; set; }
#endregion
@@ -120,7 +120,7 @@
/// be greater than or equal to FileAlignment. The default is the page size for
/// the architecture.
///
- public uint SectionAlignment;
+ public uint SectionAlignment { get; set; }
///
/// The alignment factor (in bytes) that is used to align the raw data of sections
@@ -128,54 +128,54 @@
/// inclusive. The default is 512. If the SectionAlignment is less than the
/// architecture's page size, then FileAlignment must match SectionAlignment.
///
- public uint FileAlignment;
+ public uint FileAlignment { get; set; }
///
/// The major version number of the required operating system.
///
- public ushort MajorOperatingSystemVersion;
+ public ushort MajorOperatingSystemVersion { get; set; }
///
/// The minor version number of the required operating system.
///
- public ushort MinorOperatingSystemVersion;
+ public ushort MinorOperatingSystemVersion { get; set; }
///
/// The major version number of the image.
///
- public ushort MajorImageVersion;
+ public ushort MajorImageVersion { get; set; }
///
/// The minor version number of the image.
///
- public ushort MinorImageVersion;
+ public ushort MinorImageVersion { get; set; }
///
/// The major version number of the subsystem.
///
- public ushort MajorSubsystemVersion;
+ public ushort MajorSubsystemVersion { get; set; }
///
/// The minor version number of the subsystem.
///
- public ushort MinorSubsystemVersion;
+ public ushort MinorSubsystemVersion { get; set; }
///
/// Reserved, must be zero.
///
- public uint Win32VersionValue;
+ public uint Win32VersionValue { get; set; }
///
/// The size (in bytes) of the image, including all headers, as the image
/// is loaded in memory. It must be a multiple of SectionAlignment.
///
- public uint SizeOfImage;
+ public uint SizeOfImage { get; set; }
///
/// The combined size of an MS-DOS stub, PE header, and section headers rounded
/// up to a multiple of FileAlignment.
///
- public uint SizeOfHeaders;
+ public uint SizeOfHeaders { get; set; }
///
/// The image file checksum. The algorithm for computing the checksum is
@@ -183,17 +183,17 @@
/// load time: all drivers, any DLL loaded at boot time, and any DLL that is
/// loaded into a critical Windows process.
///
- public uint CheckSum;
+ public uint CheckSum { get; set; }
///
/// The subsystem that is required to run this image.
///
- public WindowsSubsystem Subsystem;
+ public WindowsSubsystem Subsystem { get; set; }
///
/// DLL characteristics
///
- public DllCharacteristics DllCharacteristics;
+ public DllCharacteristics DllCharacteristics { get; set; }
#region SizeOfStackReserve
@@ -201,13 +201,13 @@
/// The size of the stack to reserve. Only SizeOfStackCommit is committed; the rest
/// is made available one page at a time until the reserve size is reached.
///
- public uint SizeOfStackReserve_PE32;
+ public uint SizeOfStackReserve_PE32 { get; set; }
///
/// The size of the stack to reserve. Only SizeOfStackCommit is committed; the rest
/// is made available one page at a time until the reserve size is reached.
///
- public ulong SizeOfStackReserve_PE32Plus;
+ public ulong SizeOfStackReserve_PE32Plus { get; set; }
#endregion
@@ -216,12 +216,12 @@
///
/// The size of the stack to commit.
///
- public uint SizeOfStackCommit_PE32;
+ public uint SizeOfStackCommit_PE32 { get; set; }
///
/// The size of the stack to commit.
///
- public ulong SizeOfStackCommit_PE32Plus;
+ public ulong SizeOfStackCommit_PE32Plus { get; set; }
#endregion
@@ -232,14 +232,14 @@
/// committed; the rest is made available one page at a time until the reserve
/// size is reached.
///
- public uint SizeOfHeapReserve_PE32;
+ public uint SizeOfHeapReserve_PE32 { get; set; }
///
/// The size of the local heap space to reserve. Only SizeOfHeapCommit is
/// committed; the rest is made available one page at a time until the reserve
/// size is reached.
///
- public ulong SizeOfHeapReserve_PE32Plus;
+ public ulong SizeOfHeapReserve_PE32Plus { get; set; }
#endregion
@@ -248,25 +248,25 @@
///
/// The size of the local heap space to commit.
///
- public uint SizeOfHeapCommit_PE32;
+ public uint SizeOfHeapCommit_PE32 { get; set; }
///
/// The size of the local heap space to commit.
///
- public ulong SizeOfHeapCommit_PE32Plus;
+ public ulong SizeOfHeapCommit_PE32Plus { get; set; }
#endregion
///
/// Reserved, must be zero.
///
- public uint LoaderFlags;
+ public uint LoaderFlags { get; set; }
///
/// The number of data-directory entries in the remainder of the optional header.
/// Each describes a location and size.
///
- public uint NumberOfRvaAndSizes;
+ public uint NumberOfRvaAndSizes { get; set; }
#endregion
@@ -276,138 +276,138 @@
/// The export table address and size.
///
#if NET48
- public DataDirectory ExportTable;
+ public DataDirectory ExportTable { get; set; }
#else
- public DataDirectory? ExportTable;
+ public DataDirectory? ExportTable { get; set; }
#endif
///
/// The import table address and size.
///
#if NET48
- public DataDirectory ImportTable;
+ public DataDirectory ImportTable { get; set; }
#else
- public DataDirectory? ImportTable;
+ public DataDirectory? ImportTable { get; set; }
#endif
///
/// The resource table address and size.
///
#if NET48
- public DataDirectory ResourceTable;
+ public DataDirectory ResourceTable { get; set; }
#else
- public DataDirectory? ResourceTable;
+ public DataDirectory? ResourceTable { get; set; }
#endif
///
/// The exception table address and size.
///
#if NET48
- public DataDirectory ExceptionTable;
+ public DataDirectory ExceptionTable { get; set; }
#else
- public DataDirectory? ExceptionTable;
+ public DataDirectory? ExceptionTable { get; set; }
#endif
///
/// The attribute certificate table address and size.
///
#if NET48
- public DataDirectory CertificateTable;
+ public DataDirectory CertificateTable { get; set; }
#else
- public DataDirectory? CertificateTable;
+ public DataDirectory? CertificateTable { get; set; }
#endif
///
/// The base relocation table address and size.
///
#if NET48
- public DataDirectory BaseRelocationTable;
+ public DataDirectory BaseRelocationTable { get; set; }
#else
- public DataDirectory? BaseRelocationTable;
+ public DataDirectory? BaseRelocationTable { get; set; }
#endif
///
/// The debug data starting address and size.
///
#if NET48
- public DataDirectory Debug;
+ public DataDirectory Debug { get; set; }
#else
- public DataDirectory? Debug;
+ public DataDirectory? Debug { get; set; }
#endif
///
/// Reserved, must be 0
///
- public ulong Architecture;
+ public ulong Architecture { get; set; }
///
/// The RVA of the value to be stored in the global pointer register.
/// The size member of this structure must be set to zero.
///
#if NET48
- public DataDirectory GlobalPtr;
+ public DataDirectory GlobalPtr { get; set; }
#else
- public DataDirectory? GlobalPtr;
+ public DataDirectory? GlobalPtr { get; set; }
#endif
///
/// The thread local storage (TLS) table address and size.
///
#if NET48
- public DataDirectory ThreadLocalStorageTable;
+ public DataDirectory ThreadLocalStorageTable { get; set; }
#else
- public DataDirectory? ThreadLocalStorageTable;
+ public DataDirectory? ThreadLocalStorageTable { get; set; }
#endif
///
/// The load configuration table address and size.
///
#if NET48
- public DataDirectory LoadConfigTable;
+ public DataDirectory LoadConfigTable { get; set; }
#else
- public DataDirectory? LoadConfigTable;
+ public DataDirectory? LoadConfigTable { get; set; }
#endif
///
/// The bound import table address and size.
///
#if NET48
- public DataDirectory BoundImport;
+ public DataDirectory BoundImport { get; set; }
#else
- public DataDirectory? BoundImport;
+ public DataDirectory? BoundImport { get; set; }
#endif
///
/// The import address table address and size
///
#if NET48
- public DataDirectory ImportAddressTable;
+ public DataDirectory ImportAddressTable { get; set; }
#else
- public DataDirectory? ImportAddressTable;
+ public DataDirectory? ImportAddressTable { get; set; }
#endif
///
/// The delay import descriptor address and size.
///
#if NET48
- public DataDirectory DelayImportDescriptor;
+ public DataDirectory DelayImportDescriptor { get; set; }
#else
- public DataDirectory? DelayImportDescriptor;
+ public DataDirectory? DelayImportDescriptor { get; set; }
#endif
///
/// The CLR runtime header address and size.
///
#if NET48
- public DataDirectory CLRRuntimeHeader;
+ public DataDirectory CLRRuntimeHeader { get; set; }
#else
- public DataDirectory? CLRRuntimeHeader;
+ public DataDirectory? CLRRuntimeHeader { get; set; }
#endif
///
/// Reserved, must be zero
///
- public ulong Reserved;
+ public ulong Reserved { get; set; }
#endregion
}
diff --git a/PortableExecutable/RSDSProgramDatabase.cs b/PortableExecutable/RSDSProgramDatabase.cs
index a667644..1248d10 100644
--- a/PortableExecutable/RSDSProgramDatabase.cs
+++ b/PortableExecutable/RSDSProgramDatabase.cs
@@ -14,27 +14,27 @@ namespace SabreTools.Models.PortableExecutable
///
/// "RSDS" signature
///
- public uint Signature;
+ public uint Signature { get; set; }
///
/// 16-byte Globally Unique Identifier
///
- public Guid GUID;
+ public Guid GUID { get; set; }
///
/// Ever-incrementing value, which is initially set to 1 and
/// incremented every time when a part of the PDB file is updated
/// without rewriting the whole file.
///
- public uint Age;
+ public uint Age { get; set; }
///
/// zero terminated UTF8 path and file name
///
#if NET48
- public string PathAndFileName;
+ public string PathAndFileName { get; set; }
#else
- public string? PathAndFileName;
+ public string? PathAndFileName { get; set; }
#endif
}
}
diff --git a/PortableExecutable/ResourceDataEntry.cs b/PortableExecutable/ResourceDataEntry.cs
index 54163d9..b17069a 100644
--- a/PortableExecutable/ResourceDataEntry.cs
+++ b/PortableExecutable/ResourceDataEntry.cs
@@ -16,32 +16,32 @@ namespace SabreTools.Models.PortableExecutable
///
/// The address of a unit of resource data in the Resource Data area.
///
- public uint DataRVA;
+ public uint DataRVA { get; set; }
///
/// The size, in bytes, of the resource data that is pointed to by the
/// Data RVA field.
///
- public uint Size;
+ public uint Size { get; set; }
///
/// The resource data that is pointed to by the Data RVA field.
///
#if NET48
- public byte[] Data;
+ public byte[] Data { get; set; }
#else
- public byte[]? Data;
+ public byte[]? Data { get; set; }
#endif
///
/// The code page that is used to decode code point values within the
/// resource data. Typically, the code page would be the Unicode code page.
///
- public uint Codepage;
+ public uint Codepage { get; set; }
///
/// Reserved, must be 0.
///
- public uint Reserved;
+ public uint Reserved { get; set; }
}
}
diff --git a/PortableExecutable/ResourceDirectoryEntry.cs b/PortableExecutable/ResourceDirectoryEntry.cs
index 4b6222a..8a1b322 100644
--- a/PortableExecutable/ResourceDirectoryEntry.cs
+++ b/PortableExecutable/ResourceDirectoryEntry.cs
@@ -25,22 +25,22 @@
/// The offset of a string that gives the Type, Name, or Language ID entry,
/// depending on level of table.
///
- public uint NameOffset;
+ public uint NameOffset { get; set; }
///
/// A string that gives the Type, Name, or Language ID entry, depending on
/// level of table.
///
#if NET48
- public ResourceDirectoryString Name;
+ public ResourceDirectoryString Name { get; set; }
#else
- public ResourceDirectoryString? Name;
+ public ResourceDirectoryString? Name { get; set; }
#endif
///
/// A 32-bit integer that identifies the Type, Name, or Language ID entry.
///
- public uint IntegerID;
+ public uint IntegerID { get; set; }
#endregion
@@ -49,30 +49,30 @@
///
/// High bit 0. Address of a Resource Data entry (a leaf).
///
- public uint DataEntryOffset;
+ public uint DataEntryOffset { get; set; }
///
/// Resource data entry (a leaf).
///
#if NET48
- public ResourceDataEntry DataEntry;
+ public ResourceDataEntry DataEntry { get; set; }
#else
- public ResourceDataEntry? DataEntry;
+ public ResourceDataEntry? DataEntry { get; set; }
#endif
///
/// High bit 1. The lower 31 bits are the address of another resource
/// directory table (the next level down).
///
- public uint SubdirectoryOffset;
+ public uint SubdirectoryOffset { get; set; }
///
/// Another resource directory table (the next level down).
///
#if NET48
- public ResourceDirectoryTable Subdirectory;
+ public ResourceDirectoryTable Subdirectory { get; set; }
#else
- public ResourceDirectoryTable? Subdirectory;
+ public ResourceDirectoryTable? Subdirectory { get; set; }
#endif
#endregion
diff --git a/PortableExecutable/ResourceDirectoryString.cs b/PortableExecutable/ResourceDirectoryString.cs
index b65d425..b1b6785 100644
--- a/PortableExecutable/ResourceDirectoryString.cs
+++ b/PortableExecutable/ResourceDirectoryString.cs
@@ -13,15 +13,15 @@
///
/// The size of the string, not including length field itself.
///
- public ushort Length;
+ public ushort Length { get; set; }
///
/// The variable-length Unicode string data, word-aligned.
///
#if NET48
- public byte[] UnicodeString;
+ public byte[] UnicodeString { get; set; }
#else
- public byte[]? UnicodeString;
+ public byte[]? UnicodeString { get; set; }
#endif
}
}
diff --git a/PortableExecutable/ResourceDirectoryTable.cs b/PortableExecutable/ResourceDirectoryTable.cs
index a325bd6..d311eda 100644
--- a/PortableExecutable/ResourceDirectoryTable.cs
+++ b/PortableExecutable/ResourceDirectoryTable.cs
@@ -22,35 +22,35 @@ namespace SabreTools.Models.PortableExecutable
/// Resource flags. This field is reserved for future use. It is currently
/// set to zero.
///
- public uint Characteristics;
+ public uint Characteristics { get; set; }
///
/// The time that the resource data was created by the resource compiler.
///
- public uint TimeDateStamp;
+ public uint TimeDateStamp { get; set; }
///
/// The major version number, set by the user.
///
- public ushort MajorVersion;
+ public ushort MajorVersion { get; set; }
///
/// The minor version number, set by the user.
///
- public ushort MinorVersion;
+ public ushort MinorVersion { get; set; }
///
/// The number of directory entries immediately following the table that use
/// strings to identify Type, Name, or Language entries (depending on the
/// level of the table).
///
- public ushort NumberOfNameEntries;
+ public ushort NumberOfNameEntries { get; set; }
///
/// The number of directory entries immediately following the Name entries that
/// use numeric IDs for Type, Name, or Language entries.
///
- public ushort NumberOfIDEntries;
+ public ushort NumberOfIDEntries { get; set; }
///
/// Directory entries immediately following the table that use
@@ -58,9 +58,9 @@ namespace SabreTools.Models.PortableExecutable
/// level of the table).
///
#if NET48
- public ResourceDirectoryEntry[] Entries;
+ public ResourceDirectoryEntry[] Entries { get; set; }
#else
- public ResourceDirectoryEntry?[]? Entries;
+ public ResourceDirectoryEntry?[]? Entries { get; set; }
#endif
}
}
diff --git a/PortableExecutable/ResourceHeader.cs b/PortableExecutable/ResourceHeader.cs
index 078190e..1f20f10 100644
--- a/PortableExecutable/ResourceHeader.cs
+++ b/PortableExecutable/ResourceHeader.cs
@@ -14,12 +14,12 @@
/// particular resource. It does not include any file padding between this
/// resource and any resource that follows it in the resource file.
///
- public uint DataSize;
+ public uint DataSize { get; set; }
///
/// The size, in bytes, of the resource header data that follows.
///
- public uint HeaderSize;
+ public uint HeaderSize { get; set; }
///
/// The resource type. The TYPE member can either be a numeric value or a
@@ -32,7 +32,7 @@
///
/// Values less than 256 are reserved for system use.
///
- public ResourceType ResourceType;
+ public ResourceType ResourceType { get; set; }
///
/// A name that identifies the particular resource. The NAME member, like the TYPE
@@ -44,13 +44,13 @@
/// members because they contain WORD data. However, you may need to add a WORD of
/// padding after the NAME member to align the rest of the header on DWORD boundaries.
///
- public uint Name;
+ public uint Name { get; set; }
///
/// A predefined resource data version. This will determine which version of the
/// resource data the application should use.
///
- public uint DataVersion;
+ public uint DataVersion { get; set; }
///
/// A set of attribute flags that can describe the state of the resource. Modifiers
@@ -62,7 +62,7 @@
/// ignored. Resources are loaded when the corresponding module is loaded, and are
/// freed when the module is unloaded.
///
- public MemoryFlags MemoryFlags;
+ public MemoryFlags MemoryFlags { get; set; }
///
/// The language for the resource or set of resources. Set the value for this member
@@ -75,20 +75,20 @@
/// the strings within the resources, you will need to specify a LanguageId for each
/// one.
///
- public ushort LanguageId;
+ public ushort LanguageId { get; set; }
///
/// A user-defined version number for the resource data that tools can use to read and
/// write resource files. Set this value with the optional VERSION resource definition
/// statement.
///
- public uint Version;
+ public uint Version { get; set; }
///
/// Specifies user-defined information about the resource that tools can use to read and
/// write resource files. Set this value with the optional CHARACTERISTICS resource
/// definition statement.
///
- public uint Characteristics;
+ public uint Characteristics { get; set; }
}
}
diff --git a/PortableExecutable/SectionHeader.cs b/PortableExecutable/SectionHeader.cs
index b38877d..d73f88a 100644
--- a/PortableExecutable/SectionHeader.cs
+++ b/PortableExecutable/SectionHeader.cs
@@ -44,16 +44,16 @@ namespace SabreTools.Models.PortableExecutable
/// greater than SizeOfRawData, the section is zero-padded. This field is valid
/// only for executable images and should be set to zero for object files.
///
- public uint VirtualSize;
+ public uint VirtualSize { get; set; }
///
/// For executable images, the address of the first byte of the section relative
/// to the image base when the section is loaded into memory. For object files,
- /// this field is the address of the first byte before relocation is applied;
+ /// this field is the address of the first byte before relocation is applied { get; set; }
/// for simplicity, compilers should set this to zero. Otherwise, it is an
/// arbitrary value that is subtracted from offsets during relocation.
///
- public uint VirtualAddress;
+ public uint VirtualAddress { get; set; }
///
/// The size of the section (for object files) or the size of the initialized
@@ -64,7 +64,7 @@ namespace SabreTools.Models.PortableExecutable
/// to be greater than VirtualSize as well. When a section contains only
/// uninitialized data, this field should be zero.
///
- public uint SizeOfRawData;
+ public uint SizeOfRawData { get; set; }
///
/// The file pointer to the first page of the section within the COFF file. For
@@ -73,54 +73,54 @@ namespace SabreTools.Models.PortableExecutable
/// for best performance. When a section contains only uninitialized data, this
/// field should be zero.
///
- public uint PointerToRawData;
+ public uint PointerToRawData { get; set; }
///
/// The file pointer to the beginning of relocation entries for the section. This
/// is set to zero for executable images or if there are no relocations.
///
- public uint PointerToRelocations;
+ public uint PointerToRelocations { get; set; }
///
/// The file pointer to the beginning of line-number entries for the section. This
/// is set to zero if there are no COFF line numbers. This value should be zero for
/// an image because COFF debugging information is deprecated.
///
- public uint PointerToLinenumbers;
+ public uint PointerToLinenumbers { get; set; }
///
/// The number of relocation entries for the section. This is set to zero for
/// executable images.
///
- public ushort NumberOfRelocations;
+ public ushort NumberOfRelocations { get; set; }
///
/// The number of line-number entries for the section. This value should be zero
/// for an image because COFF debugging information is deprecated.
///
- public ushort NumberOfLinenumbers;
+ public ushort NumberOfLinenumbers { get; set; }
///
/// The flags that describe the characteristics of the section.
///
- public SectionFlags Characteristics;
+ public SectionFlags Characteristics { get; set; }
///
/// COFF Relocations (Object Only)
///
#if NET48
- public COFFRelocation[] COFFRelocations;
+ public COFFRelocation[] COFFRelocations { get; set; }
#else
- public COFFRelocation?[]? COFFRelocations;
+ public COFFRelocation?[]? COFFRelocations { get; set; }
#endif
///
/// COFF Line Numbers (Deprecated)
///
#if NET48
- public COFFLineNumber[] COFFLineNumbers;
+ public COFFLineNumber[] COFFLineNumbers { get; set; }
#else
- public COFFLineNumber?[]? COFFLineNumbers;
+ public COFFLineNumber?[]? COFFLineNumbers { get; set; }
#endif
}
}
diff --git a/PortableExecutable/SecuROMAddD.cs b/PortableExecutable/SecuROMAddD.cs
index 92697c7..bf67970 100644
--- a/PortableExecutable/SecuROMAddD.cs
+++ b/PortableExecutable/SecuROMAddD.cs
@@ -16,7 +16,7 @@ namespace SabreTools.Models.PortableExecutable
///
/// "AddD", Identifier?
///
- public uint Signature;
+ public uint Signature { get; set; }
///
/// Unknown (Entry count?)
@@ -25,24 +25,24 @@ namespace SabreTools.Models.PortableExecutable
/// 3 in EXPUNGED, 3.17.00.0017, 3.17.00.0019
/// 3 in 4.47.00.0039, 4.84.00.0054, 4.84.69.0037, 4.84.76.7966, 4.84.76.7968, 4.85.07.0009
///
- public uint EntryCount;
+ public uint EntryCount { get; set; }
///
/// Version, always 8 bytes?
///
#if NET48
- public string Version;
+ public string Version { get; set; }
#else
- public string? Version;
+ public string? Version { get; set; }
#endif
///
/// Unknown (Build? Formatted as a string)
///
#if NET48
- public char[] Build;
+ public char[] Build { get; set; }
#else
- public char[]? Build;
+ public char[]? Build { get; set; }
#endif
///
@@ -59,18 +59,18 @@ namespace SabreTools.Models.PortableExecutable
/// "548520-001" in 4.85.07.0009
///
#if NET48
- public byte[] Unknown14h;
+ public byte[] Unknown14h { get; set; }
#else
- public byte[]? Unknown14h;
+ public byte[]? Unknown14h { get; set; }
#endif
///
/// Entry table
///
#if NET48
- public SecuROMAddDEntry[] Entries;
+ public SecuROMAddDEntry[] Entries { get; set; }
#else
- public SecuROMAddDEntry?[]? Entries;
+ public SecuROMAddDEntry?[]? Entries { get; set; }
#endif
}
}
diff --git a/PortableExecutable/SecuROMAddDEntry.cs b/PortableExecutable/SecuROMAddDEntry.cs
index 63de2d7..a515b4b 100644
--- a/PortableExecutable/SecuROMAddDEntry.cs
+++ b/PortableExecutable/SecuROMAddDEntry.cs
@@ -16,58 +16,58 @@ namespace SabreTools.Models.PortableExecutable
///
/// Physical offset of the embedded file
///
- public uint PhysicalOffset;
+ public uint PhysicalOffset { get; set; }
///
/// Length of the embedded file
///
/// The last entry seems to be 4 bytes short in 4.47.00.0039
- public uint Length;
+ public uint Length { get; set; }
///
/// Unknown (0x08)
///
/// 3149224 [3496, 48] in the sample (all 3 entries) in 4.47.00.0039
- public uint Unknown08h;
+ public uint Unknown08h { get; set; }
///
/// Unknown (0x0C)
///
/// 3147176 [1448, 48] in the sample (all 3 entries) in 4.47.00.0039
- public uint Unknown0Ch;
+ public uint Unknown0Ch { get; set; }
///
/// Unknown (0x10)
///
/// 3149224 [3496, 48] in the sample (all 3 entries) in 4.47.00.0039
- public uint Unknown10h;
+ public uint Unknown10h { get; set; }
///
/// Unknown (0x14)
///
/// 1245044 [65396, 18] in the sample (all 3 entries) in 4.47.00.0039
- public uint Unknown14h;
+ public uint Unknown14h { get; set; }
///
/// Unknown (0x18)
///
/// 4214725 [20421, 64] in the sample (all 3 entries) in 4.47.00.0039
- public uint Unknown18h;
+ public uint Unknown18h { get; set; }
///
/// Unknown (0x1C)
///
/// 2 [2, 0] in the sample (all 3 entries) in 4.47.00.0039
- public uint Unknown1Ch;
+ public uint Unknown1Ch { get; set; }
///
/// Entry file name (null-terminated)
///
/// 12 bytes long in the sample (all 3 entries) in 4.47.00.0039
#if NET48
- public string FileName;
+ public string FileName { get; set; }
#else
- public string? FileName;
+ public string? FileName { get; set; }
#endif
///
@@ -77,6 +77,6 @@ namespace SabreTools.Models.PortableExecutable
/// Offset based on consistent-sized filenames (12 bytes) in 4.47.00.0039
/// 132 [132, 0] in the sample (all 3 entries) in 4.47.00.0039
///
- public uint Unknown2Ch;
+ public uint Unknown2Ch { get; set; }
}
}
diff --git a/PortableExecutable/StringData.cs b/PortableExecutable/StringData.cs
index ca0693f..ad91fad 100644
--- a/PortableExecutable/StringData.cs
+++ b/PortableExecutable/StringData.cs
@@ -11,17 +11,17 @@
///
/// The length, in bytes, of this String structure.
///
- public ushort Length;
+ public ushort Length { get; set; }
///
/// The size, in words, of the Value member.
///
- public ushort ValueLength;
+ public ushort ValueLength { get; set; }
///
/// The type of data in the version resource.
///
- public VersionResourceType ResourceType;
+ public VersionResourceType ResourceType { get; set; }
///
/// An arbitrary Unicode string. The Key member can be one or more of the following
@@ -65,23 +65,23 @@
/// could be "Private build for Olivetti solving mouse problems on M250 and M250E computers".
///
#if NET48
- public string Key;
+ public string Key { get; set; }
#else
- public string? Key;
+ public string? Key { get; set; }
#endif
///
/// As many zero words as necessary to align the Value member on a 32-bit boundary.
///
- public ushort Padding;
+ public ushort Padding { get; set; }
///
/// A zero-terminated string. See the szKey member description for more information.
///
#if NET48
- public string Value;
+ public string Value { get; set; }
#else
- public string? Value;
+ public string? Value { get; set; }
#endif
}
}
diff --git a/PortableExecutable/StringFileInfo.cs b/PortableExecutable/StringFileInfo.cs
index 1b61e55..d100507 100644
--- a/PortableExecutable/StringFileInfo.cs
+++ b/PortableExecutable/StringFileInfo.cs
@@ -11,31 +11,31 @@
/// The length, in bytes, of the entire StringFileInfo block, including all
/// structures indicated by the Children member.
///
- public ushort Length;
+ public ushort Length { get; set; }
///
/// This member is always equal to zero.
///
- public ushort ValueLength;
+ public ushort ValueLength { get; set; }
///
/// The type of data in the version resource.
///
- public VersionResourceType ResourceType;
+ public VersionResourceType ResourceType { get; set; }
///
/// The Unicode string L"StringFileInfo".
///
#if NET48
- public string Key;
+ public string Key { get; set; }
#else
- public string? Key;
+ public string? Key { get; set; }
#endif
///
/// As many zero words as necessary to align the Children member on a 32-bit boundary.
///
- public ushort Padding;
+ public ushort Padding { get; set; }
///
/// An array of one or more StringTable structures. Each StringTable structure's Key
@@ -43,9 +43,9 @@
/// that StringTable structure.
///
#if NET48
- public StringTable[] Children;
+ public StringTable[] Children { get; set; }
#else
- public StringTable?[]? Children;
+ public StringTable?[]? Children { get; set; }
#endif
}
}
diff --git a/PortableExecutable/StringTable.cs b/PortableExecutable/StringTable.cs
index 59d8666..a56f707 100644
--- a/PortableExecutable/StringTable.cs
+++ b/PortableExecutable/StringTable.cs
@@ -12,17 +12,17 @@
/// The length, in bytes, of this StringTable structure, including all structures
/// indicated by the Children member.
///
- public ushort Length;
+ public ushort Length { get; set; }
///
/// This member is always equal to zero.
///
- public ushort ValueLength;
+ public ushort ValueLength { get; set; }
///
/// The type of data in the version resource.
///
- public VersionResourceType ResourceType;
+ public VersionResourceType ResourceType { get; set; }
///
/// An 8-digit hexadecimal number stored as a Unicode string. The four most significant
@@ -32,23 +32,23 @@
/// and the high-order 6 bits specify the sublanguage.
///
#if NET48
- public string Key;
+ public string Key { get; set; }
#else
- public string? Key;
+ public string? Key { get; set; }
#endif
///
/// As many zero words as necessary to align the Children member on a 32-bit boundary.
///
- public ushort Padding;
+ public ushort Padding { get; set; }
///
/// An array of one or more StringData structures.
///
#if NET48
- public StringData[] Children;
+ public StringData[] Children { get; set; }
#else
- public StringData?[]? Children;
+ public StringData?[]? Children { get; set; }
#endif
}
}
diff --git a/PortableExecutable/TLSDirectory.cs b/PortableExecutable/TLSDirectory.cs
index d45956b..7b042c1 100644
--- a/PortableExecutable/TLSDirectory.cs
+++ b/PortableExecutable/TLSDirectory.cs
@@ -12,7 +12,7 @@
/// address is not an RVA; it is an address for which there should be a base
/// relocation in the .reloc section.
///
- public uint RawDataStartVA_PE32;
+ public uint RawDataStartVA_PE32 { get; set; }
///
/// The starting address of the TLS template. The template is a block of data
@@ -21,7 +21,7 @@
/// address is not an RVA; it is an address for which there should be a base
/// relocation in the .reloc section.
///
- public ulong RawDataStartVA_PE32Plus;
+ public ulong RawDataStartVA_PE32Plus { get; set; }
#endregion
@@ -31,13 +31,13 @@
/// The address of the last byte of the TLS, except for the zero fill. As
/// with the Raw Data Start VA field, this is a VA, not an RVA.
///
- public uint RawDataEndVA_PE32;
+ public uint RawDataEndVA_PE32 { get; set; }
///
/// The address of the last byte of the TLS, except for the zero fill. As
/// with the Raw Data Start VA field, this is a VA, not an RVA.
///
- public ulong RawDataEndVA_PE32Plus;
+ public ulong RawDataEndVA_PE32Plus { get; set; }
#endregion
@@ -48,14 +48,14 @@
/// location is in an ordinary data section, so it can be given a symbolic
/// name that is accessible to the program.
///
- public uint AddressOfIndex_PE32;
+ public uint AddressOfIndex_PE32 { get; set; }
///
/// The location to receive the TLS index, which the loader assigns. This
/// location is in an ordinary data section, so it can be given a symbolic
/// name that is accessible to the program.
///
- public ulong AddressOfIndex_PE32Plus;
+ public ulong AddressOfIndex_PE32Plus { get; set; }
#endregion
@@ -66,14 +66,14 @@
/// null-terminated, so if no callback function is supported, this field
/// points to 4 bytes set to zero.
///
- public uint AddressOfCallbacks_PE32;
+ public uint AddressOfCallbacks_PE32 { get; set; }
///
/// The pointer to an array of TLS callback functions. The array is
/// null-terminated, so if no callback function is supported, this field
/// points to 4 bytes set to zero.
///
- public ulong AddressOfCallbacks_PE32Plus;
+ public ulong AddressOfCallbacks_PE32Plus { get; set; }
#endregion
@@ -84,13 +84,13 @@
/// The zero fill is the amount of data that comes after the initialized
/// nonzero data.
///
- public uint SizeOfZeroFill;
+ public uint SizeOfZeroFill { get; set; }
///
/// The four bits [23:20] describe alignment info. Possible values are those
/// defined as IMAGE_SCN_ALIGN_*, which are also used to describe alignment
/// of section in object files. The other 28 bits are reserved for future use.
///
- public uint Characteristics;
+ public uint Characteristics { get; set; }
}
}
diff --git a/PortableExecutable/VarData.cs b/PortableExecutable/VarData.cs
index 83be490..d7e75c3 100644
--- a/PortableExecutable/VarData.cs
+++ b/PortableExecutable/VarData.cs
@@ -11,31 +11,31 @@
///
/// The length, in bytes, of the Var structure.
///
- public ushort Length;
+ public ushort Length { get; set; }
///
/// The size, in words, of the Value member.
///
- public ushort ValueLength;
+ public ushort ValueLength { get; set; }
///
/// The type of data in the version resource.
///
- public VersionResourceType ResourceType;
+ public VersionResourceType ResourceType { get; set; }
///
/// The Unicode string L"Translation".
///
#if NET48
- public string Key;
+ public string Key { get; set; }
#else
- public string? Key;
+ public string? Key { get; set; }
#endif
///
/// As many zero words as necessary to align the Value member on a 32-bit boundary.
///
- public ushort Padding;
+ public ushort Padding { get; set; }
///
/// An array of one or more values that are language and code page identifier pairs.
@@ -50,9 +50,9 @@
/// language and code page independent.
///
#if NET48
- public uint[] Value;
+ public uint[] Value { get; set; }
#else
- public uint[]? Value;
+ public uint[]? Value { get; set; }
#endif
}
}
diff --git a/PortableExecutable/VarFileInfo.cs b/PortableExecutable/VarFileInfo.cs
index b3bfbf3..ac0f31c 100644
--- a/PortableExecutable/VarFileInfo.cs
+++ b/PortableExecutable/VarFileInfo.cs
@@ -11,39 +11,39 @@
/// The length, in bytes, of the entire VarFileInfo block, including all structures
/// indicated by the Children member.
///
- public ushort Length;
+ public ushort Length { get; set; }
///
/// This member is always equal to zero.
///
- public ushort ValueLength;
+ public ushort ValueLength { get; set; }
///
/// The type of data in the version resource.
///
- public VersionResourceType ResourceType;
+ public VersionResourceType ResourceType { get; set; }
///
/// The Unicode string L"VarFileInfo".
///
#if NET48
- public string Key;
+ public string Key { get; set; }
#else
- public string? Key;
+ public string? Key { get; set; }
#endif
///
/// As many zero words as necessary to align the Children member on a 32-bit boundary.
///
- public ushort Padding;
+ public ushort Padding { get; set; }
///
/// Typically contains a list of languages that the application or DLL supports.
///
#if NET48
- public VarData[] Children;
+ public VarData[] Children { get; set; }
#else
- public VarData?[]? Children;
+ public VarData?[]? Children { get; set; }
#endif
}
}
diff --git a/PortableExecutable/VersionInfo.cs b/PortableExecutable/VersionInfo.cs
index b277bcd..f67ed10 100644
--- a/PortableExecutable/VersionInfo.cs
+++ b/PortableExecutable/VersionInfo.cs
@@ -12,66 +12,66 @@
/// include any padding that aligns any subsequent version resource data on a
/// 32-bit boundary.
///
- public ushort Length;
+ public ushort Length { get; set; }
///
/// The length, in bytes, of the Value member. This value is zero if there is no
/// Value member associated with the current version structure.
///
- public ushort ValueLength;
+ public ushort ValueLength { get; set; }
///
/// The type of data in the version resource. This member is 1 if the version resource
/// contains text data and 0 if the version resource contains binary data.
///
- public VersionResourceType ResourceType;
+ public VersionResourceType ResourceType { get; set; }
///
/// The Unicode string L"VS_VERSION_INFO".
///
#if NET48
- public string Key;
+ public string Key { get; set; }
#else
- public string? Key;
+ public string? Key { get; set; }
#endif
///
/// Contains as many zero words as necessary to align the Value member on a 32-bit boundary.
///
- public ushort Padding1;
+ public ushort Padding1 { get; set; }
///
/// Arbitrary data associated with this VS_VERSIONINFO structure. The ValueLength member
/// specifies the length of this member; if ValueLength is zero, this member does not exist.
///
#if NET48
- public FixedFileInfo Value;
+ public FixedFileInfo Value { get; set; }
#else
- public FixedFileInfo? Value;
+ public FixedFileInfo? Value { get; set; }
#endif
///
/// As many zero words as necessary to align the Children member on a 32-bit boundary.
/// These bytes are not included in wValueLength. This member is optional.
///
- public ushort Padding2;
+ public ushort Padding2 { get; set; }
///
/// The StringFileInfo structure to store user-defined string information data.
///
#if NET48
- public StringFileInfo StringFileInfo;
+ public StringFileInfo StringFileInfo { get; set; }
#else
- public StringFileInfo? StringFileInfo;
+ public StringFileInfo? StringFileInfo { get; set; }
#endif
///
/// The VarFileInfo structure to store language information data.
///
#if NET48
- public VarFileInfo VarFileInfo;
+ public VarFileInfo VarFileInfo { get; set; }
#else
- public VarFileInfo? VarFileInfo;
+ public VarFileInfo? VarFileInfo { get; set; }
#endif
}
}
diff --git a/Quantum/FileDescriptor.cs b/Quantum/FileDescriptor.cs
index 54dd2f2..ea08971 100644
--- a/Quantum/FileDescriptor.cs
+++ b/Quantum/FileDescriptor.cs
@@ -9,50 +9,50 @@ namespace SabreTools.Models.Quantum
///
/// Length of file name
///
- public int FileNameSize;
+ public int FileNameSize { get; set; }
///
/// File name, variable length string, not zero-terminated
///
#if NET48
- public string FileName;
+ public string FileName { get; set; }
#else
- public string? FileName;
+ public string? FileName { get; set; }
#endif
///
/// Length of comment field
///
- public int CommentFieldSize;
+ public int CommentFieldSize { get; set; }
///
/// Comment field, variable length string, not zero-terminated
///
#if NET48
- public string CommentField;
+ public string CommentField { get; set; }
#else
- public string? CommentField;
+ public string? CommentField { get; set; }
#endif
///
/// Fully expanded file size in bytes
///
- public uint ExpandedFileSize;
+ public uint ExpandedFileSize { get; set; }
///
/// File time (DOS format)
///
- public ushort FileTime;
+ public ushort FileTime { get; set; }
///
/// File date (DOS format)
///
- public ushort FileDate;
+ public ushort FileDate { get; set; }
///
/// Unknown data, Checksum?
///
/// Minor version 22
- public ushort? Unknown;
+ public ushort? Unknown { get; set; }
}
}
\ No newline at end of file
diff --git a/Quantum/Header.cs b/Quantum/Header.cs
index 2078608..e88355b 100644
--- a/Quantum/Header.cs
+++ b/Quantum/Header.cs
@@ -13,34 +13,34 @@ namespace SabreTools.Models.Quantum
/// Quantum signature: 0x44 0x53
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
/// Quantum major version number
///
- public byte MajorVersion;
+ public byte MajorVersion { get; set; }
///
/// Quantum minor version number
///
- public byte MinorVersion;
+ public byte MinorVersion { get; set; }
///
/// Number of files within this archive
///
- public ushort FileCount;
+ public ushort FileCount { get; set; }
///
/// Table size required for decompression
///
- public byte TableSize;
+ public byte TableSize { get; set; }
///
/// Compression flags
///
- public byte CompressionFlags;
+ public byte CompressionFlags { get; set; }
}
}
\ No newline at end of file
diff --git a/SFFS/FileEntry.cs b/SFFS/FileEntry.cs
index ed71eba..069f281 100644
--- a/SFFS/FileEntry.cs
+++ b/SFFS/FileEntry.cs
@@ -11,14 +11,14 @@ namespace SabreTools.Models.SFFS
///
/// 0x10 bytes
#if NET48
- public byte[] FilenameMD5Hash;
+ public byte[] FilenameMD5Hash { get; set; }
#else
- public byte[]? FilenameMD5Hash;
+ public byte[]? FilenameMD5Hash { get; set; }
#endif
///
/// Index of fileheader (encrypted with filename)
///
- public ulong FileHeaderIndex;
+ public ulong FileHeaderIndex { get; set; }
}
}
diff --git a/SFFS/FileHeader.cs b/SFFS/FileHeader.cs
index bd8b7b9..a49c847 100644
--- a/SFFS/FileHeader.cs
+++ b/SFFS/FileHeader.cs
@@ -9,16 +9,16 @@ namespace SabreTools.Models.SFFS
///
/// Start of file content (encrypted with filename)
///
- public ulong FileContentStart;
+ public ulong FileContentStart { get; set; }
///
/// File info (timestamps, size, data position, encrypted)
///
/// Unknown format
#if NET48
- public byte[] FileInfo;
+ public byte[] FileInfo { get; set; }
#else
- public byte[]? FileInfo;
+ public byte[]? FileInfo { get; set; }
#endif
}
}
diff --git a/SFFS/Header.cs b/SFFS/Header.cs
index 4675ffe..66ada37 100644
--- a/SFFS/Header.cs
+++ b/SFFS/Header.cs
@@ -12,18 +12,18 @@ namespace SabreTools.Models.SFFS
///
/// "SFFS"
///
- public uint Magic;
+ public uint Magic { get; set; }
///
/// Version (0x00000001)
///
- public uint Version;
+ public uint Version { get; set; }
///
/// Number of files in the container (encrypted with application key).
/// Minimal number here is usually 65h, so its not real file count
/// in some cases, more like index size
///
- public ulong FileCount;
+ public ulong FileCount { get; set; }
}
}
diff --git a/SGA/DirectoryHeader.cs b/SGA/DirectoryHeader.cs
index eb8bead..59614ac 100644
--- a/SGA/DirectoryHeader.cs
+++ b/SGA/DirectoryHeader.cs
@@ -3,36 +3,36 @@ namespace SabreTools.Models.SGA
///
public abstract class DirectoryHeader
{
- public uint SectionOffset;
+ public uint SectionOffset { get; set; }
#if NET48
- public T SectionCount;
+ public T SectionCount { get; set; }
#else
- public T? SectionCount;
+ public T? SectionCount { get; set; }
#endif
- public uint FolderOffset;
+ public uint FolderOffset { get; set; }
#if NET48
- public T FolderCount;
+ public T FolderCount { get; set; }
#else
- public T? FolderCount;
+ public T? FolderCount { get; set; }
#endif
- public uint FileOffset;
+ public uint FileOffset { get; set; }
#if NET48
- public T FileCount;
+ public T FileCount { get; set; }
#else
- public T? FileCount;
+ public T? FileCount { get; set; }
#endif
- public uint StringTableOffset;
+ public uint StringTableOffset { get; set; }
#if NET48
- public T StringTableCount;
+ public T StringTableCount { get; set; }
#else
- public T? StringTableCount;
+ public T? StringTableCount { get; set; }
#endif
}
}
diff --git a/SGA/DirectoryHeader7.cs b/SGA/DirectoryHeader7.cs
index 80c6982..c34689e 100644
--- a/SGA/DirectoryHeader7.cs
+++ b/SGA/DirectoryHeader7.cs
@@ -3,8 +3,8 @@ namespace SabreTools.Models.SGA
///
public sealed class DirectoryHeader7 : DirectoryHeader5
{
- public uint HashTableOffset;
+ public uint HashTableOffset { get; set; }
- public uint BlockSize;
+ public uint BlockSize { get; set; }
}
}
diff --git a/SGA/File4.cs b/SGA/File4.cs
index ecc9a1e..7390afb 100644
--- a/SGA/File4.cs
+++ b/SGA/File4.cs
@@ -3,24 +3,24 @@ namespace SabreTools.Models.SGA
///
public class File4
{
- public uint NameOffset;
+ public uint NameOffset { get; set; }
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
- public uint Offset;
+ public uint Offset { get; set; }
- public uint SizeOnDisk;
+ public uint SizeOnDisk { get; set; }
- public uint Size;
+ public uint Size { get; set; }
- public uint TimeModified;
+ public uint TimeModified { get; set; }
- public byte Dummy0;
+ public byte Dummy0 { get; set; }
- public byte Type;
+ public byte Type { get; set; }
}
}
diff --git a/SGA/File6.cs b/SGA/File6.cs
index 7b3d6a0..a19bda3 100644
--- a/SGA/File6.cs
+++ b/SGA/File6.cs
@@ -3,6 +3,6 @@ namespace SabreTools.Models.SGA
///
public class File6 : File4
{
- public uint CRC32;
+ public uint CRC32 { get; set; }
}
}
diff --git a/SGA/File7.cs b/SGA/File7.cs
index 933b5c3..1080893 100644
--- a/SGA/File7.cs
+++ b/SGA/File7.cs
@@ -3,6 +3,6 @@ namespace SabreTools.Models.SGA
///
public sealed class File7 : File6
{
- public uint HashOffset;
+ public uint HashOffset { get; set; }
}
}
diff --git a/SGA/FileHeader.cs b/SGA/FileHeader.cs
index 115c6a8..bbcbcb8 100644
--- a/SGA/FileHeader.cs
+++ b/SGA/FileHeader.cs
@@ -4,11 +4,11 @@ namespace SabreTools.Models.SGA
public sealed class FileHeader
{
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
- public uint CRC32;
+ public uint CRC32 { get; set; }
}
}
diff --git a/SGA/Folder.cs b/SGA/Folder.cs
index a5b63da..f60a8d7 100644
--- a/SGA/Folder.cs
+++ b/SGA/Folder.cs
@@ -3,36 +3,36 @@ namespace SabreTools.Models.SGA
///
public abstract class Folder
{
- public uint NameOffset;
+ public uint NameOffset { get; set; }
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
#if NET48
- public T FolderStartIndex;
+ public T FolderStartIndex { get; set; }
#else
- public T? FolderStartIndex;
+ public T? FolderStartIndex { get; set; }
#endif
#if NET48
- public T FolderEndIndex;
+ public T FolderEndIndex { get; set; }
#else
- public T? FolderEndIndex;
+ public T? FolderEndIndex { get; set; }
#endif
#if NET48
- public T FileStartIndex;
+ public T FileStartIndex { get; set; }
#else
- public T? FileStartIndex;
+ public T? FileStartIndex { get; set; }
#endif
#if NET48
- public T FileEndIndex;
+ public T FileEndIndex { get; set; }
#else
- public T? FileEndIndex;
+ public T? FileEndIndex { get; set; }
#endif
}
}
diff --git a/SGA/Header.cs b/SGA/Header.cs
index 9264b98..145c0d0 100644
--- a/SGA/Header.cs
+++ b/SGA/Header.cs
@@ -4,13 +4,13 @@ namespace SabreTools.Models.SGA
public abstract class Header
{
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
- public ushort MajorVersion;
+ public ushort MajorVersion { get; set; }
- public ushort MinorVersion;
+ public ushort MinorVersion { get; set; }
}
}
diff --git a/SGA/Header4.cs b/SGA/Header4.cs
index 474d0c5..8be0401 100644
--- a/SGA/Header4.cs
+++ b/SGA/Header4.cs
@@ -4,27 +4,27 @@ namespace SabreTools.Models.SGA
public sealed class Header4 : Header
{
#if NET48
- public byte[] FileMD5;
+ public byte[] FileMD5 { get; set; }
#else
- public byte[]? FileMD5;
+ public byte[]? FileMD5 { get; set; }
#endif
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
#if NET48
- public byte[] HeaderMD5;
+ public byte[] HeaderMD5 { get; set; }
#else
- public byte[]? HeaderMD5;
+ public byte[]? HeaderMD5 { get; set; }
#endif
- public uint HeaderLength;
+ public uint HeaderLength { get; set; }
- public uint FileDataOffset;
+ public uint FileDataOffset { get; set; }
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
}
}
diff --git a/SGA/Header6.cs b/SGA/Header6.cs
index 5277677..1dd594d 100644
--- a/SGA/Header6.cs
+++ b/SGA/Header6.cs
@@ -4,15 +4,15 @@ namespace SabreTools.Models.SGA
public sealed class Header6 : Header
{
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
- public uint HeaderLength;
+ public uint HeaderLength { get; set; }
- public uint FileDataOffset;
+ public uint FileDataOffset { get; set; }
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
}
}
diff --git a/SGA/Section.cs b/SGA/Section.cs
index 3856702..80c3e28 100644
--- a/SGA/Section.cs
+++ b/SGA/Section.cs
@@ -4,45 +4,45 @@ namespace SabreTools.Models.SGA
public abstract class Section
{
#if NET48
- public string Alias;
+ public string Alias { get; set; }
#else
- public string? Alias;
+ public string? Alias { get; set; }
#endif
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
#if NET48
- public T FolderStartIndex;
+ public T FolderStartIndex { get; set; }
#else
- public T? FolderStartIndex;
+ public T? FolderStartIndex { get; set; }
#endif
#if NET48
- public T FolderEndIndex;
+ public T FolderEndIndex { get; set; }
#else
- public T? FolderEndIndex;
+ public T? FolderEndIndex { get; set; }
#endif
#if NET48
- public T FileStartIndex;
+ public T FileStartIndex { get; set; }
#else
- public T? FileStartIndex;
+ public T? FileStartIndex { get; set; }
#endif
#if NET48
- public T FileEndIndex;
+ public T FileEndIndex { get; set; }
#else
- public T? FileEndIndex;
+ public T? FileEndIndex { get; set; }
#endif
#if NET48
- public T FolderRootIndex;
+ public T FolderRootIndex { get; set; }
#else
- public T? FolderRootIndex;
+ public T? FolderRootIndex { get; set; }
#endif
}
}
diff --git a/TAR/Header.cs b/TAR/Header.cs
index 377fcbe..e8256a7 100644
--- a/TAR/Header.cs
+++ b/TAR/Header.cs
@@ -6,116 +6,116 @@ namespace SabreTools.Models.TAR
/// File name
///
#if NET48
- public string FileName;
+ public string FileName { get; set; }
#else
- public string? FileName;
+ public string? FileName { get; set; }
#endif
///
/// File mode
///
- public Mode Mode;
+ public Mode Mode { get; set; }
///
/// Owner's numeric user ID
///
- public uint UID;
+ public uint UID { get; set; }
///
/// Owner's numeric user ID
///
- public uint GID;
+ public uint GID { get; set; }
///
/// File size in bytes
///
- public ulong Size;
+ public ulong Size { get; set; }
///
/// Last modification time in numeric Unix time format
///
- public ulong ModifiedTime;
+ public ulong ModifiedTime { get; set; }
///
/// Checksum for header record
///
- public ushort Checksum;
+ public ushort Checksum { get; set; }
///
/// Link indicator (file type) / Type flag
///
- public TypeFlag TypeFlag;
+ public TypeFlag TypeFlag { get; set; }
///
/// Name of linked file
///
#if NET48
- public string LinkName;
+ public string LinkName { get; set; }
#else
- public string? LinkName;
+ public string? LinkName { get; set; }
#endif
///
/// UStar indicator, "ustar", then NUL
///
#if NET48
- public string Magic;
+ public string Magic { get; set; }
#else
- public string? Magic;
+ public string? Magic { get; set; }
#endif
///
/// UStar version, "00"
///
#if NET48
- public string Version;
+ public string Version { get; set; }
#else
- public string? Version;
+ public string? Version { get; set; }
#endif
///
/// Owner user name
///
#if NET48
- public string UserName;
+ public string UserName { get; set; }
#else
- public string? UserName;
+ public string? UserName { get; set; }
#endif
///
/// Owner group name
///
#if NET48
- public string GroupName;
+ public string GroupName { get; set; }
#else
- public string? GroupName;
+ public string? GroupName { get; set; }
#endif
///
/// Device major number
///
#if NET48
- public string DevMajor;
+ public string DevMajor { get; set; }
#else
- public string? DevMajor;
+ public string? DevMajor { get; set; }
#endif
///
/// Device minor number
///
#if NET48
- public string DevMinor;
+ public string DevMinor { get; set; }
#else
- public string? DevMinor;
+ public string? DevMinor { get; set; }
#endif
///
/// Filename prefix
///
#if NET48
- public string Prefix;
+ public string Prefix { get; set; }
#else
- public string? Prefix;
+ public string? Prefix { get; set; }
#endif
}
}
\ No newline at end of file
diff --git a/VBSP/Header.cs b/VBSP/Header.cs
index bd395a6..3031122 100644
--- a/VBSP/Header.cs
+++ b/VBSP/Header.cs
@@ -7,9 +7,9 @@ namespace SabreTools.Models.VBSP
/// BSP file signature.
///
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
///
@@ -20,20 +20,20 @@ namespace SabreTools.Models.VBSP
/// 21: Source - The lump version property was moved to the start of the struct.
/// 0x00040014: Dark Messiah - Looks like the 32 bit version has been split into two 16 bit fields.
///
- public int Version;
+ public int Version { get; set; }
///
/// Lumps.
///
#if NET48
- public Lump[] Lumps;
+ public Lump[] Lumps { get; set; }
#else
- public Lump?[]? Lumps;
+ public Lump?[]? Lumps { get; set; }
#endif
///
/// The map's revision (iteration, version) number.
///
- public int MapRevision;
+ public int MapRevision { get; set; }
}
}
diff --git a/VBSP/Lump.cs b/VBSP/Lump.cs
index e8bf537..deb250c 100644
--- a/VBSP/Lump.cs
+++ b/VBSP/Lump.cs
@@ -3,22 +3,22 @@ namespace SabreTools.Models.VBSP
///
public sealed class Lump
{
- public uint Offset;
+ public uint Offset { get; set; }
- public uint Length;
+ public uint Length { get; set; }
///
/// Default to zero.
///
- public uint Version;
+ public uint Version { get; set; }
///
/// Default to (char)0, (char)0, (char)0, (char)0.
///
#if NET48
- public char[] FourCC;
+ public char[] FourCC { get; set; }
#else
- public char[]? FourCC;
+ public char[]? FourCC { get; set; }
#endif
}
}
diff --git a/VBSP/LumpHeader.cs b/VBSP/LumpHeader.cs
index 698d537..b235e33 100644
--- a/VBSP/LumpHeader.cs
+++ b/VBSP/LumpHeader.cs
@@ -3,14 +3,14 @@ namespace SabreTools.Models.VBSP
///
public sealed class LumpHeader
{
- public int LumpOffset;
+ public int LumpOffset { get; set; }
- public int LumpID;
+ public int LumpID { get; set; }
- public int LumpVersion;
+ public int LumpVersion { get; set; }
- public int LumpLength;
+ public int LumpLength { get; set; }
- public int MapRevision;
+ public int MapRevision { get; set; }
}
}
diff --git a/VPK/ArchiveHash.cs b/VPK/ArchiveHash.cs
index 981d86c..3b11c8e 100644
--- a/VPK/ArchiveHash.cs
+++ b/VPK/ArchiveHash.cs
@@ -3,19 +3,19 @@ namespace SabreTools.Models.VPK
///
public sealed class ArchiveHash
{
- public uint ArchiveIndex;
+ public uint ArchiveIndex { get; set; }
- public uint ArchiveOffset;
+ public uint ArchiveOffset { get; set; }
- public uint Length;
+ public uint Length { get; set; }
///
/// MD5
///
#if NET48
- public byte[] Hash;
+ public byte[] Hash { get; set; }
#else
- public byte[]? Hash;
+ public byte[]? Hash { get; set; }
#endif
}
}
diff --git a/VPK/DirectoryEntry.cs b/VPK/DirectoryEntry.cs
index b5a1cb8..f2b9949 100644
--- a/VPK/DirectoryEntry.cs
+++ b/VPK/DirectoryEntry.cs
@@ -3,19 +3,19 @@ namespace SabreTools.Models.VPK
///
public sealed class DirectoryEntry
{
- public uint CRC;
+ public uint CRC { get; set; }
- public ushort PreloadBytes;
+ public ushort PreloadBytes { get; set; }
- public ushort ArchiveIndex;
+ public ushort ArchiveIndex { get; set; }
- public uint EntryOffset;
+ public uint EntryOffset { get; set; }
- public uint EntryLength;
+ public uint EntryLength { get; set; }
///
/// Always 0xffff.
///
- public ushort Dummy0;
+ public ushort Dummy0 { get; set; }
}
}
diff --git a/VPK/DirectoryItem.cs b/VPK/DirectoryItem.cs
index e9b889e..cf46d98 100644
--- a/VPK/DirectoryItem.cs
+++ b/VPK/DirectoryItem.cs
@@ -4,33 +4,33 @@ namespace SabreTools.Models.VPK
public sealed class DirectoryItem
{
#if NET48
- public string Extension;
+ public string Extension { get; set; }
#else
- public string? Extension;
+ public string? Extension { get; set; }
#endif
#if NET48
- public string Path;
+ public string Path { get; set; }
#else
- public string? Path;
+ public string? Path { get; set; }
#endif
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
#if NET48
- public DirectoryEntry DirectoryEntry;
+ public DirectoryEntry DirectoryEntry { get; set; }
#else
- public DirectoryEntry? DirectoryEntry;
+ public DirectoryEntry? DirectoryEntry { get; set; }
#endif
#if NET48
- public byte[] PreloadData;
+ public byte[] PreloadData { get; set; }
#else
- public byte[]? PreloadData;
+ public byte[]? PreloadData { get; set; }
#endif
}
}
diff --git a/VPK/ExtendedHeader.cs b/VPK/ExtendedHeader.cs
index 2c514fb..4590d44 100644
--- a/VPK/ExtendedHeader.cs
+++ b/VPK/ExtendedHeader.cs
@@ -9,21 +9,21 @@ namespace SabreTools.Models.VPK
///
/// Reserved
///
- public uint Dummy0;
+ public uint Dummy0 { get; set; }
///
/// Archive hash length
///
- public uint ArchiveHashLength;
+ public uint ArchiveHashLength { get; set; }
///
/// Looks like some more MD5 hashes.
///
- public uint ExtraLength;
+ public uint ExtraLength { get; set; }
///
/// Reserved
///
- public uint Dummy1;
+ public uint Dummy1 { get; set; }
}
}
diff --git a/VPK/Header.cs b/VPK/Header.cs
index 4f31cf5..f166e0e 100644
--- a/VPK/Header.cs
+++ b/VPK/Header.cs
@@ -6,10 +6,10 @@ namespace SabreTools.Models.VPK
///
/// Always 0x55aa1234.
///
- public uint Signature;
+ public uint Signature { get; set; }
- public uint Version;
+ public uint Version { get; set; }
- public uint DirectoryLength;
+ public uint DirectoryLength { get; set; }
}
}
diff --git a/WAD/Header.cs b/WAD/Header.cs
index 9f4655a..6217298 100644
--- a/WAD/Header.cs
+++ b/WAD/Header.cs
@@ -4,13 +4,13 @@ namespace SabreTools.Models.WAD
public sealed class Header
{
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
- public uint LumpCount;
+ public uint LumpCount { get; set; }
- public uint LumpOffset;
+ public uint LumpOffset { get; set; }
}
}
diff --git a/WAD/Lump.cs b/WAD/Lump.cs
index 28114e8..8bad1e6 100644
--- a/WAD/Lump.cs
+++ b/WAD/Lump.cs
@@ -3,24 +3,24 @@ namespace SabreTools.Models.WAD
///
public sealed class Lump
{
- public uint Offset;
+ public uint Offset { get; set; }
- public uint DiskLength;
+ public uint DiskLength { get; set; }
- public uint Length;
+ public uint Length { get; set; }
- public byte Type;
+ public byte Type { get; set; }
- public byte Compression;
+ public byte Compression { get; set; }
- public byte Padding0;
+ public byte Padding0 { get; set; }
- public byte Padding1;
+ public byte Padding1 { get; set; }
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
}
}
diff --git a/WAD/LumpInfo.cs b/WAD/LumpInfo.cs
index cb5a47a..b62f093 100644
--- a/WAD/LumpInfo.cs
+++ b/WAD/LumpInfo.cs
@@ -4,31 +4,31 @@ namespace SabreTools.Models.WAD
public sealed class LumpInfo
{
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
- public uint Width;
+ public uint Width { get; set; }
- public uint Height;
+ public uint Height { get; set; }
- public uint PixelOffset;
+ public uint PixelOffset { get; set; }
// 12 bytes of unknown data
#if NET48
- public byte[] PixelData;
+ public byte[] PixelData { get; set; }
#else
- public byte[]? PixelData;
+ public byte[]? PixelData { get; set; }
#endif
- public uint PaletteSize;
+ public uint PaletteSize { get; set; }
#if NET48
- public byte[] PaletteData;
+ public byte[] PaletteData { get; set; }
#else
- public byte[]? PaletteData;
+ public byte[]? PaletteData { get; set; }
#endif
}
}
diff --git a/XZP/DirectoryEntry.cs b/XZP/DirectoryEntry.cs
index 7cd8af7..4066a36 100644
--- a/XZP/DirectoryEntry.cs
+++ b/XZP/DirectoryEntry.cs
@@ -3,10 +3,10 @@ namespace SabreTools.Models.XZP
///
public sealed class DirectoryEntry
{
- public uint FileNameCRC;
+ public uint FileNameCRC { get; set; }
- public uint EntryLength;
+ public uint EntryLength { get; set; }
- public uint EntryOffset;
+ public uint EntryOffset { get; set; }
}
}
diff --git a/XZP/DirectoryItem.cs b/XZP/DirectoryItem.cs
index 78985cc..d2aa181 100644
--- a/XZP/DirectoryItem.cs
+++ b/XZP/DirectoryItem.cs
@@ -3,16 +3,16 @@ namespace SabreTools.Models.XZP
///
public sealed class DirectoryItem
{
- public uint FileNameCRC;
+ public uint FileNameCRC { get; set; }
- public uint NameOffset;
+ public uint NameOffset { get; set; }
#if NET48
- public string Name;
+ public string Name { get; set; }
#else
- public string? Name;
+ public string? Name { get; set; }
#endif
- public uint TimeCreated;
+ public uint TimeCreated { get; set; }
}
}
diff --git a/XZP/DirectoryMapping.cs b/XZP/DirectoryMapping.cs
index abe4f4f..d4657f9 100644
--- a/XZP/DirectoryMapping.cs
+++ b/XZP/DirectoryMapping.cs
@@ -3,6 +3,6 @@ namespace SabreTools.Models.XZP
///
public sealed class DirectoryMapping
{
- public ushort PreloadDirectoryEntryIndex;
+ public ushort PreloadDirectoryEntryIndex { get; set; }
}
}
diff --git a/XZP/Footer.cs b/XZP/Footer.cs
index 50fb701..aef8ac5 100644
--- a/XZP/Footer.cs
+++ b/XZP/Footer.cs
@@ -3,12 +3,12 @@ namespace SabreTools.Models.XZP
///
public sealed class Footer
{
- public uint FileLength;
+ public uint FileLength { get; set; }
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
}
}
diff --git a/XZP/Header.cs b/XZP/Header.cs
index 3aac969..c364278 100644
--- a/XZP/Header.cs
+++ b/XZP/Header.cs
@@ -4,25 +4,25 @@ namespace SabreTools.Models.XZP
public sealed class Header
{
#if NET48
- public string Signature;
+ public string Signature { get; set; }
#else
- public string? Signature;
+ public string? Signature { get; set; }
#endif
- public uint Version;
+ public uint Version { get; set; }
- public uint PreloadDirectoryEntryCount;
+ public uint PreloadDirectoryEntryCount { get; set; }
- public uint DirectoryEntryCount;
+ public uint DirectoryEntryCount { get; set; }
- public uint PreloadBytes;
+ public uint PreloadBytes { get; set; }
- public uint HeaderLength;
+ public uint HeaderLength { get; set; }
- public uint DirectoryItemCount;
+ public uint DirectoryItemCount { get; set; }
- public uint DirectoryItemOffset;
+ public uint DirectoryItemOffset { get; set; }
- public uint DirectoryItemLength;
+ public uint DirectoryItemLength { get; set; }
}
}