issues
search
OpenBluetoothToolbox
/
SimpleBLE
SimpleBLE - the all-in-one Bluetooth library for MacOS, iOS, Windows, Linux and Android.
https://www.simpleble.org
Other
619
stars
107
forks
source link
Refactor ByteArray from std::string alias to class implementation
#319
Open
tlifschitz
opened
4 weeks ago
tlifschitz
commented
4 weeks ago
Converted ByteArray from an alias of std::string to a class implementation.
Added multiple constructors to support initialization from various sources:
std::vector
uint8_t pointer with size
std::string
C-string with and without null termination
Implemented static methods fromHex() to construct from hex strings.
Overloaded the stream operator to support pretty printing ByteArrays.
Create common code directory to be shared among simpleble and simplebluez
Use new ByteArray class instead of std::vector
in simplebluez
tlifschitz
commented
3 weeks ago
@kdewald pls review
CLAassistant
commented
2 weeks ago
All committers have signed the CLA.