aclrtGetBufDataLen
Description
Obtains the length of the valid data in the shared buffer.
This API is effective only after aclrtSetBufDataLen is called to set the length of the valid data in the shared buffer. Otherwise, the length obtained by calling this API is 0.
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
buf |
Input |
Shared buffer, which must be obtained by calling aclrtAllocBuf or aclrtCopyBufRef. |
len |
Output |
Length of valid data, in bytes. |
Returns
0 on success; else, failure. For details, see aclError.