Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
QuotedPrintableOutputStream.h
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * QuotedPrintableOutputStream.h
8  *
9  * @author Slavey Karadzhov <slaff@attachix.com>
10  *
11  ****/
12 
13 #ifndef _SMING_CORE_DATA_STREAM_QUOTED_PRINTABLE_OUTPUT_STREAM_H_
14 #define _SMING_CORE_DATA_STREAM_QUOTED_PRINTABLE_OUTPUT_STREAM_H_
15 
16 #include "../StreamTransformer.h"
17 
26 {
27 public:
33  QuotedPrintableOutputStream(IDataSourceStream* stream, size_t resultSize = 512)
34  : StreamTransformer(stream, resultSize, resultSize / 2)
35 
36  {
37  }
38 
39 protected:
40  size_t transform(const uint8_t* source, size_t sourceLength, uint8_t* target, size_t targetLength) override;
41 };
42 
44 #endif /* _SMING_CORE_DATA_STREAM_QUOTED_PRINTABLE_OUTPUT_STREAM_H_ */
Base class for data source stream.
Definition: DataSourceStream.h:39
Definition: StreamTransformer.h:32
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.
Quoted-Printable Stream.
Definition: QuotedPrintableOutputStream.h:25
QuotedPrintableOutputStream(IDataSourceStream *stream, size_t resultSize=512)
Stream that transforms bytes of data into quoted printable data stream.
Definition: QuotedPrintableOutputStream.h:33