Files
kotlin-fork/libraries/kotlinx-metadata
Leonid Startsev b919a12274 Restructure KotlinClass(Module)Metadata.write/read:
- Write now returns result (Metadata or ByteArray) directly without re-wrapping it;
- annotationData/bytes is private to avoid unsoundness if external client corrupts it;
- .toXxx() do not throw exceptions anymore and deprecated. Exceptions are thrown only from read/write;
- Instead of toXxx(), properties like .kmClass should be used instead. They're initialized eagerly and return a view without copying.
- KotlinClassMetadata.Unknown is now a data object, as no useful information is exposed

#KT-59365 Fixed
2023-06-19 17:54:18 +00:00
..

kotlinx-metadata

This is the platform-agnostic part of the Kotlin Metadata library, intended to provide the possibility to read and modify metadata of Kotlin declarations in the binary (.class, .js) files emitted by the Kotlin compiler. This part of the library is currently not released on its own. Please refer to kotlinx-metadata-jvm for instructions on how to load and modify Kotlin Metadata in JVM binaries (.class and .kotlin_module files).