

#include <nitro/mi.h>
void* MI_CallAlloc(MIAllocator *allocator, u32 length, u32 alignment);| allocator | Pointer to the MIAllocator structure to access.The allocator must have been initialized using MI_InitAllocator(). |
| length | Memory size to be allocated. |
| alignment | Boundary alignment required for memory addresses. |
Returns the memory actually allocated if successful; otherwise returns NULL.
Allocates memory from the allocator using the MIAllocator structure.
Internally, this just calls the callback function for memory allocation specified in MI_InitAllocator().
For more information, see the reference for the MIAllocator structure.
MIAllocator, MIAllocatorAllocFunction, MIAllocatorFreeFunction
MI_InitAllocator, MI_CallFree
2007/06/12 Initial version.
CONFIDENTIAL