Skip to content

Commit

Permalink
Update gold
Browse files Browse the repository at this point in the history
  • Loading branch information
Iliya-usov committed Nov 5, 2023
1 parent 39353d2 commit 0effd3c
Show file tree
Hide file tree
Showing 16 changed files with 262 additions and 98 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ class CallGeneratedCodeRoot private constructor(
companion object : ISerializersOwner {

override fun registerSerializersCore(serializers: ISerializers) {
serializers.register(Editor)
serializers.register(Es.marshaller)
serializers.register(Abc)
val classLoader = javaClass.classLoader
serializers.register(LazyCompanionMarshaller(RdId(18933576544), classLoader, "call.generated.code.root.Editor"))
serializers.register(LazyCompanionMarshaller(RdId(20513), classLoader, "call.generated.code.root.Es"))
serializers.register(LazyCompanionMarshaller(RdId(631631), classLoader, "call.generated.code.root.Abc"))
CallGeneratedCodeRoot.register(serializers)
}

Expand Down Expand Up @@ -72,6 +73,7 @@ class Abc (

companion object : IMarshaller<Abc> {
override val _type: KClass<Abc> = Abc::class
override val id: RdId get() = RdId(631631)

@Suppress("UNCHECKED_CAST")
override fun read(ctx: SerializationCtx, buffer: AbstractBuffer): Abc {
Expand Down Expand Up @@ -127,6 +129,7 @@ class Editor private constructor(

companion object : IMarshaller<Editor> {
override val _type: KClass<Editor> = Editor::class
override val id: RdId get() = RdId(18933576544)

@Suppress("UNCHECKED_CAST")
override fun read(ctx: SerializationCtx, buffer: AbstractBuffer): Editor {
Expand Down Expand Up @@ -213,8 +216,19 @@ enum class Es {
b,
c;

companion object {
companion object : IMarshaller<EnumSet<Es>> {
val marshaller = FrameworkMarshallers.enumSet<Es>()


override val _type: KClass<Es> = Es::class
override val id: RdId get() = RdId(20513)

override fun read(ctx: SerializationCtx, buffer: AbstractBuffer): EnumSet<Es> {
return marshaller.read(ctx, buffer)
}

override fun write(ctx: SerializationCtx, buffer: AbstractBuffer, value: EnumSet<Es>) {
marshaller.write(ctx, buffer, value)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ class CallGeneratedCodeRoot private constructor(
companion object : ISerializersOwner {

override fun registerSerializersCore(serializers: ISerializers) {
serializers.register(Editor)
serializers.register(Es.marshaller)
serializers.register(Abc)
val classLoader = javaClass.classLoader
serializers.register(LazyCompanionMarshaller(RdId(18933576544), classLoader, "call.generated.code.root.Editor"))
serializers.register(LazyCompanionMarshaller(RdId(20513), classLoader, "call.generated.code.root.Es"))
serializers.register(LazyCompanionMarshaller(RdId(631631), classLoader, "call.generated.code.root.Abc"))
CallGeneratedCodeRoot.register(serializers)
}

Expand Down Expand Up @@ -72,6 +73,7 @@ class Abc (

companion object : IMarshaller<Abc> {
override val _type: KClass<Abc> = Abc::class
override val id: RdId get() = RdId(631631)

@Suppress("UNCHECKED_CAST")
override fun read(ctx: SerializationCtx, buffer: AbstractBuffer): Abc {
Expand Down Expand Up @@ -127,6 +129,7 @@ class Editor private constructor(

companion object : IMarshaller<Editor> {
override val _type: KClass<Editor> = Editor::class
override val id: RdId get() = RdId(18933576544)

@Suppress("UNCHECKED_CAST")
override fun read(ctx: SerializationCtx, buffer: AbstractBuffer): Editor {
Expand Down Expand Up @@ -213,8 +216,19 @@ enum class Es {
b,
c;

companion object {
companion object : IMarshaller<EnumSet<Es>> {
val marshaller = FrameworkMarshallers.enumSet<Es>()


override val _type: KClass<Es> = Es::class
override val id: RdId get() = RdId(20513)

override fun read(ctx: SerializationCtx, buffer: AbstractBuffer): EnumSet<Es> {
return marshaller.read(ctx, buffer)
}

override fun write(ctx: SerializationCtx, buffer: AbstractBuffer, value: EnumSet<Es>) {
marshaller.write(ctx, buffer, value)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class DefaultNlsValuesRoot private constructor(
companion object : ISerializersOwner {

override fun registerSerializersCore(serializers: ISerializers) {
serializers.register(ClassModel)
val classLoader = javaClass.classLoader
serializers.register(LazyCompanionMarshaller(RdId(17439278522805508), classLoader, "DefaultNlsValuesRoot.ClassModel"))
DefaultNlsValuesRoot.register(serializers)
}

Expand Down Expand Up @@ -72,6 +73,7 @@ class ClassModel private constructor(

companion object : IMarshaller<ClassModel> {
override val _type: KClass<ClassModel> = ClassModel::class
override val id: RdId get() = RdId(17439278522805508)

@Suppress("UNCHECKED_CAST")
override fun read(ctx: SerializationCtx, buffer: AbstractBuffer): ClassModel {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class DefaultNlsValuesRoot private constructor(
companion object : ISerializersOwner {

override fun registerSerializersCore(serializers: ISerializers) {
serializers.register(ClassModel)
val classLoader = javaClass.classLoader
serializers.register(LazyCompanionMarshaller(RdId(17439278522805508), classLoader, "DefaultNlsValuesRoot.ClassModel"))
DefaultNlsValuesRoot.register(serializers)
}

Expand Down Expand Up @@ -72,6 +73,7 @@ class ClassModel private constructor(

companion object : IMarshaller<ClassModel> {
override val _type: KClass<ClassModel> = ClassModel::class
override val id: RdId get() = RdId(17439278522805508)

@Suppress("UNCHECKED_CAST")
override fun read(ctx: SerializationCtx, buffer: AbstractBuffer): ClassModel {
Expand Down
Loading

0 comments on commit 0effd3c

Please sign in to comment.