28 zeromem (address,
sizeof (address));
33 memcpy (address, other.address, sizeof (address));
38 memcpy (address, other.address, sizeof (address));
44 memcpy (address, bytes,
sizeof (address));
52 if (hex.
getSize() ==
sizeof (address))
53 memcpy (address, hex.
getData(),
sizeof (address));
55 zeromem (address,
sizeof (address));
67 for (
size_t i = 0; i <
sizeof (address); ++i)
71 if (i <
sizeof (address) - 1)
82 for (
int i = (
int)
sizeof (address); --i >= 0;)
83 n = (n << 8) | address[i];
97 bool MACAddress::operator== (
const MACAddress& other)
const noexcept {
return memcmp (address, other.address, sizeof (address)) == 0; }
98 bool MACAddress::operator!= (
const MACAddress& other)
const noexcept {
return ! operator== (other); }
size_t getSize() const noexcept
static Array< MACAddress > getAllAddresses()
bool isNull() const noexcept
MACAddress & operator=(const MACAddress &) noexcept
void * getData() noexcept
static String toHexString(IntegerType number)
int64 toInt64() const noexcept
static void findAllAddresses(Array< MACAddress > &results)
String paddedLeft(juce_wchar padCharacter, int minimumLength) const
void loadFromHexString(StringRef sourceHexString)