blob: 295b35788c231206426ff3aabd85968b42e65ffe (
plain) (
blame)
1
2
3
4
5
|
pub(crate) const BLOCK_SIZE: usize = 4096;
pub(crate) trait BlockDevice {
fn read(&self, block_id: usize, buffer: &mut [u8]);
fn write(&self, block_id: usize, buffer: &[u8]);
}
|