mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 03:56:16 +00:00
Kernel: Add list-compatible constructor for MACAddress
This commit is contained in:
parent
23e8715022
commit
eb01735ec5
Notes:
sideshowbarker
2024-07-19 12:28:44 +09:00
Author: https://github.com/deoxxa
Commit: eb01735ec5
Pull-request: https://github.com/SerenityOS/serenity/pull/499
Reviewed-by: https://github.com/awesomekling
1 changed files with 9 additions and 0 deletions
|
@ -13,6 +13,15 @@ public:
|
||||||
{
|
{
|
||||||
memcpy(m_data, data, 6);
|
memcpy(m_data, data, 6);
|
||||||
}
|
}
|
||||||
|
MACAddress(u8 a, u8 b, u8 c, u8 d, u8 e, u8 f)
|
||||||
|
{
|
||||||
|
m_data[0] = a;
|
||||||
|
m_data[1] = b;
|
||||||
|
m_data[2] = c;
|
||||||
|
m_data[3] = d;
|
||||||
|
m_data[4] = e;
|
||||||
|
m_data[5] = f;
|
||||||
|
}
|
||||||
~MACAddress() {}
|
~MACAddress() {}
|
||||||
|
|
||||||
u8 operator[](int i) const
|
u8 operator[](int i) const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue