add copy and default constructors for UUID.
This commit is contained in:
parent
9f9e3b872d
commit
e6c44ac779
1 changed files with 10 additions and 0 deletions
|
@ -77,6 +77,16 @@ public:
|
|||
/* empty */
|
||||
}
|
||||
|
||||
UUID(const UUID &source) {
|
||||
type = source.type;
|
||||
shortUUID = source.shortUUID;
|
||||
memcpy(baseUUID, source.baseUUID, LENGTH_OF_LONG_UUID);
|
||||
}
|
||||
|
||||
UUID(void) : type(UUID_TYPE_SHORT), shortUUID(BLE_UUID_UNKNOWN) {
|
||||
/* empty */
|
||||
}
|
||||
|
||||
public:
|
||||
UUID_Type_t shortOrLong(void) const {return type; }
|
||||
const uint8_t *getBaseUUID(void) const {
|
||||
|
|
Loading…
Reference in a new issue