mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
18 lines
481 B
C++
18 lines
481 B
C++
// ArduinoJson - arduinojson.org
|
|
// Copyright Benoit Blanchon 2014-2019
|
|
// MIT License
|
|
|
|
#pragma once
|
|
|
|
#include "Deserialization/JsonParser.hpp"
|
|
|
|
inline ArduinoJson::JsonArray &ArduinoJson::JsonBuffer::createArray() {
|
|
JsonArray *ptr = new (this) JsonArray(this);
|
|
return ptr ? *ptr : JsonArray::invalid();
|
|
}
|
|
|
|
inline ArduinoJson::JsonObject &ArduinoJson::JsonBuffer::createObject() {
|
|
JsonObject *ptr = new (this) JsonObject(this);
|
|
return ptr ? *ptr : JsonObject::invalid();
|
|
}
|