com.comcast.ip4s.MacAddress$
See theMacAddress companion class
object MacAddress
Attributes
- Companion:
- class
- Source:
- MacAddress.scala
- Graph
- Supertypes
- Self type
- MacAddress.type
Members list
Concise view
Value members
Concrete methods
Constructs a MacAddress
from a 6-element byte array. Returns Some
when array is exactly 6-bytes and None
otherwise.
Constructs a MacAddress
from a 6-element byte array. Returns Some
when array is exactly 6-bytes and None
otherwise.
Attributes
- Source:
- MacAddress.scala
Constructs a MacAddress
from the specified 6 bytes.
Constructs a MacAddress
from the specified 6 bytes.
Each byte is represented as an Int
to avoid having to manually call .toByte
on each value -- the toByte
call
is done inside this function.
Attributes
- Source:
- MacAddress.scala
Constructs a MacAddress
from a Long
, using the lower 48-bits.
Parses a MacAddress
from a string, returning None
if the string is not a valid mac.
Parses a MacAddress
from a string, returning None
if the string is not a valid mac.
Attributes
- Source:
- MacAddress.scala