|
DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
|
RAII scope guard for transient scratch borrows. More...
#include <scratch.h>
Public Member Functions | |
| ScratchScope () | |
| ~ScratchScope () | |
| ScratchScope (const ScratchScope &)=delete | |
| ScratchScope & | operator= (const ScratchScope &)=delete |
RAII scope guard for transient scratch borrows.
Marks the arena on construction and restores it on destruction, so every scratch_alloc() made within the scope is reclaimed on every exit path (return, break, fall-through) - the safe way to borrow transient scratch in a function with multiple returns. Scopes must nest (LIFO); the per-dispatch scratch_reset() is the backstop if one is ever skipped.
|
inline |
Definition at line 115 of file scratch.h.
References scratch_release().
|
delete |
|
delete |