The Memory Handler object provides common interfaces to manipulate dynamic memory inside the services. As the stack supports different memory allocators, the usage of these interfaces is mandatory.
It allocates a fixed number of bytes and returns a pointer to the allocated memory.
void *alloc(size_t size);Parameters
Similar behavior than alloc() method, but on this call the allocated memory is zeroed.
void *alloc_z(size_t size);Parameters
This method frees the memory space pointed to by ptr.
void free(void *ptr);Parameters
Resize an allocated memory.
void *realloc(void *ptr, size_t size);Parameters