Add and use PE constants

This commit is contained in:
Matt Nadareski
2022-12-28 15:09:31 -08:00
parent 66b562f24b
commit 5ccb9d16a8
7 changed files with 51 additions and 62 deletions

View File

@@ -0,0 +1,11 @@
namespace BurnOutSharp.Models.PortableExecutable
{
public static class Constants
{
public static readonly byte[] SignatureBytes = new byte[] { 0x50, 0x45, 0x00, 0x00 };
public const string SignatureString = "PE\0\0";
public const uint SignatureUInt32 = 0x00004550;
}
}

View File

@@ -19,7 +19,7 @@ namespace BurnOutSharp.Models.PortableExecutable
/// signature that identifies the file as a PE format image file. This signature is "PE\0\0"
/// (the letters "P" and "E" followed by two null bytes).
/// </summary>
public byte[] Signature { get; set; }
public string Signature { get; set; }
/// <summary>
/// COFF file header