Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Go to the documentation of this file.
70 static std::unique_ptr<const uuid_t>
create(
TypeSize const t, uint8_t
const *
const buffer,
jau::nsize_t const byte_offset,
bool const littleEndian);
83 return type == o.type;
86 {
return !(*
this == o); }
93 virtual const uint8_t *
data() const noexcept {
return nullptr; }
94 virtual std::string
toString() const noexcept {
return ""; }
117 return getTypeSize() == o.getTypeSize() && value ==
static_cast<uuid16_t const *
>(&o)->value;
120 const uint8_t *
data() const noexcept
override {
return static_cast<uint8_t*
>(
static_cast<void*
>(
const_cast<uint16_t*
>(&value))); }
121 std::string
toString() const noexcept override;
144 return getTypeSize() == o.getTypeSize() && value ==
static_cast<uuid32_t const *
>(&o)->value;
147 const uint8_t *
data() const noexcept
override {
return static_cast<uint8_t*
>(
static_cast<void*
>(
const_cast<uint32_t*
>(&value))); }
148 std::string
toString() const noexcept override;
175 bool operator==(
uuid_t const &o) const noexcept
override {
182 const uint8_t *
data() const noexcept
override {
return value.
data; }
183 std::string
toString() const noexcept override;
186 (void)le_octet_index;
193 switch(v.getTypeSize()) {
207 switch(v.getTypeSize()) {
void put_uuid(uint8_t *buffer, jau::nsize_t const byte_offset, const uuid_t &v) noexcept
uuid128_t toUUID128(uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const uuid32_le_octet_index=12) const noexcept
static std::unique_ptr< const uuid_t > create(TypeSize const t, uint8_t const *const buffer, jau::nsize_t const byte_offset, bool const littleEndian)
uuid_t(uuid_t &&o) noexcept=default
bool operator==(uuid_t const &o) const noexcept override
uuid128_t(jau::uint128_t const v) noexcept
uuid_t(const uuid_t &o) noexcept=default
uuid16_t(uint8_t const *const buffer, jau::nsize_t const byte_offset, bool const littleEndian) noexcept
bool operator!=(uuid_t const &o) const noexcept
uuid32_t(const uuid32_t &o) noexcept=default
uuid32_t & operator=(uuid32_t &&o) noexcept=default
bool operator==(uuid_t const &o) const noexcept override
uuid_t & operator=(const uuid_t &o) noexcept=default
virtual const uint8_t * data() const noexcept
returns the pointer to the uuid data of size getTypeSize()
constexpr void put_uint32(uint8_t *buffer, nsize_t const byte_offset, const uint32_t v) noexcept
TypeSize getTypeSize() const noexcept
constexpr void put_uint128(uint8_t *buffer, nsize_t const byte_offset, const uint128_t &v) noexcept
uuid16_t(const uuid16_t &o) noexcept=default
uuid16_t & operator=(uuid16_t &&o) noexcept=default
uuid128_t BT_BASE_UUID
Bluetooth UUID https://www.bluetooth.com/specifications/assigned-numbers/service-discovery/
TypeSize
Underlying integer value present octet count.
uuid128_t get_uuid128(uint8_t const *buffer, jau::nsize_t const byte_offset) noexcept
uuid_t(TypeSize const type_)
uuid16_t(uint16_t const v) noexcept
const uint8_t * data() const noexcept override
returns the pointer to the uuid data of size getTypeSize()
uuid16_t get_uuid16(uint8_t const *buffer, jau::nsize_t const byte_offset) noexcept
uuid32_t(uint8_t const *const buffer, jau::nsize_t const byte_offset, bool const littleEndian) noexcept
constexpr uint32_t get_uint32(uint8_t const *buffer, nsize_t const byte_offset) noexcept
virtual bool operator==(uuid_t const &o) const noexcept
virtual ~uuid_t() noexcept
uuid32_t get_uuid32(uint8_t const *buffer, jau::nsize_t const byte_offset) noexcept
constexpr uint128_t get_uint128(uint8_t const *buffer, nsize_t const byte_offset) noexcept
uuid32_t & operator=(const uuid32_t &o) noexcept=default
virtual std::string toUUID128String(uuid128_t const &base_uuid=BT_BASE_UUID, jau::nsize_t const le_octet_index=12) const noexcept
uuid32_t(uint32_t const v) noexcept
uint_fast32_t nsize_t
Natural 'size_t' alternative using uint_fast32_t as its natural sized type.
uuid32_t(uuid32_t &&o) noexcept=default
const uint8_t * data() const noexcept override
returns the pointer to the uuid data of size getTypeSize()
constexpr uint16_t get_uint16(uint8_t const *buffer, nsize_t const byte_offset) noexcept
uuid_t & operator=(uuid_t &&o) noexcept=default
uuid128_t(uint8_t const *const buffer, jau::nsize_t const byte_offset, bool const littleEndian) noexcept
uuid16_t & operator=(const uuid16_t &o) noexcept=default
static constexpr jau::nsize_t number(const TypeSize rhs) noexcept
constexpr void put_uint16(uint8_t *buffer, nsize_t const byte_offset, const uint16_t v) noexcept
virtual std::string toString() const noexcept
const uint8_t * data() const noexcept override
returns the pointer to the uuid data of size getTypeSize()
jau::nsize_t getTypeSizeInt() const noexcept
static TypeSize toTypeSize(const jau::nsize_t size)
uuid16_t(uuid16_t &&o) noexcept=default