Skip to main content
Version: 0.1.5

UUID

Haply::HardwareAPI::UUID

Simple representation of a 16 byte UUID.

Index

Members

NameTypeDescription
SIZEstatic constexpr size_tNumber of bytes in the UUID.
bytesuint8_tByte container for the the UUID.

Methods

NameTypeDescription
SetBytesvoid(const uint8_t *)Copies the values of b into the current instance of the ...
Printvoid(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.