Companion

object Companion

Collection of methods for reading and writing KotlinModuleMetadata.

Functions

Link copied to clipboard

Parses the given byte array with the .kotlin_module file content and returns the KotlinModuleMetadata instance, or null if this byte array encodes a module with an unsupported metadata version.

Link copied to clipboard
fun write(kmModule: KmModule, metadataVersion: IntArray = COMPATIBLE_METADATA_VERSION): ByteArray

Writes the metadata of the Kotlin module file.