ChunkedStream.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  * ChunkedStream.h
8  *
9  * @author Slavey Karadzhov <slaff@attachix.com>
10  *
11  ****/
12 
13 #pragma once
14 
15 #include "../StreamTransformer.h"
16 
25 {
26 public:
27  ChunkedStream(IDataSourceStream* stream, size_t resultSize = 512);
28 
29 protected:
30  size_t transform(const uint8_t* source, size_t sourceLength, uint8_t* target, size_t targetLength) override;
31 };
32 
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:24
Definition: StreamTransformer.h:30
ChunkedStream(IDataSourceStream *stream, size_t resultSize=512)