Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for regs (0.05 sec)

  1. 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
    class EnvironmentDecoder(
        val environment: Map<Int, Any>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top