StreamTransformer.h
Go to the documentation of this file.
83 virtual size_t transform(const uint8_t* in, size_t inLength, uint8_t* out, size_t outLength) = 0;
Class that can be used to transform streams of data on the fly.
Definition: StreamTransformer.h:22
bool isValid() const
Determine if the stream object contains valid data.
Definition: StreamTransformer.h:46
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
virtual void restoreState()
A method that restores the last backed up state.
Definition: StreamTransformer.h:71
int available() override
Return the total length of the stream.
Definition: StreamTransformer.h:41
virtual void saveState()
A method that backs up the current state.
Definition: StreamTransformer.h:66
String getName() const override
Returns name of the resource.
Definition: StreamTransformer.h:57
StreamType getStreamType() const override
Get the stream type.
Definition: StreamTransformer.h:32
StreamTransformer(IDataSourceStream *stream, size_t resultSize=256, size_t blockSize=64)
Definition: StreamTransformer.h:24
virtual size_t transform(const uint8_t *in, size_t inLength, uint8_t *out, size_t outLength)=0
Inherited class implements this method to transform a block of data.
static const String nullstr
A null string evaluates to false.
Definition: WString.h:148