mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
21 lines
No EOL
784 B
C#
21 lines
No EOL
784 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Cosmos.Kernel.FileSystems {
|
|
public abstract class BaseFileSystem {
|
|
protected readonly Hardware.BlockDevice mBackend;
|
|
protected BaseFileSystem(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);
|
|
}
|
|
} |