kencode

EncodedFormat

open class EncodedFormat(val configuration: EncodedConfiguration) : StringFormat(source)

StringFormat that serializes with a BinaryFormat, applies an optional PayloadTransform, and encodes the bytes with a ByteEncoding. Defaults to PackedFormat and Base62.

Inheritors

Constructors

EncodedFormat

constructor(configuration: EncodedConfiguration)(source)
constructor(codec: ByteEncoding = Base62, transform: PayloadTransform? = null, binaryFormat: BinaryFormat = PackedFormat)(source)

Types

Link copied to clipboard

PackedFormat and Base62 with no transform.

Properties

configuration

serializersModule

open override val serializersModule: SerializersModule(source)

Functions

decodeFromString

open override fun <T> decodeFromString(deserializer: DeserializationStrategy<T>, string: String): T(source)

Throws

if any layer rejects the input, e.g. a checksum mismatch.

encodeToString

open override fun <T> encodeToString(serializer: SerializationStrategy<T>, value: T): String(source)