ladybird/VirtualFileSystem/RandomDevice.h

15 lines
393 B
C
Raw Normal View History

2018-10-15 00:44:54 +02:00
#pragma once
#include "CharacterDevice.h"
class RandomDevice final : public CharacterDevice {
public:
RandomDevice();
virtual ~RandomDevice() override;
2018-10-15 00:44:54 +02:00
virtual Unix::ssize_t read(byte* buffer, Unix::size_t bufferSize) override;
virtual Unix::ssize_t write(const byte* buffer, Unix::size_t bufferSize) override;
virtual bool hasDataAvailableForRead() const override;
2018-10-15 00:44:54 +02:00
};