PrimitiveCodec
object PrimitiveCodec
Type members
Classlikes
class AnyCodec(codecFactory: MessageCodecFactory, knownSurfaces: Seq[Surface]) extends MessageCodec[Any]
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.
- Companion:
- object
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]]]