write

fun write(kmModule: KmModule, metadataVersion: IntArray = COMPATIBLE_METADATA_VERSION): ByteArray

Writes the metadata of the Kotlin module file.

Parameters

metadataVersion

metadata version to be written to the metadata (see Metadata.metadataVersion), KotlinClassMetadata.COMPATIBLE_METADATA_VERSION by default

Throws

if kmModule is not correct and cannot be written or if metadataVersion is not supported for writing.