Package-level declarations

Concise Binary Object Representation (CBOR) format implementation, as per RFC 7049.

Types

Link copied to clipboard

Specifies that a ByteArray shall be encoded/decoded as CBOR major type 2: a byte string. For types other than ByteArray, ByteString will have no effect.

Link copied to clipboard

Implements encoding and decoding classes to/from bytes using CBOR specification. It is typically used by constructing an application-specific instance, with configured behaviour, and, if necessary, registered custom serializers (in SerializersModule provided by serializersModule constructor parameter).

Link copied to clipboard

Builder of the Cbor instance provided by Cbor factory function.

Functions

Link copied to clipboard
fun Cbor(from: Cbor = Cbor, builderAction: CborBuilder.() -> Unit): Cbor

Creates an instance of Cbor configured from the optionally given Cbor instance and adjusted with builderAction.