#include <dwc.h>
typedef void* (*DWCAllocEx)( DWCAllocType name, u32 size, int align );
typedef void (*DWCFreeEx )( DWCAllocType name, void* ptr, u32 size );
void DWC_SetMemFunc( DWCAllocEx alloc, DWCFreeEx free );
Sets the functions for allocating/deallocating memory to be used by the entire DWC library.
DWCAllocEx
function for allocating memory
With the memory allocation function, be sure to return a pointer to a buffer having the number of bytes given by size
and having the byte alignment given by align
.
Ignore name
as it contains information for DWC library development.
DWCFreeEx
function for releasing memory
The memory release function releases buffers allocated using the memory allocation function specified by ptr
.
Ignore name
as it contains information for DWC library development.
Ignore size
, as it is used to store information for DWC library development and does not store accurate size data.
alloc |
Pointer to the DWCAllocEx function used to allocate memory |
free |
Pointer to the DWCFreeEx function used to free memory. |
None.
DWC_Init, DWC_InitFriendsMatch
2005/12/16 Revisions.
10/26/2005 Revisions.
07/22/2005 Initial version.