MacAddress

object MacAddress
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def fromBytes(bytes: Array[Byte]): Option[MacAddress]

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.

def fromBytes(b0: Int, b1: Int, b2: Int, b3: Int, b4: Int, b5: Int): MacAddress

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.

def fromLong(value: Long): MacAddress

Constructs a MacAddress from a Long, using the lower 48-bits.

Constructs a MacAddress from a Long, using the lower 48-bits.

def fromString(value: String): Option[MacAddress]

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.

Implicits

Implicits

implicit
val order: Order[MacAddress]
implicit
val show: Show[MacAddress]