We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

Malloc

Function Description

Allocates the device memory based on the specified size in the developer memory pool.

Function Prototype

Collapse
Word wrap
Dark theme
Copy code
  1. virtual MemBlock *Malloc(size_t size) = 0

Parameters

Expand
Parameter Input/Output Description
size Input Size of the memory to be allocated.

Return Value

Expand
Type Description
MemBlock* Returns the MemBlock pointer.

Exception Handling

None

Restrictions

Pure virtual functions must be implemented by developers.

Search in Guides
Enter a keyword.