SizedCodec

mcodec.SizedCodec
trait SizedCodec[T]

A codec able to report the exact number of elements/fields it will write for a value.

Attributes

Source
BaseCodecs.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class FlatSumCodec[T]
class NestedSumCodec[T]
class ProductCodec[T]
class SingletonCodec[T]

Members list

Value members

Abstract methods

def sizeOf(value: T): Int

Attributes

Source
BaseCodecs.scala