The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Revision:
138:093f2bd7b9eb
Parent:
128:9bcdf88f62b0
--- a/drivers/Stream.h	Tue Feb 28 16:44:21 2017 +0000
+++ b/drivers/Stream.h	Tue Mar 14 16:20:51 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;