equals

operator override fun equals(other: Any?): Boolean

Returns true if the other object is an instance of ZeroAsByteSerializer, or returns false otherwise.


Calling from Kotlin

Here's an example of calling this method from Kotlin code:

val serializer = ZeroAsByteSerializer()
val other = ZeroAsByteSerializer()
val equality: Boolean = serializer == other
val message = "Instances of '$serializer' should be equal."
assertTrue(equality, message)