diff --git a/BurnOutSharp.Builder/LinearExecutable.cs b/BurnOutSharp.Builder/LinearExecutable.cs index a09780c4..3cc0ede3 100644 --- a/BurnOutSharp.Builder/LinearExecutable.cs +++ b/BurnOutSharp.Builder/LinearExecutable.cs @@ -42,6 +42,18 @@ namespace BurnOutSharp.Builder return null; } + /// + /// Parse a byte array into a Linear Executable information block + /// + /// Byte array to parse + /// Offset into the byte array + /// Filled information block on success, null on error + private static InformationBlock ParseInformationBlock(byte[] data, int offset) + { + // TODO: Implement LE/LX information block parsing + return null; + } + #endregion #region Stream Data @@ -71,6 +83,17 @@ namespace BurnOutSharp.Builder return null; } + /// + /// Parse a Stream into a Linear Executable information block + /// + /// Stream to parse + /// Filled executable header on success, null on error + private static InformationBlock ParseInformationBlock(Stream data) + { + // TODO: Implement LE/LX information block parsing + return null; + } + #endregion } } \ No newline at end of file diff --git a/BurnOutSharp.Builder/NewExecutable.cs b/BurnOutSharp.Builder/NewExecutable.cs index 59be7cac..456c1ca8 100644 --- a/BurnOutSharp.Builder/NewExecutable.cs +++ b/BurnOutSharp.Builder/NewExecutable.cs @@ -42,6 +42,18 @@ namespace BurnOutSharp.Builder return null; } + /// + /// Parse a byte array into a New Executable header + /// + /// Byte array to parse + /// Offset into the byte array + /// Filled executable header on success, null on error + private static ExecutableHeader ParseExecutableHeader(byte[] data, int offset) + { + // TODO: Implement NE header parsing + return null; + } + #endregion #region Stream Data @@ -71,6 +83,17 @@ namespace BurnOutSharp.Builder return null; } + /// + /// Parse a Stream into a New Executable header + /// + /// Stream to parse + /// Filled executable header on success, null on error + private static ExecutableHeader ParseExecutableHeader(Stream data) + { + // TODO: Implement NE header parsing + return null; + } + #endregion } } \ No newline at end of file diff --git a/BurnOutSharp.Builder/PortableExecutable.cs b/BurnOutSharp.Builder/PortableExecutable.cs index da55fc72..e7996d6e 100644 --- a/BurnOutSharp.Builder/PortableExecutable.cs +++ b/BurnOutSharp.Builder/PortableExecutable.cs @@ -42,6 +42,18 @@ namespace BurnOutSharp.Builder return null; } + /// + /// Parse a byte array into a Portable Executable COFF file header + /// + /// Byte array to parse + /// Offset into the byte array + /// Filled COFF file header on success, null on error + private static COFFFileHeader ParseCOFFFileHeader(byte[] data, int offset) + { + // TODO: Implement PE COFF file header parsing + return null; + } + #endregion #region Stream Data @@ -71,6 +83,17 @@ namespace BurnOutSharp.Builder return null; } + /// + /// Parse a Stream into a Portable Executable COFF file header + /// + /// Stream to parse + /// Filled executable header on success, null on error + private static COFFFileHeader ParseCOFFFileHeader(Stream data) + { + // TODO: Implement PE COFF file header parsing + return null; + } + #endregion } } \ No newline at end of file