mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
16 lines
296 B
C
16 lines
296 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <AK/Types.h>
|
||
|
|
#include "Limits.h"
|
||
|
|
|
||
|
|
class CharacterDevice {
|
||
|
|
public:
|
||
|
|
virtual ~CharacterDevice();
|
||
|
|
|
||
|
|
virtual ssize_t read(byte* buffer, size_t bufferSize) = 0;
|
||
|
|
virtual ssize_t write(const byte* buffer, size_t bufferSize) = 0;
|
||
|
|
|
||
|
|
protected:
|
||
|
|
CharacterDevice() { }
|
||
|
|
};
|