11 #ifndef _SMING_CORE_DATA_STREAM_ENDLESS_MEMORY_STREAM_H_ 12 #define _SMING_CORE_DATA_STREAM_ENDLESS_MEMORY_STREAM_H_ 14 #include "MemoryDataStream.h" 46 bool seek(
int len)
override;
53 size_t write(
const uint8_t* buffer,
size_t size)
override;
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
Definition: EndlessMemoryStream.h:41
Memory data stream.
Definition: DataSourceStream.h:24
bool seek(int len) override
Move read cursor.
StreamType getStreamType() const override
Get the stream type.
Definition: EndlessMemoryStream.h:36
StreamType
Data stream type.
Definition: DataSourceStream.h:22
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
bool isFinished() override
Check if all data has been read.
Definition: EndlessMemoryStream.h:55
Memory stream that stores unlimited number of bytes.
Definition: EndlessMemoryStream.h:28
size_t write(const uint8_t *buffer, size_t size) override
Write chars to stream.
Base class for read/write stream.
Definition: ReadWriteStream.h:23
Definition: MemoryDataStream.h:29