GetBufHandle
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
√ |
|
x |
|
√ |
Function Usage
Obtains a buffer managed by the custom TBufPool based on offset.
Prototype
1 | __aicore__ inline TBufHandle GetBufHandle(uint8_t offset) |
Parameter |
Input/Output |
Meaning |
|---|---|---|
offset |
Input |
Index value of a buffer |
Constraints
The value of offset cannot exceed the value of BUFID_SIZE defined in EXTERN_IMPL_BUFPOOL. You can add verification as required.
Returns
The specified buffer, whose type is TBufHandle.
Example
For details, see Example.
Parent topic: TBufPool