|
ESPHome 2026.10.2
|
Bump allocator over a fixed buffer for a document built and serialized in one scope. More...
#include <json_util.h>
Public Member Functions | |
| JsonArena (ArduinoJson::Allocator *fallback=heap_json_allocator()) | |
| JsonArena (const JsonArena &)=delete | |
| JsonArena & | operator= (const JsonArena &)=delete |
| void * | allocate (size_t size) override |
| void | deallocate (void *ptr) override |
| void * | reallocate (void *ptr, size_t new_size) override |
| size_t | used () const |
| Bytes of the buffer handed out so far. | |
Bump allocator over a fixed buffer for a document built and serialized in one scope.
What the buffer cannot hold goes to the heap allocator; nothing is freed until the arena goes away.
Definition at line 182 of file json_util.h.
|
inlineexplicit |
Definition at line 185 of file json_util.h.
|
delete |
|
inlineoverride |
Definition at line 190 of file json_util.h.
|
inlineoverride |
Definition at line 202 of file json_util.h.
|
delete |
|
inlineoverride |
Definition at line 207 of file json_util.h.
|
inline |
Bytes of the buffer handed out so far.
Definition at line 231 of file json_util.h.