openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_UIO_Read()

int32_t BSL_UIO_Read ( BSL_UIO uio,
void *  data,
uint32_t  len,
uint32_t *  readLen 
)

Read data from the UIO object.

参数
uio[IN] uio object.
data[IN] Buffer for receiving data
len[IN] Length of the received data buffer.
readLen[OUT] Length of the received data.
返回值
BSL_SUCCESS,Thedata is read successfully(Determined based on the actual receive length, if the length is 0 means no data is read.)
BSL_INTERNAL_EXCEPTION,anunexpected internal error occurs.
BSL_UIO_FAIL,invalidparameter.
BSL_UIO_IO_EXCEPTION,IOis abnormal.