writeFileFacade

fun writeFileFacade(kmPackage: KmPackage, metadataVersion: IntArray = COMPATIBLE_METADATA_VERSION, extraInt: Int = 0): Metadata

Writes kmPackage contents as the file facade metadata.

Parameters

metadataVersion

metadata version to be written to the metadata (see Metadata.metadataVersion), KotlinClassMetadata.COMPATIBLE_METADATA_VERSION by default. Cannot be less (lexicographically) than [1, 4]

extraInt

the value of the class-level flags to be written to the metadata (see Metadata.extraInt), 0 by default

Throws

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