|
ESPHome 2026.3.0-dev
|
Fixed-size buffer for message dumps - avoids heap allocation. More...
#include <proto.h>
Public Member Functions | |
| DumpBuffer () | |
| DumpBuffer & | append (const char *str) |
| DumpBuffer & | append (const char *str, size_t len) |
| DumpBuffer & | append (size_t n, char c) |
| const char * | c_str () const |
| size_t | size () const |
| char * | data () |
| Get writable buffer pointer for use with buf_append_printf. | |
| size_t | pos () const |
| Get current position for use with buf_append_printf. | |
| void | set_pos (size_t pos) |
| Update position after buf_append_printf call. | |
Static Public Attributes | |
| static constexpr size_t | CAPACITY = 512 |
Fixed-size buffer for message dumps - avoids heap allocation.
Sized to match the logger's default tx_buffer_size (512 bytes) since anything larger gets truncated anyway.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
staticconstexpr |