TransparentCodec

mcodec.TransparentCodec
final class TransparentCodec[T, E](wrap: E => T, unwrap: T => E, inner: MCodec[E]) extends MCodec[T]

Attributes

Source
DerivedCodecs.scala
Graph
Supertypes
trait MCodec[T]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def read(in: Input): T

Attributes

Source
DerivedCodecs.scala
def write(out: Output, v: T): Unit

Attributes

Source
DerivedCodecs.scala

Inherited methods

final def nullable: MCodec[T | Null]

Attributes

Inherited from:
MCodec
Source
MCodec.scala
final inline def transform[U](inline onWrite: U => T, inline onRead: T => U): MCodec[U]

Attributes

Inherited from:
MCodec
Source
MCodec.scala
final def transformed[U](onRead: T => U)(onWrite: U => T): MCodec[U]

Attributes

Inherited from:
MCodec
Source
MCodec.scala