BinarySerializer

This serializer is useful with binary formats to reduce size. You may also use it with text formats like json, but it is not that useful (because there will be no size gain) and a serialized Uuid is not human-readable.

With this serializer, a Uuid is represented as an array of long with two elements.

Example:

Cbor.encodeToByteArray(BinarySerializer, myUUID)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Uuid
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Uuid)