lv_malloc_builtin.h

Typedefs

typedef void *lv_mem_builtin_pool_t

Functions

void lv_mem_init_builtin(void)

Initialize the dyn_mem module (work memory and other variables)

void lv_mem_deinit_builtin(void)

Clean up the memory buffer which frees all the allocated memories.

lv_mem_builtin_pool_t lv_mem_builtin_add_pool(void *mem, size_t bytes)

Add a new memory block to the builtin memory pool.

Parameters:
  • mem -- pointer to a new block of memory

  • bytes -- memory block size

Returns:

pointer to lv_mem_builtin_pool handle

void lv_mem_builtin_remove_pool(lv_mem_builtin_pool_t pool)

Remove the memory pool.

Parameters:

pool -- pointer to lv_mem_builtin_pool handle

void *lv_malloc_builtin(size_t size)
void *lv_realloc_builtin(void *p, size_t new_size)
void lv_free_builtin(void *p)
lv_res_t lv_mem_test_builtin(void)
Returns:

void lv_mem_monitor_builtin(lv_mem_monitor_t *mon_p)

Give information about the work memory of dynamic allocation

Parameters:

mon_p -- pointer to a lv_mem_monitor_t variable, the result of the analysis will be stored here