DataSourceStream.h
Go to the documentation of this file.
int length()
Return the total length of the stream.
Definition: DataSourceStream.h:131
virtual uint16_t readMemoryBlock(char *data, int bufSize)=0
Read a block of memory.
virtual bool isValid() const
Determine if the stream object contains valid data.
Definition: DataSourceStream.h:55
virtual bool seek(int len)
Move read cursor.
Definition: DataSourceStream.h:96
virtual int seekFrom(int offset, unsigned origin)
Change position in stream.
Definition: DataSourceStream.h:87
virtual String getName() const
Returns name of the resource.
Definition: DataSourceStream.h:157
String readString()
virtual StreamType getStreamType() const
Get the stream type.
Definition: DataSourceStream.h:45
virtual String id() const
Returns unique id of the resource.
Definition: DataSourceStream.h:147
size_t write(uint8_t charToWrite) override
From Stream class: We don't write using this stream.
Definition: DataSourceStream.h:119
virtual int available()
Return the total length of the stream.
Definition: DataSourceStream.h:110