Embedded SDK
Embedded SDK
|
This page describes the Dynamic Memory Allocator available for Applications.
Basically, this allocator behaves like any memory allocator in usual OS. The main difference is that it can be instantiated, thanks to its initialization function: mem_init()
This function takes as parameters
It returns a memory context (mem_ctx_t) that will be used by other functions
Then, chunks can be allocated with mem_alloc() and released with mem_free()
Both of these function take the memory context as first parameter.