mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
19 lines
553 B
C#
19 lines
553 B
C#
using AssetRipper.IO.Files.Streams.Smart;
|
|
|
|
namespace AssetRipper.IO.Files
|
|
{
|
|
public interface IScheme
|
|
{
|
|
/// <summary>
|
|
/// Checks if the file can be read by this scheme.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Implementations are expected to reset the <paramref name="stream"/> to its initial position.
|
|
/// </remarks>
|
|
/// <param name="stream">The stream for the file.</param>
|
|
/// <returns>True if the file can be read.</returns>
|
|
bool CanRead(SmartStream stream);
|
|
FileBase Read(SmartStream stream, string filePath, string fileName);
|
|
}
|
|
}
|