#include <dwc.h>
void* DWC_ReallocEx(DWCAllocType name,
void *ptr,
u32 oldsize,
u32 newsize,
int align);name |
Information for library development. Specify 0. |
ptr |
Pointer to the memory allocated by the DWC_InitForDevelopment or DWC_InitForProduction function. |
oldsize |
Information for library development. Specify 0. |
newsize |
Memory size (in bytes) after making the change. |
align |
Alignment (in bytes) of the memory to allocate. Passed to the memory allocation function set by the DWC_InitForDevelopment and DWC_InitForProduction functions. |
Returns the pointer to the address where the header size (32 bytes) for internal management is added to the start of the memory allocated by the memory allocation function set by the DWC_InitForDevelopment or DWC_InitForProduction function.
Moves and changes the size of allocated memory using the memory allocation function set by the DWC_InitForDevelopment and DWC_InitForProduction functions.
Once the memory of a new size has been allocated in a different region, the library internally deallocates the original memory.
DWC_Alloc
DWC_AllocEx
DWC_Free
DWC_InitForDevelopment or DWC_InitForProduction functions, and not with the DWC_SetMemFunc function. For the change log before version 5.1 PR2, click here.
CONFIDENTIAL