VSF Documented
|
#include <vsf_loader.h>
Data Fields | |
void *(* | fn_malloc )(vsf_loader_t *loader, vsf_loader_mem_attr_t attr, uint32_t size, uint32_t alignment) |
void(* | fn_free )(vsf_loader_t *loader, vsf_loader_mem_attr_t attr, void *buffer) |
vsf loader heap functions
void *(* vsf_loader_heap_op_t::fn_malloc) (vsf_loader_t *loader, vsf_loader_mem_attr_t attr, uint32_t size, uint32_t alignment) |
function to allocate memory buffer.
loader | loader instance, cannot be NULL. |
attr | attribution of the memory(R/W/X/RW). |
size | byte size of memory to allocate. |
alignment | memory alignment: 2**alignment. |
void(* vsf_loader_heap_op_t::fn_free) (vsf_loader_t *loader, vsf_loader_mem_attr_t attr, void *buffer) |
function to free allocated memory buffer.
loader | loader instance, cannot be NULL. |
attr | attribution of the memory(R/W/X/RW). |
buffer | memory to be freed. |