PrimitiveCodec
wvlet.airframe.codec.PrimitiveCodec
object PrimitiveCodec
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PrimitiveCodec.type
Members list
Type members
Classlikes
object AnyArrayCodec extends MessageCodec[Array[Any]], PrimitiveArrayCodec
Attributes
- Supertypes
-
trait PrimitiveArrayCodectrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
AnyArrayCodec.type
class AnyCodec(codecFactory: MessageCodecFactory, knownSurfaces: Seq[Surface]) extends MessageCodec[Any], AnyCodecCompat
Codec for Any values. This only supports very basic types to enable packing/unpacking collections like Seq[Any], Map[Any, Any] at ease.
Codec for Any values. This only supports very basic types to enable packing/unpacking collections like Seq[Any], Map[Any, Any] at ease.
Another option to implement AnyCodec is packing pairs of (type, value), but we will not take this approach as this will require many bytes to fully encode type names.
Attributes
- Companion
- object
- Supertypes
-
trait AnyCodecCompattrait MessageCodec[Any]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
object AnyCodec
object BigIntCodec extends PrimitiveCodec[BigInt]
Attributes
- Supertypes
-
trait PrimitiveCodec[BigInt]trait MessageCodec[BigInt]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
BigIntCodec.type
object BigIntegerCodec extends PrimitiveCodec[BigInteger]
Attributes
- Supertypes
-
trait PrimitiveCodec[BigInteger]trait MessageCodec[BigInteger]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
BigIntegerCodec.type
object BooleanArrayCodec extends MessageCodec[Array[Boolean]], PrimitiveArrayCodec
Attributes
- Supertypes
-
trait PrimitiveArrayCodectrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
BooleanArrayCodec.type
object BooleanCodec extends PrimitiveCodec[Boolean]
Attributes
- Supertypes
-
trait PrimitiveCodec[Boolean]trait MessageCodec[Boolean]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
BooleanCodec.type
object ByteArrayCodec extends MessageCodec[Array[Byte]]
Attributes
- Supertypes
-
trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
ByteArrayCodec.type
object ByteCodec extends PrimitiveCodec[Byte]
Attributes
- Supertypes
-
trait PrimitiveCodec[Byte]trait MessageCodec[Byte]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
ByteCodec.type
object CharArrayCodec extends MessageCodec[Array[Char]], PrimitiveArrayCodec
Attributes
- Supertypes
-
trait PrimitiveArrayCodectrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
CharArrayCodec.type
object CharCodec extends PrimitiveCodec[Char]
Attributes
- Supertypes
-
trait PrimitiveCodec[Char]trait MessageCodec[Char]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
CharCodec.type
object DoubleArrayCodec extends MessageCodec[Array[Double]], PrimitiveArrayCodec
Attributes
- Supertypes
-
trait PrimitiveArrayCodectrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
DoubleArrayCodec.type
object DoubleCodec extends PrimitiveCodec[Double]
Attributes
- Supertypes
-
trait PrimitiveCodec[Double]trait MessageCodec[Double]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
DoubleCodec.type
object FloatArrayCodec extends MessageCodec[Array[Float]], PrimitiveArrayCodec
Attributes
- Supertypes
-
trait PrimitiveArrayCodectrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
FloatArrayCodec.type
object FloatCodec extends PrimitiveCodec[Float]
Attributes
- Supertypes
-
trait PrimitiveCodec[Float]trait MessageCodec[Float]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
FloatCodec.type
object IntArrayCodec extends MessageCodec[Array[Int]], PrimitiveArrayCodec
Attributes
- Supertypes
-
trait PrimitiveArrayCodectrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
IntArrayCodec.type
object IntCodec extends PrimitiveCodec[Int]
Attributes
- Supertypes
-
trait PrimitiveCodec[Int]trait MessageCodec[Int]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
IntCodec.type
object LongArrayCodec extends MessageCodec[Array[Long]], PrimitiveArrayCodec
Attributes
- Supertypes
-
trait PrimitiveArrayCodectrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
LongArrayCodec.type
object LongCodec extends PrimitiveCodec[Long]
Attributes
- Supertypes
-
trait PrimitiveCodec[Long]trait MessageCodec[Long]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
LongCodec.type
trait PrimitiveArrayCodec
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object AnyArrayCodec.typeobject BooleanArrayCodec.typeobject CharArrayCodec.typeobject DoubleArrayCodec.typeobject FloatArrayCodec.typeobject IntArrayCodec.typeobject LongArrayCodec.typeobject ShortArrayCodec.typeobject StringArrayCodec.typeShow all
- Self type
-
MessageCodec[_]
trait PrimitiveCodec[A] extends MessageCodec[A]
Attributes
- Supertypes
-
trait MessageCodec[A]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
object BigIntCodec.typeobject BigIntegerCodec.typeobject BooleanCodec.typeobject ByteCodec.typeobject CharCodec.typeobject DoubleCodec.typeobject FloatCodec.typeobject IntCodec.typeobject LongCodec.typeobject ShortCodec.typeobject StringCodec.typeobject UnitCodec.typeShow all
object RawMsgPackCodec extends MessageCodec[MsgPack]
Attributes
- Supertypes
-
trait MessageCodec[MsgPack]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
RawMsgPackCodec.type
object ShortArrayCodec extends MessageCodec[Array[Short]], PrimitiveArrayCodec
Attributes
- Supertypes
-
trait PrimitiveArrayCodectrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
ShortArrayCodec.type
object ShortCodec extends PrimitiveCodec[Short]
Attributes
- Supertypes
-
trait PrimitiveCodec[Short]trait MessageCodec[Short]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
ShortCodec.type
object StringArrayCodec extends MessageCodec[Array[String]], PrimitiveArrayCodec
Attributes
- Supertypes
-
trait PrimitiveArrayCodectrait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
StringArrayCodec.type
object StringCodec extends PrimitiveCodec[String]
Attributes
- Supertypes
-
trait PrimitiveCodec[String]trait MessageCodec[String]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
StringCodec.type
object UnitCodec extends PrimitiveCodec[Unit]
Attributes
- Supertypes
-
trait PrimitiveCodec[Unit]trait MessageCodec[Unit]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
UnitCodec.type
object ValueCodec extends MessageCodec[Value]
MessagePack value codec
MessagePack value codec
Attributes
- Supertypes
-
trait MessageCodec[Value]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
-
ValueCodec.type
Value members
Concrete fields
val primitiveArrayCodec: Map[Surface, MessageCodec[_ >: Array[Float] & Array[Double] & Array[Boolean] & Array[Short] & Array[Char] & Array[Int] & Array[Long] & Array[String] & Array[Byte] & Array[Any] <: Array[Float] | Array[Double] | Array[Boolean] | Array[Short] | Array[Char] | Array[Int] | Array[Long] | Array[String] | Array[Byte] | Array[Any]]]
In this article