KotlinxBinarySerializationHandler

data class KotlinxBinarySerializationHandler(format: BinaryFormat, contentType: String) : BaseSerializationHandler<ByteArray>

Kotlinx serialization handler that uses a BinaryFormat. Serializes arguments as a composite structure, as if they were properties in a class.

Constructors

Link copied to clipboard
fun KotlinxBinarySerializationHandler(format: BinaryFormat, contentType: String = byteArrayContentType)

Functions

Link copied to clipboard
open override fun deserializeArguments(arguments: ByteArray, serializers: ArgumentSerializers<ByteArray>): Map<String, *>
Link copied to clipboard
open override fun getSerializer(type: KType): KotlinxBinarySerializer<*>
Link copied to clipboard
open override fun serializeArguments(arguments: Map<String, *>, serializers: ArgumentSerializers<ByteArray>): ByteArray

Properties

Link copied to clipboard
open override val contentType: String
Link copied to clipboard
val format: BinaryFormat

Sources

Link copied to clipboard