Companion

object Companion

Functions

Link copied to clipboard
fun <V> empty(): Rga<V>

The empty sequence with no ops.

Link copied to clipboard
fun <V> opSerializer(vSerializer: KSerializer<V>): KSerializer<RgaOp<V>>

The canonical op serializer, without needing an Rga instance — the companion form of OpLogCrdt.opSerializer.

Link copied to clipboard
fun <V> wireSerializer(vSerializer: KSerializer<V>): KSerializer<Rga<V>>

Returns a kotlinx.serialization.KSerializer for Rga<V> that correctly threads vSerializer through the op-log serialization, avoiding the CBOR polymorphism limitation of the compiler-generated Rga$$serializer.