13 #ifndef _SMING_CORE_DATA_STREAM_BASE64_OUTPUT_STREAM_H_ 14 #define _SMING_CORE_DATA_STREAM_BASE64_OUTPUT_STREAM_H_ 16 #include "../StreamTransformer.h" 17 #include "../Services/libb64/cencode.h" 36 size_t transform(
const uint8_t* source,
size_t sourceLength, uint8_t* target,
size_t targetLength)
override;
Base class for data source stream.
Definition: DataSourceStream.h:39
void restoreState() override
A method that restores the last backed up state.
Base64 Stream.
Definition: Base64OutputStream.h:26
void saveState() override
A method that backs up the current state.
Base64OutputStream(IDataSourceStream *stream, size_t resultSize=500)
Stream that transforms bytes of data into base64 data stream.
size_t transform(const uint8_t *source, size_t sourceLength, uint8_t *target, size_t targetLength) override
Inherited class implements this method to transform a block of data.