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 
25 {
26 public:
32  QuotedPrintableOutputStream(IDataSourceStream* stream, size_t resultSize = 512)
33  : StreamTransformer(stream, resultSize, resultSize / 2)
34 
35  {
36  }
37 
38 protected:
39  size_t transform(const uint8_t* source, size_t sourceLength, uint8_t* target, size_t targetLength) override;
40 };
41 
Base class for data source stream.
Definition: DataSourceStream.h:39
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.
Quoted-Printable Stream.
Definition: QuotedPrintableOutputStream.h:24
QuotedPrintableOutputStream(IDataSourceStream *stream, size_t resultSize=512)
Stream that transforms bytes of data into quoted printable data stream.
Definition: QuotedPrintableOutputStream.h:32