KotlinxBinarySerializer

data class KotlinxBinarySerializer<T>(serializer: KSerializer<T>, format: BinaryFormat) : KotlinxSerializer<T, ByteArray>

A serializer that uses a kotlinx KSerializer with a BinaryFormat.

Constructors

Link copied to clipboard
fun <T> KotlinxBinarySerializer(serializer: KSerializer<T>, format: BinaryFormat)

Functions

Link copied to clipboard
open override fun deserialize(data: ByteArray): T
Link copied to clipboard
open override fun serialize(data: T): ByteArray

Properties

Link copied to clipboard
val format: BinaryFormat
Link copied to clipboard
open override val serializer: KSerializer<T>

Sources

Link copied to clipboard