MCPcopy Create free account
hub / github.com/SmingHub/Sming / getHash

Method getHash

Sming/Wiring/MacAddress.cpp:71–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71uint32_t MacAddress::getHash() const
72{
73 uint32_t a = octets[4] | (octets[5] << 8);
74 uint32_t b = octets[0] | (octets[1] << 8) | (octets[2] << 16) | (octets[3] << 24);
75 return a ^ b;
76}

Callers 1

checkHashMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected