LimitedMemoryStream.h
Go to the documentation of this file.
LimitedMemoryStream(size_t length)
Definition: LimitedMemoryStream.h:26
StreamType getStreamType() const override
Get the stream type.
Definition: LimitedMemoryStream.h:36
int length()
Return the total length of the stream.
Definition: DataSourceStream.h:131
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
int available() override
Return the total length of the stream.
Definition: LimitedMemoryStream.h:45
size_t write(const uint8_t *buffer, size_t size) override
Write chars to stream.
bool isFinished() override
Check if all data has been read.
Definition: LimitedMemoryStream.h:62
Memory stream that stores limited number of bytes Once the limit is reached the stream will discard i...
Definition: LimitedMemoryStream.h:23