Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Base class for data source stream. More...
#include <DataSourceStream.h>
Public Member Functions | |
virtual StreamType | getStreamType ()=0 |
Get the stream type. More... | |
virtual uint16_t | readMemoryBlock (char *data, int bufSize)=0 |
Read a block of memory. More... | |
virtual bool | seek (int len)=0 |
Move read cursor. More... | |
virtual bool | isFinished ()=0 |
Check if stream is finished. More... | |
Base class for data source stream.
|
pure virtual |
Get the stream type.
StreamType | The stream type. |
Implemented in JsonObjectStream, TemplateFileStream, FileStream, MemoryDataStream, and ArduCAMStream.
|
pure virtual |
Check if stream is finished.
bool | True on success. |
Implemented in FileStream, MemoryDataStream, and ArduCAMStream.
|
pure virtual |
Read a block of memory.
data | Pointer to the data to be read |
bufSize | Quantity of chars to read |
uint16_t | Quantity of chars read |
Implemented in JsonObjectStream, TemplateFileStream, FileStream, MemoryDataStream, and ArduCAMStream.
|
pure virtual |
Move read cursor.
len | Position within stream to move cursor to |
bool | True on success. |
Implemented in TemplateFileStream, FileStream, MemoryDataStream, and ArduCAMStream.