| 13 | #if defined(ARDUINO_ARCH_ESP32) |
| 14 | #include <Arduino.h> |
| 15 | #include <esp_heap_caps.h> |
| 16 | #endif |
| 17 | |
| 18 | #ifndef NOODLE_BUFFER_ARENA_INITIAL_BYTES |
| 19 | #define NOODLE_BUFFER_ARENA_INITIAL_BYTES 64u |
| 20 | #endif |
| 21 | |
| 22 | #define NOODLE_BUFFER_ARENA_COOKIE 0x4E424146u /* "NBAF" */ |
| 23 | |
| 24 | typedef struct { |
| 25 | uint8_t *data; |
| 26 | size_t capacity_bytes; |
| 27 | size_t used_bytes; |
| 28 | size_t buffer_count; |
| 29 | |
| 30 | NoodleBuffer *first; |
| 31 | NoodleBuffer *last; |
| 32 | |
| 33 | size_t realloc_count; |
| 34 | size_t move_count; |
| 35 | size_t moved_bytes; |
| 36 | } NoodleBufferGlobalArena; |
no outgoing calls
no test coverage detected