mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
30 lines
534 B
C++
30 lines
534 B
C++
// Copyright Benoit Blanchon 2014
|
|
// MIT License
|
|
//
|
|
// Arduino JSON library
|
|
// https://github.com/bblanchon/ArduinoJson
|
|
|
|
#pragma once
|
|
|
|
#include "JsonValueImpl.hpp"
|
|
#include "../JsonBuffer.hpp"
|
|
|
|
namespace ArduinoJson {
|
|
namespace Internals {
|
|
|
|
class JsonArrayNode {
|
|
public:
|
|
static JsonArrayNode* createFrom(JsonBuffer* buffer) {
|
|
void* ptr = buffer->alloc(sizeof(JsonArrayNode));
|
|
return ptr ? new (ptr) JsonArrayNode() : NULL;
|
|
}
|
|
|
|
JsonArrayNode* next;
|
|
JsonValueImpl value;
|
|
|
|
private:
|
|
JsonArrayNode() : next(0) {}
|
|
};
|
|
}
|
|
}
|