Represents a MAC network card adapter address ID.
More...
#include <juce_MACAddress.h>
Represents a MAC network card adapter address ID.
◆ MACAddress() [1/4]
MACAddress::MACAddress |
( |
| ) |
|
|
noexcept |
Creates a null address (00-00-00-00-00-00).
◆ MACAddress() [2/4]
Creates a copy of another address.
◆ MACAddress() [3/4]
MACAddress::MACAddress |
( |
const uint8 | bytes[6] | ) |
|
|
explicitnoexcept |
Creates an address from 6 bytes.
◆ MACAddress() [4/4]
Creates an address from a hex string.
If the string isn't a 6-byte hex value, this will just default-initialise the object.
◆ getAllAddresses()
Returns a list of the MAC addresses of all the available network cards.
◆ findAllAddresses()
Populates a list of the MAC addresses of all the available network cards.
◆ operator=()
Creates a copy of another address.
◆ getBytes()
const uint8 * MACAddress::getBytes |
( |
| ) |
const |
|
noexcept |
Returns a pointer to the 6 bytes that make up this address.
◆ toString() [1/2]
String MACAddress::toString |
( |
| ) |
const |
Returns a dash-separated string in the form "11-22-33-44-55-66".
◆ toString() [2/2]
Returns a hex string of this address, using a custom separator between each byte.
◆ toInt64()
int64 MACAddress::toInt64 |
( |
| ) |
const |
|
noexcept |
Returns the address in the lower 6 bytes of an int64.
This uses a little-endian arrangement, with the first byte of the address being stored in the least-significant byte of the result value.
◆ isNull()
bool MACAddress::isNull |
( |
| ) |
const |
|
noexcept |
Returns true if this address is null (00-00-00-00-00-00).
◆ operator==()
bool MACAddress::operator== |
( |
const MACAddress & | | ) |
const |
|
noexcept |
◆ operator!=()
bool MACAddress::operator!= |
( |
const MACAddress & | | ) |
const |
|
noexcept |
The documentation for this class was generated from the following file: