Encoder

endless.core.protocol.Encoder
trait Encoder[-A]

Generic binary encoder

Type parameters

A

value

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def encode(a: A): Array[Byte]

Encode value of type A into a binary array

Encode value of type A into a binary array

Value parameters

a

value

Attributes

Returns

corresponding byte array

Concrete methods

def contramap[B](f: B => A): Encoder[B]

Converts this encoder to a Encoder[B] using the supplied B => A

Converts this encoder to a Encoder[B] using the supplied B => A

Attributes