BTstack Memory Management API

#include "src/btstack_memory.h"

Manage BTstack objects using configurable pools or dynamic allocation.

btstack_memory_init

void btstack_memory_init(void);

Initializes BTstack memory pools.

Source


btstack_memory_deinit

void btstack_memory_deinit(void);

Deinitialize BTstack memory pools

Note: if HAVE_MALLOC is defined, all previously allocated buffers are free'd

Source