Go to the documentation of this file.
42 Stream(
const ObjectBase&
object,
bool flashread =
true) : object(object), flashread(flashread)
57 return object.length() - readPos;
66 return readPos >=
object.length();
Stream()
Definition: Wiring/Stream.h:40
Base class for read-only stream.
Definition: DataSourceStream.h:45
Base Stream class.
Definition: Wiring/Stream.h:32
bool isFinished() override
Check if all data has been read.
Definition: Stream.hpp:83
Definition: Array.hpp:107
StreamType
Data stream type.
Definition: DataSourceStream.h:25
Used when defining data structures.
Definition: ObjectBase.hpp:51
int available() override
Return the total length of the stream.
Definition: Stream.hpp:74
@ eSST_Memory
Memory stream.
Definition: DataSourceStream.h:27
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
SeekOrigin
Stream/file seek origins.
Definition: SeekOrigin.h:18
StreamType getStreamType() const override
Get the stream type.
Definition: Stream.hpp:65
int seekFrom(int offset, SeekOrigin origin) override
Change position in stream.