mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:07:44 +00:00
Kernel: Add list-compatible constructor for MACAddress
This commit is contained in:
parent
23e8715022
commit
eb01735ec5
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