mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 04:52:23 +00: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: 0bb3d83a48
Pull-request: https://github.com/SerenityOS/serenity/pull/9019
Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 5 additions and 0 deletions
|
@ -84,6 +84,11 @@ public:
|
||||||
return all_of(m_data.begin(), m_data.end(), [](const auto octet) { return octet == 0; });
|
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:
|
private:
|
||||||
Array<u8, s_mac_address_length> m_data {};
|
Array<u8, s_mac_address_length> m_data {};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue