QuotedPrintableOutputStream.h
Go to the documentation of this file.
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 #pragma once
14 
15 #include "../StreamTransformer.h"
16 
22 {
23 public:
28  QuotedPrintableOutputStream(IDataSourceStream* stream, size_t resultSize = 512)
29  : StreamTransformer(stream, resultSize, resultSize / 2)
30 
31  {
32  }
33 
34 protected:
35  size_t transform(const uint8_t* source, size_t sourceLength, uint8_t* target, size_t targetLength) override;
36 };
Base class for read-only stream.
Definition: DataSourceStream.h:40
Definition: StreamTransformer.h:30
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.
Read-only stream that transforms bytes of data into quoted printable data stream. ...
Definition: QuotedPrintableOutputStream.h:21
QuotedPrintableOutputStream(IDataSourceStream *stream, size_t resultSize=512)
Definition: QuotedPrintableOutputStream.h:28