acltdtCopyBufRef
The
Description
Performs reference copy on the data area of the shared buffer and creates and returns a new buffer management structure pointing to the same data area.
Restrictions
- For the
Atlas 200/300/500 Inference Product , this API can be used only in the following modes:Ascend RC Form
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
buf |
Input |
Pointer to the shared buffer, which must be obtained by calling acltdtAllocBuf or acltdtCopyBufRef. |
newBuf |
Output |
A new shared buffer pointer, pointing to the same data area. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Shared Buffer Management