DWC_AllocEx

Syntax

#include <dwc.h>

void* DWC_AllocEx(DWCAllocType name,
                  u32 size,
                  int align);

Arguments

name Information for library development. Specify 0.
size Size (in bytes) of the memory you wish to allocate.
align Alignment (in bytes) of the memory to be reserved. This is passed to the memory allocation function that was set using the DWC_Init function.

Return Values

Returns a pointer to the memory allocated using the memory allocation function specified by DWC_Init.

Description

Allocates memory using the memory allocation function specified by DWC_Init.

When the DWC_AllocEx function is used, the align argument from this function is passed to the align argument in the memory allocation function.

Revision History


CONFIDENTIAL