mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-22 06:45:03 +00:00
Add extractable interface (unused)
This commit is contained in:
26
BinaryObjectScanner.Interfaces/IExtractable.cs
Normal file
26
BinaryObjectScanner.Interfaces/IExtractable.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.IO;
|
||||
|
||||
namespace BinaryObjectScanner.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// Mark a file type as being able to be extracted
|
||||
/// </summary>
|
||||
public interface IExtractable
|
||||
{
|
||||
/// <summary>
|
||||
/// Scan a file for all internal protections
|
||||
/// </summary>
|
||||
/// <param name="file">Path to the input file</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);
|
||||
|
||||
/// <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>
|
||||
/// <returns>Path to extracted files, null on error</returns>
|
||||
string Extract(Stream stream, string file);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user