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)
Content copied to clipboard