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.
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. |
0 on success; else, failure.
For details about the API call sequence and example, see Shared Buffer Management.