mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Reorganized writer classes
This commit is contained in:
@@ -17,7 +17,7 @@ namespace ARDUINOJSON_NAMESPACE {
|
||||
template <typename TWriter>
|
||||
class TextFormatter {
|
||||
public:
|
||||
explicit TextFormatter(TWriter &writer) : _writer(writer), _length(0) {}
|
||||
explicit TextFormatter(TWriter writer) : _writer(writer), _length(0) {}
|
||||
|
||||
// Returns the number of bytes sent to the TWriter implementation.
|
||||
size_t bytesWritten() const {
|
||||
@@ -147,7 +147,7 @@ class TextFormatter {
|
||||
}
|
||||
|
||||
protected:
|
||||
TWriter &_writer;
|
||||
TWriter _writer;
|
||||
size_t _length;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user