|
ESPHome 2026.11.0-dev
|
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 194 of file json_util.h.
|
inlineexplicit |
Definition at line 197 of file json_util.h.
|
delete |
|
inlineoverride |
Definition at line 202 of file json_util.h.
|
inlineoverride |
Definition at line 214 of file json_util.h.
|
delete |
|
inlineoverride |
Definition at line 219 of file json_util.h.
|
inline |
Bytes of the buffer handed out so far.
Definition at line 243 of file json_util.h.