openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_UIO_SetUserData()

int32_t BSL_UIO_SetUserData ( BSL_UIO uio,
void *  data 
)

Set the user data in the UIO object

UIO will not modify the user data, user can add some information for the UIO, and get the information by use BSL_UIO_GetUserData function; After you set user data by calling BSL_UIO_SetUserData, you need to call BSL_UIO_SetUserData again before calling BSL_UIO_Free to set user data to null to ensure that all memory is released.

参数
uio[IN] UIO object.
data[IN] User data pointer
返回值
BSL_SUCCESS,success.
BSL_NULL_INPUT,invalidnull pointer.