readRegistryReference

fun <T> InputStream.readRegistryReference(reader: (InputStream) -> T, registry: Map<Int, T>): Outcome<T>