mirror of
https://github.com/SabreTools/SabreTools.Models.git
synced 2026-09-23 07:06:17 +00:00
Ensure explicit getters and setters
This commit is contained in:
@@ -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.
|
||||
/// </summary>
|
||||
public uint VirtualSize;
|
||||
public uint VirtualSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public uint VirtualAddress;
|
||||
public uint VirtualAddress { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public uint SizeOfRawData;
|
||||
public uint SizeOfRawData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public uint PointerToRawData;
|
||||
public uint PointerToRawData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public uint PointerToRelocations;
|
||||
public uint PointerToRelocations { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
public uint PointerToLinenumbers;
|
||||
public uint PointerToLinenumbers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of relocation entries for the section. This is set to zero for
|
||||
/// executable images.
|
||||
/// </summary>
|
||||
public ushort NumberOfRelocations;
|
||||
public ushort NumberOfRelocations { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of line-number entries for the section. This value should be zero
|
||||
/// for an image because COFF debugging information is deprecated.
|
||||
/// </summary>
|
||||
public ushort NumberOfLinenumbers;
|
||||
public ushort NumberOfLinenumbers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The flags that describe the characteristics of the section.
|
||||
/// </summary>
|
||||
public SectionFlags Characteristics;
|
||||
public SectionFlags Characteristics { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// COFF Relocations (Object Only)
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public COFFRelocation[] COFFRelocations;
|
||||
public COFFRelocation[] COFFRelocations { get; set; }
|
||||
#else
|
||||
public COFFRelocation?[]? COFFRelocations;
|
||||
public COFFRelocation?[]? COFFRelocations { get; set; }
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// COFF Line Numbers (Deprecated)
|
||||
/// </summary>
|
||||
#if NET48
|
||||
public COFFLineNumber[] COFFLineNumbers;
|
||||
public COFFLineNumber[] COFFLineNumbers { get; set; }
|
||||
#else
|
||||
public COFFLineNumber?[]? COFFLineNumbers;
|
||||
public COFFLineNumber?[]? COFFLineNumbers { get; set; }
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user