openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_UIO_Gets()

int32_t BSL_UIO_Gets ( BSL_UIO uio,
char *  buf,
uint32_t *  readLen 
)

Reads a string from the UIO object

参数
uio[IN] uio object.
buf[IN] Buffer that accepts a line of strings
readLen[IN/OUT] Length of the buffer for receiving data/Length of the data that is successfully read
返回值
BSL_SUCCESS(Determine the value 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,IOabnormal.