acltdtSetBufDataLen

Sets the length of the valid data in the shared buffer. This API is synchronous.

The Ascend 910 AI Processor does not support this API in the current version.

Restrictions

Prototype

aclError acltdtSetBufDataLen(acltdtBuf buf, size_t len)

Parameters

Parameter

Input/Output

Description

buf

Input

Pointer to the shared buffer, which must be obtained by calling acltdtAllocBuf or acltdtCopyBufRef.

len

Input

Length of valid data, in bytes.

Returns

0 on success; else, failure.

See Also

For details about the API call sequence and example, see Shared Buffer Management.