pabigot  0.1.1
C++ support classes
Public Types | Public Member Functions | Static Public Attributes
pabigot::ble::details::uuid_type< nb > Class Template Reference

Base class that captures 2, 4, or 16-byte UUIDs. More...

#include </mnt/devel/pabigot-cxx/include/pabigot/ble.hpp>

Inheritance diagram for pabigot::ble::details::uuid_type< nb >:

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.
 

Detailed Description

template<std::size_t nb>
class pabigot::ble::details::uuid_type< nb >

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.


The documentation for this class was generated from the following file: