1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

SD File object implements Stream.

Added peak() and available() using a single byte buffer.
Added flush().
This commit is contained in:
David A. Mellis
2010-11-20 11:45:05 -05:00
parent 6788eea3b8
commit fcc4188b15
4 changed files with 39 additions and 12 deletions

View File

@ -28,6 +28,7 @@ class Stream : public Print
public:
virtual int available() = 0;
virtual int read() = 0;
virtual int peek() = 0;
virtual void flush() = 0;
};