Malloc
Applicability
|
Product |
Supported or Not |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Header File
#include <ge/ge_allocator.h>
Function Usage
Allocates the device memory based on the specified size in the user memory pool.
Prototype
1
|
virtual MemBlock *Malloc(size_t size) = 0 |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
size |
Input |
Size of the memory to be allocated. |
Constraints
Pure virtual functions must be implemented by users.
Parent topic: Allocator