mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 00:38:26 +01:00
Formated code with clang-format
This commit is contained in:
@@ -2,47 +2,23 @@
|
||||
|
||||
#include "ArduinoJson/Internals/JsonWriter.hpp"
|
||||
|
||||
namespace ArduinoJson
|
||||
{
|
||||
namespace Internals
|
||||
{
|
||||
class CompactJsonWriter : public JsonWriter
|
||||
{
|
||||
public:
|
||||
explicit CompactJsonWriter(Print* sink)
|
||||
: JsonWriter(sink)
|
||||
{
|
||||
}
|
||||
namespace ArduinoJson {
|
||||
namespace Internals {
|
||||
class CompactJsonWriter : public JsonWriter {
|
||||
public:
|
||||
explicit CompactJsonWriter(Print *sink) : JsonWriter(sink) {}
|
||||
|
||||
virtual void beginArray()
|
||||
{
|
||||
_length += _sink->write('[');
|
||||
}
|
||||
virtual void beginArray() { _length += _sink->write('['); }
|
||||
|
||||
virtual void endArray()
|
||||
{
|
||||
_length += _sink->write(']');
|
||||
}
|
||||
virtual void endArray() { _length += _sink->write(']'); }
|
||||
|
||||
virtual void writeColon()
|
||||
{
|
||||
_length += _sink->write(':');
|
||||
}
|
||||
virtual void writeColon() { _length += _sink->write(':'); }
|
||||
|
||||
virtual void writeComma()
|
||||
{
|
||||
_length += _sink->write(',');
|
||||
}
|
||||
virtual void writeComma() { _length += _sink->write(','); }
|
||||
|
||||
virtual void beginObject()
|
||||
{
|
||||
_length += _sink->write('{');
|
||||
}
|
||||
virtual void beginObject() { _length += _sink->write('{'); }
|
||||
|
||||
virtual void endObject()
|
||||
{
|
||||
_length += _sink->write('}');
|
||||
}
|
||||
};
|
||||
}
|
||||
virtual void endObject() { _length += _sink->write('}'); }
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user