mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-11 10:41:33 +00:00
21 lines
448 B
C#
21 lines
448 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.Hardware {
|
|
public abstract class BlockDevice: Device {
|
|
protected BlockDevice() {
|
|
mType = DeviceType.Storage;
|
|
}
|
|
public abstract uint BlockSize {
|
|
get;
|
|
}
|
|
|
|
public abstract ulong BlockCount {
|
|
get;
|
|
}
|
|
|
|
public abstract byte[] ReadBlock(ulong aBlock);
|
|
public abstract void WriteBlock(ulong aBlock, byte[] aContents);
|
|
}
|
|
}
|