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

Function makeMac

packages/effect/src/net/NetAddress.ts:774–777  ·  view source on GitHub ↗
(bytes: Uint8Array)

Source from the content-addressed store, hash-verified

772]
773
774const makeMac = (bytes: Uint8Array): MacAddress => {
775 const self = Object.assign(Object.create(MacProto), { bytes: new Uint8Array(bytes) })
776 return Object.freeze(self)
777}
778
779/**
780 * Creates an IPv4 address from trusted network-order bytes without validation.

Callers 2

macAddressFromOctetsFunction · 0.70
macAddressFromStringFunction · 0.70

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected