DWCAllocEx

Syntax

#include <dwc.h> 
typedef void*(*) DWCAllocEx(DWCAllocType name,
              u32 size,
              int align);

Arguments

align Return a pointer to a byte-aligned buffer with the size in bytes specified by size.
name Ignore this argument. It contains information used during DWC library development.

Return Values

If memory allocation is successful, returns a pointer to a buffer of size bytes and with the byte alignment given by align. Otherwise, returns NULL.

Description

This memory allocation function is used by the DWC library. Thread-exclusive processing must be used.
When operating in TWL mode, you cannot specify functions that allocate a region from the main memory extended arena.

See Also

DWCFreeEx

Revision History

5.3
A note about operating in TWL mode was moved here from the deprecated DWC_SetMemFunc function.

For the change log prior to 5.1 PR2, click here.   


CONFIDENTIAL