mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 08:18:36 +03:00
Refactor PEFormat into smaller classes following Single Responsibility Principle
This commit is contained in:
18
X86Disassembler/PE/Parsers/IParser.cs
Normal file
18
X86Disassembler/PE/Parsers/IParser.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System.IO;
|
||||
|
||||
namespace X86Disassembler.PE.Parsers
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for PE format component parsers
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of component to parse</typeparam>
|
||||
public interface IParser<T>
|
||||
{
|
||||
/// <summary>
|
||||
/// Parse a component from the binary reader
|
||||
/// </summary>
|
||||
/// <param name="reader">The binary reader positioned at the start of the component</param>
|
||||
/// <returns>The parsed component</returns>
|
||||
T Parse(BinaryReader reader);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user