given_ByteEncoder_ExecutionWave

org.sigilaris.core.application.protocol.ExecutionWave.given_ByteEncoder_ExecutionWave

Attributes

Source
ExecutionPlan.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def encode(value: ExecutionWave): ByteVector

Encodes a value to a deterministic byte sequence.

Encodes a value to a deterministic byte sequence.

Value parameters

value

the value to encode

Attributes

Returns

the encoded byte sequence

Definition Classes
Source
ExecutionPlan.scala

Inherited methods

def contramap[B](f: B => ExecutionWave): ByteEncoder[B]

Creates a new encoder by applying a function before encoding.

Creates a new encoder by applying a function before encoding.

This is the contravariant map operation for encoders.

Value parameters

f

function to transform input before encoding

Attributes

Returns

new encoder for type B

Example
 case class UserId(value: Long)
 given ByteEncoder[UserId] = ByteEncoder[Long].contramap(_.value)
Inherited from:
ByteEncoder
Source
ByteEncoder.scala