MallocMem
Applicability
Product |
Supported (√/x) |
|---|---|
Atlas 350 Accelerator Card |
x |
√ |
|
x |
|
x |
|
x |
|
x |
Note: For
Function Description
Allocates memory.
Prototype
Status MallocMem(MemType type, size_t size, void **ptr);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
type |
Input |
Memory type. |
size |
Input |
Memory size. |
ptr |
Output |
Pointer to the allocated memory. |
Example
None
Returns
- SUCCESS: Success.
- Other values: Failure.
Restrictions
Only the host memory can be allocated.
Parent topic: ADXL APIs