pabigot
0.1.1
C++ support classes
|
Base class that captures 2, 4, or 16-byte UUIDs. More...
#include </mnt/devel/pabigot-cxx/include/pabigot/ble.hpp>
Public Types | |
using | super_type = std::array< uint8_t, nb > |
Public Member Functions | |
constexpr | uuid_type (const super_type &arr) |
constexpr | uuid_type (super_type &arr) |
constexpr | uuid_type (const uint8_t(&arr)[byte_length]) |
constexpr | uuid_type (uint8_t(&arr)[byte_length]) |
Static Public Attributes | |
static constexpr std::size_t | byte_length = nb |
The length of the UUID in bytes. | |
static constexpr std::size_t | bit_length = 8 * byte_length |
The length of the UUID in bits. | |
Base class that captures 2, 4, or 16-byte UUIDs.
The endianness of the captured value is not specified by this type. However, the standard representation over-the-air is little-endian, and that's what's used when UUIDs are stored as uuid16_type, uuid32_type, or uuid128_type values.