summaryrefslogtreecommitdiff
path: root/VirtualFileSystem/NullDevice.h
blob: 98b309f4d4bf4d206e83a5c2f3ca4884a0c2f4c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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;
};