Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: drivers/Stream.h
- Revision:
- 160:d5399cc887bb
- Parent:
- 149:156823d33999
--- a/drivers/Stream.h Tue Feb 28 17:13:35 2017 +0000
+++ b/drivers/Stream.h Tue Mar 14 16:40:56 2017 +0000
@@ -18,6 +18,7 @@
#include "platform/platform.h"
#include "drivers/FileLike.h"
+#include "drivers/FileHandle.h"
#include <cstdarg>
namespace mbed {
@@ -53,10 +54,12 @@
virtual int close();
virtual ssize_t write(const void* buffer, size_t length);
virtual ssize_t read(void* buffer, size_t length);
- virtual off_t lseek(off_t offset, int whence);
+ virtual off_t seek(off_t offset, int whence);
+ virtual off_t tell();
+ virtual void rewind();
virtual int isatty();
- virtual int fsync();
- virtual off_t flen();
+ virtual int sync();
+ virtual size_t size();
virtual int _putc(int c) = 0;
virtual int _getc() = 0;
