- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for encodeClass (0.15 sec)
-
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Contexts.kt
override suspend fun write(value: Any?) { getCodec().run { encode(value) } } override fun writeClass(type: Class<*>) { classEncoder.run { encodeClass(type) } } // TODO: consider interning strings override fun writeString(string: CharSequence) = encoder.writeString(string)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 7.3K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/serialize/DefaultClassEncoder.kt
private val scopeLookup: ScopeLookup ) : ClassEncoder { private val classes = WriteIdentities() private val scopes = WriteIdentities() override fun WriteContext.encodeClass(type: Class<*>) { val id = classes.getId(type) if (id != null) { writeSmallInt(id) } else { val scope = scopeLookup.scopeFor(type.classLoader)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 3.6K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializer.kt
) } private class EnvironmentEncoder : ClassEncoder { private val refs = IdentityHashMap<Class<*>, Int>() override fun WriteContext.encodeClass(type: Class<*>) { writeSmallInt(refs.computeIfAbsent(type) { refs.size }) } fun getResultingEnvironment(): Map<Int, Any> = refs.invert() } private
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:30 UTC 2024 - 5.9K bytes - Viewed (0)