Decoder

endless.core.protocol.Decoder
trait Decoder[+A]

Generic binary decoder

Type parameters

A

value

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def decode(payload: Array[Byte]): A

Decode binary array into value of type A

Decode binary array into value of type A

Value parameters

payload

array of bytes

Attributes

Returns

value

Concrete methods

def map[B](f: A => B): Decoder[B]

Converts this decoder to a Decoder[B] using the supplied A => B

Converts this decoder to a Decoder[B] using the supplied A => B

Attributes