Default

object Default : Cbor(source)

The default instance of Cbor. Neither writes nor verifies tags. Uses indefinite length encoding by default.

Properties

Link copied to clipboard
Link copied to clipboard

Preconfigured instance of Cbor for COSE compliance. Encodes and verifies all tags, uses definite length encoding and prefers labels to serial names. DOES NOT sort CBOR map keys; declare them in canonical order for full cbor compliance!

Link copied to clipboard

Functions

Link copied to clipboard
open override fun <T> decodeFromByteArray(deserializer: DeserializationStrategy<T>, bytes: ByteArray): T
Link copied to clipboard
open override fun <T> encodeToByteArray(serializer: SerializationStrategy<T>, value: T): ByteArray