Files
thirdparty-ArduinoJson/include/ArduinoJson/Internals/JsonArrayNode.hpp
2014-10-28 16:29:55 +01:00

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) {}
};
}
}