MCPcopy Create free account
hub / github.com/Effect-TS/effect / macAddressToOctets

Function macAddressToOctets

packages/effect/src/net/NetAddress.ts:1266–1269  ·  view source on GitHub ↗
(self: MacAddress)

Source from the content-addressed store, hash-verified

1264 * @since 4.0.0
1265 */
1266export const macAddressToOctets = (self: MacAddress): MacAddressOctets => {
1267 const bytes = getMacBytes(self)
1268 return [bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5]]
1269}
1270
1271/**
1272 * Formats a MAC address as six lowercase hexadecimal octets separated by colons.

Callers

nothing calls this directly

Calls 1

getMacBytesFunction · 0.85

Tested by

no test coverage detected