Malloc

Description

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

Prototype

virtual MemBlock *Malloc(size_t size) = 0

Parameters

Parameter

Input/Output

Description

size

Input

Size of the memory to be allocated.

Returns

Pointer to MemBlock

Exception Handling

None

Restrictions

Pure virtual functions must be implemented by users.