wvlet.airframe.codec.PrimitiveCodec$.AnyCodec
See theAnyCodec companion object
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.
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
- Graph
-
- Supertypes
-
trait MessageCodec[Any]trait LogSupporttrait LazyLoggertrait LoggingMethodstrait Serializableclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
A shortcut for fromMsgPack(StringCodec.toMsgPack(s))
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Converting the object into MessagePack (= Array[Byte])
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException
Converting the input MessagePack into an object. If the conversion fails, throw an IllegalArgumentException
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- MessageCodec
Attributes
- Inherited from:
- LoggingMethods
Attributes
- Inherited from:
- LoggingMethods
In this article