Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
ChunkedStream.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  * ChunkedStream.h
8  *
9  * @author Slavey Karadzhov <slaff@attachix.com>
10  *
11  ****/
12 
13 #ifndef _SMING_CORE_DATA_STREAM_CHUNKED_STREAM_H_
14 #define _SMING_CORE_DATA_STREAM_CHUNKED_STREAM_H_
15 
16 #include "../StreamTransformer.h"
17 
26 {
27 public:
28  ChunkedStream(IDataSourceStream* stream, size_t resultSize = 512);
29 
30 protected:
31  size_t transform(const uint8_t* source, size_t sourceLength, uint8_t* target, size_t targetLength) override;
32 };
33 
35 #endif /* _SMING_CORE_DATA_STREAM_CHUNKED_STREAM_H_ */
Base class for data source stream.
Definition: DataSourceStream.h:39
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.
Data chunked stream class.
Definition: ChunkedStream.h:25
Definition: StreamTransformer.h:32