malloc

Applicable Products

All processors

Function Usage

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

Prototype

1
malloc(size: int) -> MemBlock

Parameters

Parameter

Input/Output

Description

size

Input

Size of the memory to be allocated

Returns

(MemBlock) Memory block object

Restrictions

Abstract methods must be implemented by users.