#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.
name |
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. DWC_SetMemFunc is used to assign it to the specified memory reservation function. |
Returns a pointer to the memory allocated by the memory allocation function that is set by DWC_SetMemFunc.
DWC_SetMemFunc
DWC_Realloc
DWC_ReallocEx
DWC_Free
2007/09/13 Corrected the Syntax.
2005/12/16 Initial version.
CONFIDENTIAL