writeVersioned

abstract fun writeVersioned(obj: T, writer: ByteWriter)

Writes the given non-null obj of type T to writer in the current version format.