#nullable enable
using System.IO;
namespace IPA.AntiMalware
{
///
/// An Anti-Malware engine that can be used to scan and detect potentially harmful files.
///
public interface IAntiMalware
{
///
/// Scans a particular file for malware.
///
/// The file to scan.
/// A indicating whether the file is safe or not.
ScanResult ScanFile(FileInfo file);
///
/// Scans a particular in-memory blob for malware.
///
/// The binary blob to scan.
/// The name of the content. If this is left , one will be automatically generated.
/// A indicating whether the file is safe or not.
ScanResult ScanData(byte[] data, string? contentName = null);
}
}