mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
Renamed JsonBuffer to MemoryPool
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../Memory/JsonBuffer.hpp"
|
||||
#include "../Memory/MemoryPool.hpp"
|
||||
#include "ListConstIterator.hpp"
|
||||
#include "ListIterator.hpp"
|
||||
|
||||
@@ -32,8 +32,8 @@ class List {
|
||||
return nodeCount;
|
||||
}
|
||||
|
||||
iterator add(JsonBuffer *buffer) {
|
||||
node_type *newNode = new (buffer) node_type();
|
||||
iterator add(MemoryPool *memoryPool) {
|
||||
node_type *newNode = new (memoryPool) node_type();
|
||||
|
||||
if (_firstNode) {
|
||||
node_type *lastNode = _firstNode;
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <stddef.h> // for NULL
|
||||
|
||||
#include "../Memory/JsonBufferAllocated.hpp"
|
||||
#include "../Memory/AllocableInMemoryPool.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
namespace Internals {
|
||||
@@ -14,7 +14,7 @@ namespace Internals {
|
||||
// A node for a singly-linked list.
|
||||
// Used by List<T> and its iterators.
|
||||
template <typename T>
|
||||
struct ListNode : public Internals::JsonBufferAllocated {
|
||||
struct ListNode : public Internals::AllocableInMemoryPool {
|
||||
ListNode() NOEXCEPT : next(NULL) {}
|
||||
|
||||
ListNode<T> *next;
|
||||
|
||||
Reference in New Issue
Block a user