UniversalMarshaller

open class UniversalMarshaller<T : Any>(    val _type: KClass<*>,     val reader: (SerializationCtx, AbstractBuffer) -> T,     val writer: (SerializationCtx, AbstractBuffer, T) -> Unit,     val predefinedId: Int? = null) : IMarshaller<T>

Constructors

Link copied to clipboard
fun <T : Any> UniversalMarshaller(    _type: KClass<*>,     reader: (SerializationCtx, AbstractBuffer) -> T,     writer: (SerializationCtx, AbstractBuffer, T) -> Unit,     predefinedId: Int? = null)

Functions

Link copied to clipboard
open override fun read(ctx: SerializationCtx, buffer: AbstractBuffer): T
Link copied to clipboard
open override fun write(    ctx: SerializationCtx,     buffer: AbstractBuffer,     value: T)

Properties

Link copied to clipboard
open override val _type: KClass<*>
Link copied to clipboard
open override val id: RdId
Link copied to clipboard
val predefinedId: Int? = null
Link copied to clipboard
val reader: (SerializationCtx, AbstractBuffer) -> T
Link copied to clipboard
val writer: (SerializationCtx, AbstractBuffer, T) -> Unit

Inheritors

Link copied to clipboard