write Class
fun writeClass(kmClass: KmClass, metadataVersion: IntArray = COMPATIBLE_METADATA_VERSION, extraInt: Int = 0): Metadata
Writes contents of kmClass as the class metadata.
Parameters
metadata Version
metadata version to be written to the metadata (see Metadata.metadataVersion), KotlinClassMetadata.COMPATIBLE_METADATA_VERSION by default. Cannot be less (lexicographically) than [1, 4]
extra Int
the value of the class-level flags to be written to the metadata (see Metadata.extraInt), 0 by default
Throws
if kmClass is not correct and cannot be written or if metadataVersion is not supported for writing.