StreamTransformer.h
Go to the documentation of this file.
24 : sourceStream(stream), result(new uint8_t[resultSize]), resultSize(resultSize), blockSize(blockSize)
87 virtual size_t transform(const uint8_t* in, size_t inLength, uint8_t* out, size_t outLength) = 0;
StreamTransformer(IDataSourceStream *stream, size_t resultSize=256, size_t blockSize=64)
Definition: StreamTransformer.h:23
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
virtual bool isValid() const
Determine if the stream object contains valid data.
Definition: DataSourceStream.h:61
Class that can be used to transform streams of data on the fly.
Definition: StreamTransformer.h:20
virtual void restoreState()
A method that restores the last backed up state.
Definition: StreamTransformer.h:75
String getName() const override
Returns name of the resource.
Definition: StreamTransformer.h:61
virtual String getName() const
Returns name of the resource.
Definition: DataSourceStream.h:156
bool isValid() const
Determine if the stream object contains valid data.
Definition: StreamTransformer.h:50
StreamType getStreamType() const override
Get the stream type.
Definition: StreamTransformer.h:36
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.
virtual StreamType getStreamType() const
Get the stream type.
Definition: DataSourceStream.h:51
int available() override
Return the total length of the stream.
Definition: StreamTransformer.h:45
virtual void saveState()
A method that backs up the current state.
Definition: StreamTransformer.h:70
1.8.13