MCodec

mcodec.MCodec
See theMCodec companion trait

Attributes

Companion
trait
Source
MCodec.scala
Graph
Supertypes
trait Derivation
trait JavaCodecs
trait ManualCodecs
trait StdCodecs
class Object
trait Matchable
class Any
Show all
Self type
MCodec.type

Members list

Type members

Inherited classlikes

trait JBuilder[A, C]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
Supertypes
class Object
trait Matchable
class Any
trait JFactory[A, C]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
Supertypes
class Object
trait Matchable
class Any
trait JMapBuilder[K, V, M]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
Supertypes
class Object
trait Matchable
class Any
trait JMapFactory[K, V, M]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
Supertypes
class Object
trait Matchable
class Any
protected class ObjectMapCodec[K, V] extends ObjectCodec[Map[K, V]]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait ObjectCodec[Map[K, V]]
trait NullSafeCodec[Map[K, V]]
trait MCodec[Map[K, V]]
class Object
trait Matchable
class Any
Show all
protected class PairsMapCodec[K, V] extends ListCodec[Map[K, V]]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait ListCodec[Map[K, V]]
trait NullSafeCodec[Map[K, V]]
trait MCodec[Map[K, V]]
class Object
trait Matchable
class Any
Show all
protected class TupleCodec[T <: Tuple](codecs: List[MCodec[Any]]) extends ListCodec[T]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait ListCodec[T]
trait NullSafeCodec[T]
trait MCodec[T]
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
class Object
trait Matchable
class Any
Show all
object bigIntCodec extends SimpleCodec[BigInt]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait MCodec[BigInt]
class Object
trait Matchable
class Any
Show all
object booleanCodec extends SimpleCodec[Boolean]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait MCodec[Boolean]
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait MCodec[Array[Byte]]
class Object
trait Matchable
class Any
Show all
object byteCodec extends SimpleCodec[Byte]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait SimpleCodec[Byte]
trait MCodec[Byte]
class Object
trait Matchable
class Any
Show all
object charCodec extends SimpleCodec[Char]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait SimpleCodec[Char]
trait MCodec[Char]
class Object
trait Matchable
class Any
Show all
object dateCodec extends SimpleCodec[Date]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait SimpleCodec[Date]
trait MCodec[Date]
class Object
trait Matchable
class Any
Show all
object doubleCodec extends SimpleCodec[Double]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait MCodec[Double]
class Object
trait Matchable
class Any
Show all
object floatCodec extends SimpleCodec[Float]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait MCodec[Float]
class Object
trait Matchable
class Any
Show all
object intCodec extends SimpleCodec[Int]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait SimpleCodec[Int]
trait MCodec[Int]
class Object
trait Matchable
class Any
Show all
object longCodec extends SimpleCodec[Long]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait SimpleCodec[Long]
trait MCodec[Long]
class Object
trait Matchable
class Any
Show all
object shortCodec extends SimpleCodec[Short]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait MCodec[Short]
class Object
trait Matchable
class Any
Show all
object stringCodec extends SimpleCodec[String]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait MCodec[String]
class Object
trait Matchable
class Any
Show all
object symbolCodec extends SimpleCodec[Symbol]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait MCodec[Symbol]
class Object
trait Matchable
class Any
Show all
object uuidCodec extends SimpleCodec[UUID]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
Supertypes
trait SimpleCodec[UUID]
trait MCodec[UUID]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

inline def apply[T](using c: MCodec[T]): MCodec[T]

Attributes

Source
MCodec.scala
def create[T](readFun: Input => T, writeFun: (Output, T) => Unit): MCodec[T]

Attributes

Source
MCodec.scala
transparent inline def derived[T](using m: Of[T]): MCodec[T]

Attributes

Source
MCodec.scala
def forceTransientDefaults[T](codec: MCodec[T]): MCodec[T]

Force-write variant: writes every @transientDefault field even when equal to its default. Implemented via the IgnoreTransientDefaults Output marker, so it works for ANY codec and recurses into nested products. Read is unchanged.

Force-write variant: writes every @transientDefault field even when equal to its default. Implemented via the IgnoreTransientDefaults Output marker, so it works for ANY codec and recurses into nested products. Read is unchanged.

Attributes

Source
MCodec.scala
def makeLazy[T](codec: => MCodec[T]): MCodec[T]

Attributes

Source
MCodec.scala
def read[T](input: Input)(using codec: MCodec[T]): T

Attributes

Source
MCodec.scala
def write[T](output: Output, value: T)(using codec: MCodec[T]): Unit

Attributes

Source
MCodec.scala

Inherited methods

def createList[T](r: ListInput => T, w: (ListOutput, T) => Unit): MCodec[T]

Attributes

Inherited from:
ManualCodecs
Source
ManualCodecs.scala
def createObject[T](r: ObjectInput => T, w: (ObjectOutput, T) => Unit): MCodec[T]

Attributes

Inherited from:
ManualCodecs
Source
ManualCodecs.scala
def createSimple[T](r: SimpleInput => T, w: (SimpleOutput, T) => Unit): MCodec[T]

Attributes

Inherited from:
ManualCodecs
Source
ManualCodecs.scala
transparent inline def defaultCaseIdx(inline flags: Tuple): Int

Attributes

Inherited from:
Derivation
Source
Derivation.scala
transparent inline def deriveDispatch[T](m: Of[T]): MCodec[T]

Attributes

Inherited from:
Derivation
Source
Derivation.scala
inline def deriveProduct[T](m: ProductOf[T]): MCodec[T]

Attributes

Inherited from:
Derivation
Source
Derivation.scala
inline def deriveSingleton[T](m: SingletonOf[T]): MCodec[T]

Attributes

Inherited from:
Derivation
Source
Derivation.scala
inline def deriveSum[T](m: SumOf[T]): MCodec[T]

Attributes

Inherited from:
Derivation
Source
Derivation.scala
inline def deriveTransparent[T](m: TransparentOf[T]): MCodec[T]

Attributes

Inherited from:
Derivation
Source
Derivation.scala
transparent inline def derivedRec[T](using m: Of[T]): MCodec[T]

Attributes

Inherited from:
Derivation
Source
Derivation.scala
inline def forSealedEnum[T](using m: Of[T]): MCodec[T]

Attributes

Inherited from:
Derivation
Source
Derivation.scala
def fromKeyCodec[T](using kc: MKeyCodec[T]): MCodec[T]

Attributes

Inherited from:
ManualCodecs
Source
ManualCodecs.scala
inline def isOptionFlags[Elems <: Tuple]: List[Boolean]

Attributes

Inherited from:
Derivation
Source
Derivation.scala
def nonNullString[T](r: String => T, w: T => String): MCodec[T]

Attributes

Inherited from:
ManualCodecs
Source
ManualCodecs.scala
inline def rejectMoreDefaults(inline flags: Tuple): Unit

Attributes

Inherited from:
Derivation
Source
Derivation.scala
def subclassCodec[T <: S, S](using evidence$1: ClassTag[T], parent: MCodec[S]): MCodec[T]

Attributes

Inherited from:
ManualCodecs
Source
ManualCodecs.scala
def subclassCodec[T, S](narrow: S => Option[T], widen: T => S)(using parent: MCodec[S]): MCodec[T]

Attributes

Inherited from:
ManualCodecs
Source
ManualCodecs.scala
inline def summonOrDeriveCases[Elems <: Tuple]: List[MCodec[Any]]

Attributes

Inherited from:
Derivation
Source
Derivation.scala

Givens

Inherited givens

given arrayCodec: [T : ClassTag : MCodec] => arrayCodec[T]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given arrayListFactory: [A] => JFactory[A, ArrayList[A]]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given eitherCodec: [L : MCodec, R : MCodec] => eitherCodec[L, R]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given hashMapFactory: [K, V] => JMapFactory[K, V, HashMap[K, V]]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given hashSetCodec: [T : MCodec] => ListCodec[HashSet[T]]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given hashSetFactory: [A] => JFactory[A, HashSet[A]]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given jBooleanCodec: MCodec[Boolean | Null]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given jByteCodec: MCodec[Byte | Null]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given jCollectionCodec: [A, C <: Collection[A]] => (MCodec[A], JFactory[A, C]) => jCollectionCodec[A, C]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given jDoubleCodec: MCodec[Double | Null]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given jEnumCodec: [E <: Enum[E] : ClassTag] => MCodec[E]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given jFloatCodec: MCodec[Float | Null]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given jIntegerCodec: MCodec[Integer | Null]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given jLongCodec: MCodec[Long | Null]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given jMapCodec: [K, V, M <: Map[K, V]] => (MKeyCodec[K], MCodec[V], JMapFactory[K, V, M]) => jMapCodec[K, V, M]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given jShortCodec: MCodec[Short | Null]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given linkedHashMapFactory: [K, V] => JMapFactory[K, V, LinkedHashMap[K, V]]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given linkedListFactory: [A] => JFactory[A, LinkedList[A]]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given listCodec: [T : MCodec] => ListCodec[List[T]]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
inline given mapCodec: [K : MCodec, V : MCodec] => MCodec[Map[K, V]]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given nothingCodec: MCodec[Nothing]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given nullCodec: MCodec[Null]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given optionCodec: [T : MCodec] => optionCodec[T]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given seqCodec: [C <: (Seq), T] => (MCodec[T], Factory[T, C[T]]) => ListCodec[C[T]]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given setCodec: [C <: (Set), T] => (MCodec[T], Factory[T, C[T]]) => ListCodec[C[T]]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given treeMapFactory: [K, V] => JMapFactory[K, V, TreeMap[K, V]]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
given treeSetFactory: [A] => JFactory[A, TreeSet[A]]

Attributes

Inherited from:
JavaCodecs
Source
JavaCodecs.scala
inline given tupleCodec: [T <: Tuple] => TupleCodec[T]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given vectorCodec: [T : MCodec] => ListCodec[Vector[T]]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala
given voidCodec: MCodec[Void | Null]

Attributes

Inherited from:
StdCodecs
Source
StdCodecs.scala