Memory management

The DataBlade® API provides functions for managing memory.

Table 1. DataBlade API functions for memory management
Function category DataBlade API function
Managing user memory

mi_alloc()
mi_dalloc()
mi_free()

mi_realloc()
mi_switch_mem_duration()
mi_zalloc()

Managing named memory

mi_lock_memory()
mi_named_alloc()
mi_named_free()
mi_named_get()

mi_named_zalloc()
mi_try_lock_memory()
mi_unlock_memory()

Managing stack memory mi_call() mi_stack_limit()
Memory duration mi_get_duration_size() mi_get_memptr_duration()