Function esp_idf_sys::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: usize,
) -> 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.