mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-04-19 03:40:12 +02:00
new ringstream peek inline
This commit is contained in:
parent
8916d1415f
commit
ddc0c5ac3c
@ -48,6 +48,9 @@ class RingStream : public Print {
|
|||||||
void flush();
|
void flush();
|
||||||
void info();
|
void info();
|
||||||
byte readRawByte();
|
byte readRawByte();
|
||||||
|
inline byte peek() {
|
||||||
|
return _buffer[_pos_read];
|
||||||
|
};
|
||||||
private:
|
private:
|
||||||
int _len;
|
int _len;
|
||||||
int _pos_write;
|
int _pos_write;
|
||||||
|
Loading…
Reference in New Issue
Block a user