mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-01 00:29:17 +00:00
26 lines
481 B
C++
26 lines
481 B
C++
#ifndef MACSERIALSTREAM_H_
|
|
#define MACSERIALSTREAM_H_
|
|
|
|
#include <Stream.h>
|
|
|
|
class MacSerialStream : public Stream
|
|
{
|
|
static const long kInputBufferSize = 4096;
|
|
static const long kReadBufferSize = 4096;
|
|
char inputBuffer[kInputBufferSize];
|
|
char readBuffer[kReadBufferSize];
|
|
|
|
short outRefNum, inRefNum;
|
|
public:
|
|
virtual void write(const void* p, size_t n) override;
|
|
|
|
void idle();
|
|
|
|
MacSerialStream();
|
|
~MacSerialStream();
|
|
|
|
void close();
|
|
};
|
|
|
|
#endif
|