read

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.

Throws

if an error happened while parsing the given byte array, which means that it is either not the content of a .kotlin_module file, or it has been corrupted.