pabigot  0.1.1
C++ support classes
Public Types | Public Member Functions
pabigot::ble::uuid16_type Class Reference

16-bit UUID type stored as a little-endian byte sequence. More...

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

Inheritance diagram for pabigot::ble::uuid16_type:
pabigot::ble::details::uuid_type< 2 >

Public Types

using integer_type = uint16_t
 Native integer type for 16-bit UUID.
 
- Public Types inherited from pabigot::ble::details::uuid_type< 2 >
using super_type = std::array< uint8_t, nb >
 

Public Member Functions

constexpr uuid16_type (integer_type src)
 Construct an instance from a native integral UUID.
 
integer_type as_integer () const noexcept
 Convert the UUID to its host integral representation.
 
std::string as_string () const noexcept
 Convert the UUID to its standard text representation. More...
 
- Public Member Functions inherited from pabigot::ble::details::uuid_type< 2 >
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])
 

Additional Inherited Members

- Static Public Attributes inherited from pabigot::ble::details::uuid_type< 2 >
static constexpr std::size_t byte_length
 The length of the UUID in bytes.
 
static constexpr std::size_t bit_length
 The length of the UUID in bits.
 

Detailed Description

16-bit UUID type stored as a little-endian byte sequence.

Member Function Documentation

◆ as_string()

std::string pabigot::ble::uuid16_type::as_string ( ) const
noexcept

Convert the UUID to its standard text representation.

Note
Standard representation is 4 lower-case xdigits in big-endian byte order.

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