|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
A MAC-48 (6-byte) hardware address. More...
Public Member Functions | |
| constexpr | mac_address () noexcept=default |
| Constructs a zero-initialized MAC address (00:00:00:00:00:00). | |
| constexpr | mac_address (std::array< uint8_t, 6 > bytes) noexcept |
| Constructs a MAC address from a byte array. | |
| constexpr | mac_address (uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3, uint8_t b4, uint8_t b5) noexcept |
| Constructs a MAC address from individual bytes. | |
| constexpr const std::array< uint8_t, 6 > & | bytes () const noexcept |
| Returns a reference to the underlying byte array. | |
| constexpr const uint8_t * | data () const noexcept |
| Returns a pointer to the raw byte data. | |
| constexpr uint8_t * | data () noexcept |
| Returns a mutable pointer to the raw byte data. | |
| constexpr uint8_t | operator[] (std::size_t i) const noexcept |
| Accesses a byte by index. | |
| constexpr bool | operator== (const mac_address &) const noexcept=default |
| Equality comparison. | |
A MAC-48 (6-byte) hardware address.
Fixed-size value type for storing and comparing MAC addresses.
|
constexprdefaultnoexcept |
Constructs a zero-initialized MAC address (00:00:00:00:00:00).
|
constexprdefaultnoexcept |
Equality comparison.