Module mem - Memory Management
The module mem (memory management) provides the dynamic memory allocation interface.
You can use the functions to define memory blocks and release them via one single call. The functions are DataView specific memory allocation functions and replace the known C functions malloc
, calloc
, realloc
and free
.
Important functions
- dal_mem_ini
- initializes the dynamic memory allocation module.
- dal_mem_set
- signals the beginning of a memory block.
- dal_mem_fre
- releases the memory block allocated last.
- dal_mem_mal
- allocates memory within the current memory block. This function replaces the C function
malloc
.
- dal_mem_cal
- allocates memory within the current memory block. This function replaces the C function
calloc
.
- dal_mem_rea
- allocates additional memory for the entry pointer within the current memory block. This function replaces the C function
realloc
.
- dal_mem_rca
- allocates additional memory for the entry pointer within the current memory block.