toBytes

abstract fun toBytes(data: Format): ByteArray