I'm a tabs guy. I like tabs, it's an elegant way to represent indentation instead of brute-forcing it. But I have to admit that the world seems to be going towards spaces, and tooling tends not to play nice with tabs. So here we go, changing the whole repo to spaces since I'm getting tired of all the inconsistent formatting.
12 lines
239 B
C++
12 lines
239 B
C++
#pragma once
|
|
/// \file block_device.h
|
|
/// Interface definition for block devices
|
|
#include <stddef.h>
|
|
|
|
/// Interface for block devices
|
|
class block_device
|
|
{
|
|
public:
|
|
virtual size_t read(size_t offset, size_t length, void *buffer) = 0;
|
|
};
|