write

abstract fun write(obj: T?, writer: ByteWriter)

Writes the given obj of type T? to writer.