#include <dwc.h>
void DWC_Alloc ( DWCAllocType name, u32 size );
void DWC_AllocEx( DWCAllocType name, u32 size, int align );
Memory is allocated using the memory allocation function specified by DWC_SetMemFunc
.
When the DWC_Alloc
function is used, 32 is passed to the align
argument in the memory allocation function. When the DWC_AllocEx
function is used, the align
argument from this function is passed to the align
argument in the memory allocation function.
|
This information is for library development. Specify 0. |
size |
Size (in bytes) of the memory you wish to allocate. |
align |
Alignment (in bytes) of the memory you wish to reserve. This is passed to the memory allocation function that is set by the DWC_SetMemFunc function. |
Returns a pointer to the memory allocated by the memory allocation function that is set by the DWC_SetMemFunc function.
DWC_SetMemFunc DWC_Realloc, DWC_ReallocEx, DWC_Free
12/16/2005 Initial version.