BLE: Add const overload for byte_array_t subscribt operator.

pull/6932/head
Vincent Coubard 2018-03-29 17:22:48 +01:00
parent 87c2045f5e
commit 95cd37b491
1 changed files with 7 additions and 0 deletions

View File

@ -310,6 +310,13 @@ struct byte_array_t {
return _value[i];
}
/**
* Subscript operator to access data content
*/
uint8_t operator[](uint8_t i) const {
return _value[i];
}
/**
* Return the pointer to the buffer holding data.
*/