mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
29 lines
No EOL
724 B
C#
29 lines
No EOL
724 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.FileSystem {
|
|
public class FilesystemEntry {
|
|
public ulong Id;
|
|
public string Name;
|
|
public bool IsDirectory;
|
|
public bool IsReadonly;
|
|
}
|
|
|
|
public abstract class Filesystem {
|
|
public abstract uint BlockSize {
|
|
get;
|
|
}
|
|
|
|
public abstract ulong RootId {
|
|
get;
|
|
}
|
|
|
|
public abstract FilesystemEntry[] GetDirectoryListing(ulong aId);
|
|
|
|
public abstract bool ReadBlock(ulong aId,
|
|
ulong aBlock,
|
|
byte[] aBuffer);
|
|
}
|
|
} |