Files
BinaryObjectScanner/BinaryObjectScanner.Interfaces/IExtractable.cs
2023-03-09 17:16:39 -05:00

30 lines
1.2 KiB
C#

using System.IO;
namespace BinaryObjectScanner.Interfaces
{
/// <summary>
/// Mark a file type as being able to be extracted
/// </summary>
/// TODO: Add debug flag to both of the declarations
public interface IExtractable
{
/// <summary>
/// Scan a file for all internal protections
/// </summary>
/// <param name="file">Path to the input file</param>
/// <param name="includeDebug">True to include debug data, false otherwise</param>
/// <returns>Path to extracted files, null on error</returns>
/// <remarks>Ideally, this should just point to the other extract implementation.</remarks>
string Extract(string file, bool includeDebug);
/// <summary>
/// Scan a stream for all internal protections
/// </summary>
/// <param name="stream">Stream representing the input file</param>
/// <param name="file">Path to the input file</param>
/// <param name="includeDebug">True to include debug data, false otherwise</param>
/// <returns>Path to extracted files, null on error</returns>
string Extract(Stream stream, string file, bool includeDebug);
}
}