riot_sys::bindgen

Function ble_uuid_init_from_buf

Source
pub unsafe extern "C" fn ble_uuid_init_from_buf(
    uuid: *mut ble_uuid_any_t,
    buf: *const c_void,
    len: size_t,
) -> c_int
Expand description

@brief Constructs a UUID object from a byte array.

@param uuid On success, this gets populated with the constructed UUID. @param buf The source buffer to parse. @param len The size of the buffer, in bytes.

@return 0 on success, BLE_HS_EINVAL if the source buffer does not contain a valid UUID.