2025-04-12 18:23:18 +03:00
|
|
|
namespace X86Disassembler.PE.Parsers;
|
2025-04-12 17:12:18 +03:00
|
|
|
|
2025-04-12 18:23:18 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Interface for PE format component parsers
|
|
|
|
/// </summary>
|
|
|
|
/// <typeparam name="T">The type of component to parse</typeparam>
|
|
|
|
public interface IParser<out T>
|
2025-04-12 17:12:18 +03:00
|
|
|
{
|
|
|
|
/// <summary>
|
2025-04-12 18:23:18 +03:00
|
|
|
/// Parse a component from the binary reader
|
2025-04-12 17:12:18 +03:00
|
|
|
/// </summary>
|
2025-04-12 18:23:18 +03:00
|
|
|
/// <param name="reader">The binary reader positioned at the start of the component</param>
|
|
|
|
/// <returns>The parsed component</returns>
|
|
|
|
T Parse(BinaryReader reader);
|
2025-04-12 17:12:18 +03:00
|
|
|
}
|