template <class T> __aicore__ inline bool InitBuffer(T& que, uint8_t num, uint32_t len); template <TPosition pos> __aicore__ inline bool InitBuffer(TBuf<pos>& buf, uint32_t len);
Table 1 Parameters in InitBuffer(T& que, uint8_t num, uint32_t len) prototype definition
| Parameter | Input/Output | Description |
|---|---|---|
| que | Input | TQue object that requires buffer allocation. |
| num | Input | Number of allocated buffers. |
| len | Input | Size of each buffer, in bytes. If the size is not 32-byte aligned, it is automatically padded up to 32-byte aligned. |
Table 2 Parameters in InitBuffer(TBuf<pos>& buf, uint32_t len) prototype definition
| Parameter | Input/Output | Description |
|---|---|---|
| buf | Input | TBuf object that requires buffer allocation. |
| len | Input | Size of the buffer allocated to the TBuf, in bytes. If the size is not 32-byte aligned, it is automatically padded up to 32-byte aligned. |
Kirin 9020 series processors
Kirin 9030 series processors
Kirin X90 series processors