|
LibJuno 1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
|
Vtable for memory allocation operations. More...
#include <memory_api.h>
Data Fields | |
| JUNO_RESULT_POINTER_T(* | Get )(JUNO_MEMORY_ALLOC_ROOT_T *ptMem, size_t zSize) |
| Allocate a memory region of at least zSize bytes. | |
| JUNO_STATUS_T(* | Update )(JUNO_MEMORY_ALLOC_ROOT_T *ptMem, JUNO_POINTER_T *ptMemory, size_t zNewSize) |
| Update an existing allocation to a new size (in-place descriptor update). | |
| JUNO_STATUS_T(* | Put )(JUNO_MEMORY_ALLOC_ROOT_T *ptMem, JUNO_POINTER_T *pvAddr) |
| Free a previously allocated memory region. | |
Vtable for memory allocation operations.
| JUNO_RESULT_POINTER_T(* JUNO_MEMORY_ALLOC_API_TAG::Get) (JUNO_MEMORY_ALLOC_ROOT_T *ptMem, size_t zSize) |
Allocate a memory region of at least zSize bytes.
| ptMem | Allocator root object. |
| zSize | Size in bytes to allocate. |
| JUNO_STATUS_T(* JUNO_MEMORY_ALLOC_API_TAG::Put) (JUNO_MEMORY_ALLOC_ROOT_T *ptMem, JUNO_POINTER_T *pvAddr) |
Free a previously allocated memory region.
| ptMem | Allocator root object. |
| pvAddr | Pointer descriptor to free. |
| JUNO_STATUS_T(* JUNO_MEMORY_ALLOC_API_TAG::Update) (JUNO_MEMORY_ALLOC_ROOT_T *ptMem, JUNO_POINTER_T *ptMemory, size_t zNewSize) |
Update an existing allocation to a new size (in-place descriptor update).
| ptMem | Allocator root object. |
| ptMemory | Pointer descriptor to update (in/out). |
| zNewSize | The new size in bytes. |