Cosmos/source/Cosmos.Kernel.FileSystems/FileSystem.cs
2008-03-23 13:41:11 +00:00

21 lines
No EOL
768 B
C#

using System;
using System.Collections.Generic;
namespace Cosmos.FileSystem {
public abstract class FileSystem {
protected readonly Hardware.BlockDevice mBackend;
protected FileSystem(Hardware.BlockDevice aBackend) {
if (aBackend == null) {
throw new ArgumentNullException("aBackend");
}
mBackend = aBackend;
}
public abstract ulong Read(string[] aFile, ulong aStart, ulong aCount, byte[] aBuffer);
public abstract ulong Write(string[] aFile, ulong aStart, ulong aCount, byte[] aBuffer);
public abstract void DeleteFile(string[] aFile);
public abstract void CreateFile(string[] aFile);
public abstract void MoveFile(string[] aSource, string[] aDest);
public abstract string[] GetDirContents(string[] aDir);
}
}