GenericMapExtensionSerializer

class GenericMapExtensionSerializer<K, V>(keySerializer: KSerializer<K>, valueSerializer: KSerializer<V>) : BaseMsgPackExtensionSerializer<GenericMap<K, V>>

A custom serializer for serializing GenericMap instances using the MsgPack format.

Parameters

K

The key type of the map.

V

The value type of the map.

Constructors

Link copied to clipboard
constructor(keySerializer: KSerializer<K>, valueSerializer: KSerializer<V>)

Properties

Link copied to clipboard
override val descriptor: SerialDescriptor
Link copied to clipboard
open override val extTypeId: Byte = 1

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): GenericMap<K, V>

open override fun deserialize(extension: MsgPackExtension): GenericMap<K, V>

Deserializes the given MsgPackExtension into a GenericMap instance.

Link copied to clipboard
open override fun serialize(encoder: Encoder, value: GenericMap<K, V>)

open override fun serialize(extension: GenericMap<K, V>): MsgPackExtension

Serializes the given GenericMap instance into a MsgPackExtension.