add array indexed access to mac_addr_t
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19627 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -45,6 +45,11 @@ struct mac_addr_t {
|
|||||||
| (uint64)address[5];
|
| (uint64)address[5];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint8 operator[](int index)
|
||||||
|
{
|
||||||
|
return address[index];
|
||||||
|
}
|
||||||
|
|
||||||
mac_addr_t& operator=(const mac_addr_t& other)
|
mac_addr_t& operator=(const mac_addr_t& other)
|
||||||
{
|
{
|
||||||
memcpy(address, other.address, sizeof(address));
|
memcpy(address, other.address, sizeof(address));
|
||||||
|
|||||||
Reference in New Issue
Block a user