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
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
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