acltdtCopyBufRef

The Atlas Training Series Product does not support this API.

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

Prototype

aclError acltdtCopyBufRef(const acltdtBuf buf, acltdtBuf *newBuf)

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.