A 48 bit EUI-48 sub-identifier, see EUI48.
More...
#include <BTAddress.hpp>
A 48 bit EUI-48 sub-identifier, see EUI48.
Definition at line 154 of file BTAddress.hpp.
◆ EUI48Sub() [1/5]
constexpr direct_bt::EUI48Sub::EUI48Sub |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ EUI48Sub() [2/5]
EUI48Sub::EUI48Sub |
( |
const uint8_t * |
b_, |
|
|
const jau::nsize_t |
len_ |
|
) |
| |
|
noexcept |
◆ EUI48Sub() [3/5]
EUI48Sub::EUI48Sub |
( |
const std::string & |
str | ) |
|
◆ EUI48Sub() [4/5]
constexpr direct_bt::EUI48Sub::EUI48Sub |
( |
const EUI48Sub & |
o | ) |
|
|
constexprdefaultnoexcept |
◆ EUI48Sub() [5/5]
direct_bt::EUI48Sub::EUI48Sub |
( |
EUI48Sub && |
o | ) |
|
|
defaultnoexcept |
◆ clear()
void direct_bt::EUI48Sub::clear |
( |
| ) |
|
|
inline |
Method clears the underlying byte array b and sets length to zero.
Definition at line 220 of file BTAddress.hpp.
◆ contains()
bool direct_bt::EUI48Sub::contains |
( |
const EUI48Sub & |
needle | ) |
const |
|
inlinenoexcept |
Returns true, if given EUI48Sub needle is contained in this instance haystack.
If the sub is zero, true is returned.
Definition at line 252 of file BTAddress.hpp.
◆ hash_code()
constexpr std::size_t direct_bt::EUI48Sub::hash_code |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ indexOf() [1/2]
Finds the index of given EUI48Sub needle within this instance haystack.
- Parameters
-
- Returns
- index of first element of needle within this instance haystack or -1 if not found. If the needle length is zero, 0 (found) is returned.
Definition at line 242 of file BTAddress.hpp.
◆ indexOf() [2/2]
Find index of needle within haystack.
- Parameters
-
haystack_b | haystack data |
haystack_length | haystack length |
needle_b | needle data |
needle_length | needle length |
- Returns
- index of first element of needle within haystack or -1 if not found. If the needle length is zero, 0 (found) is returned.
Definition at line 242 of file BTTypes0.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ scanEUI48Sub()
bool EUI48Sub::scanEUI48Sub |
( |
const std::string & |
str, |
|
|
EUI48Sub & |
dest, |
|
|
std::string & |
errmsg |
|
) |
| |
|
static |
Fills given EUI48Sub instance via given string representation.
Implementation is consistent with EUI48Sub::toString().
- Parameters
-
str | a string of less or equal of 17 characters representing less or equal of 6 bytes as hexadecimal numbers separated via colon, e.g. 01:02:03:0A:0B:0C , 01:02:03:0A , : , (empty). |
dest | EUI48Sub to set its value |
errmsg | error parsing message if returning false |
- Returns
- true if successful, otherwise false
- See also
- EUI48Sub::EUI48Sub
-
EUI48Sub::toString()
Definition at line 186 of file BTTypes0.cpp.
◆ toString()
std::string EUI48Sub::toString |
( |
| ) |
const |
|
noexcept |
Returns the EUI48 sub-string representation, less or equal 17 characters representing less or equal 6 bytes as upper case hexadecimal numbers separated via colon, e.g.
01:02:03:0A:0B:0C
, 01:02:03:0A
, :
, (empty).
Definition at line 166 of file BTTypes0.cpp.
◆ ALL_DEVICE
const EUI48Sub direct_bt::EUI48Sub::ALL_DEVICE |
|
static |
EUI48 MAC address matching all device, i.e.
ff:ff:ff:ff:ff:ff
.
Definition at line 158 of file BTAddress.hpp.
◆ ANY_DEVICE
const EUI48Sub direct_bt::EUI48Sub::ANY_DEVICE |
|
static |
uint8_t direct_bt::EUI48Sub::b[6] |
◆ length
The actual length in bytes of the EUI48 sub-address, less or equal 6 bytes.
Definition at line 170 of file BTAddress.hpp.
◆ LOCAL_DEVICE
const EUI48Sub direct_bt::EUI48Sub::LOCAL_DEVICE |
|
static |
EUI48 MAC address matching local device, i.e.
0:0:0:ff:ff:ff
.
Definition at line 160 of file BTAddress.hpp.
The documentation for this struct was generated from the following files: