MCPcopy Create free account
hub / github.com/auralius/noodle / noodle_buffer_alloc_float

Function noodle_buffer_alloc_float

src/noodle_buffer.cpp:15–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
24typedef 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;

Callers 1

noodle_buffer_requireFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected