mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-02 16:25:34 +03:00
AK: Add copy_to span method for AK::MACAddress
This commit is contained in:
parent
1a664d80f9
commit
0bb3d83a48
Notes:
sideshowbarker
2024-07-18 08:17:51 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/0bb3d83a482 Pull-request: https://github.com/SerenityOS/serenity/pull/9019 Reviewed-by: https://github.com/alimpfard ✅
@ -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 New Issue
Block a user