UUID
Haply::HardwareAPI::UUID
Simple representation of a 16 byte UUID.
Index
Members
Name | Type | Description |
---|---|---|
SIZE | static constexpr size_t | Number of bytes in the UUID. |
bytes | uint8_t | Byte container for the the UUID. |
Methods
Name | Type | Description |
---|---|---|
SetBytes | void(const uint8_t *) | Copies the values of b into the current instance of the ... |
void(std::ostream &) | Prints the contents of the byte array to a given output ... |
Members
SIZE
static constexpr size_t SIZE = 16
Number of bytes in the UUID.
bytes
uint8_t bytes 0
Byte container for the the UUID.
Methods
SetBytes
void SetBytes(const uint8_t * b)
Copies the values of b into the current instance of the UUID.
Parameters
- b a const byte array that must be at least 16-bytes wide where any excess bytes will be ignored. An array that less then 16-bytes will lead to undefined behaviour.
Print
void Print(std::ostream & os)
Prints the contents of the byte array to a given output stream.
The output will be formatted as:
Parameters
- os Output stream that will be written to.