mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
![Andreas Kling](/assets/img/avatar_default.png)
This allows me to keep prototyping things on a random desktop machine, even if that machine has its own ideas about foo_t types.
14 lines
303 B
C++
14 lines
303 B
C++
#pragma once
|
|
|
|
#include "CharacterDevice.h"
|
|
|
|
class NullDevice final : public CharacterDevice {
|
|
public:
|
|
NullDevice();
|
|
virtual ~NullDevice();
|
|
|
|
Unix::ssize_t read(byte* buffer, Unix::size_t bufferSize) override;
|
|
Unix::ssize_t write(const byte* buffer, Unix::size_t bufferSize) override;
|
|
};
|
|
|