mirror of
https://github.com/justinian/jsix.git
synced 2025-12-11 08:54:31 -08:00
Separate read function into blocking and async portions
This commit is contained in:
10
src/kernel/block_device.h
Normal file
10
src/kernel/block_device.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
/// \file block_device.h
|
||||
/// Interface definition for block devices
|
||||
|
||||
/// Interface for block devices
|
||||
class block_device
|
||||
{
|
||||
public:
|
||||
virtual size_t read(size_t offset, size_t length, void *buffer) = 0;
|
||||
};
|
||||
Reference in New Issue
Block a user