AllocIntArray
Function Usage
Allocates an aclIntArray and initializes it with the value in the specified memory.
Prototype
aclIntArray *AllocIntArray(const int64_t *value, uint64_t size)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
value |
Input |
Source data, which is used to initialize aclIntArray. |
size |
Input |
Number of elements in the source data. |
Returns
Success: allocated aclIntArray object. Failure: nullptr.
Constraints
The input parameter pointer must not be null.
Example
1 2 3 4 5 | // Allocate an aclIntArray whose length is 10. void Func(aclOpExecutor *executor) { int64_t myArray[10]; aclIntArray *array = executor->AllocIntArray(myArray, 10); } |
Parent topic: op_executor