mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
AK: Add copy_to span method for AK::MACAddress
This commit is contained in:
parent
1a664d80f9
commit
0bb3d83a48
|
@ -84,6 +84,11 @@ public:
|
|||
return all_of(m_data.begin(), m_data.end(), [](const auto octet) { return octet == 0; });
|
||||
}
|
||||
|
||||
void copy_to(Bytes destination) const
|
||||
{
|
||||
m_data.span().copy_to(destination);
|
||||
}
|
||||
|
||||
private:
|
||||
Array<u8, s_mac_address_length> m_data {};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue