rd-framework / com.jetbrains.rd.framework / Serializers

Serializers

class Serializers : ISerializers

Constructors

<init>

Serializers()

Properties

marshallers

val marshallers: <ERROR CLASS>

types

val types: <ERROR CLASS>

writers

val writers: <ERROR CLASS>

Functions

get

fun get(id: RdId): IMarshaller<*>?

readPolymorphic

fun <T : Any> readPolymorphic(ctx: SerializationCtx, stream: AbstractBuffer, abstractDeclaration: IAbstractDeclaration<T>?): T

readPolymorphicNullable

fun <T> readPolymorphicNullable(ctx: SerializationCtx, stream: AbstractBuffer, abstractDeclaration: IAbstractDeclaration<T>?): T?

register

fun <T : Any> register(serializer: IMarshaller<T>): Unit

registerSerializersOwnerOnce

fun registerSerializersOwnerOnce(serializersOwner: ISerializersOwner): Unit

writePolymorphic

fun <T : Any> writePolymorphic(ctx: SerializationCtx, stream: AbstractBuffer, value: T): Unit

writePolymorphicNullable

fun <T> writePolymorphicNullable(ctx: SerializationCtx, stream: AbstractBuffer, value: T): Unit

Extension Functions

deepClonePolymorphic

fun <T> T.deepClonePolymorphic(): T