blob: a8fd8b75d12e3375a35b0a7523e6cd6258d918a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
/// Abstracts for block devices.
/// Currently only a mock memory disk.
pub mod memory_disk;
pub const BLOCK_SIZE: usize = 4096;
pub trait BlockDevice {
fn read(&self, block_id: usize, buffer: &mut [u8]);
fn write(&self, block_id: usize, buffer: &[u8]);
}
|