SimpleBLE icon indicating copy to clipboard operation
SimpleBLE copied to clipboard

Refactor ByteArray from std::string alias to class implementation

Open tlifschitz opened this issue 1 year ago • 2 comments

  • 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>
      • 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<uint8_t> in simplebluez

tlifschitz avatar Jun 18 '24 05:06 tlifschitz

@kdewald pls review

tlifschitz avatar Jun 20 '24 05:06 tlifschitz

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jun 29 '24 06:06 CLAassistant