port from perforce
This commit is contained in:
27
aiwaz/Aiwaz.Contracts/IFileSystem.cs
Normal file
27
aiwaz/Aiwaz.Contracts/IFileSystem.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace Aiwaz.Contracts
|
||||
{
|
||||
public interface IFile
|
||||
{
|
||||
byte[] Buffer { get; }
|
||||
uint BufferLength { get; }
|
||||
long BufferPosition { get; set; }
|
||||
string FileName { get; }
|
||||
bool Eof { get; }
|
||||
|
||||
string ReadString();
|
||||
float ReadFloat();
|
||||
int ReadInt();
|
||||
byte[] ReadDataArray(uint argBytes);
|
||||
|
||||
void Rewind();
|
||||
void SaveAs(string argFileName);
|
||||
};
|
||||
|
||||
public interface IFileSystem
|
||||
{
|
||||
void InitializeFromDirectory(string argDirectory);
|
||||
void InitializeFromZipFile(string argZipFile);
|
||||
|
||||
IFile Open(string argFileName);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user