Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for readElement (0.09 sec)

  1. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Combinators.kt

            writeElement(element)
        }
    }
    
    
    inline fun Decoder.readCollection(readElement: () -> Unit) {
        val size = readSmallInt()
        for (i in 0 until size) {
            readElement()
        }
    }
    
    
    inline fun <T, C : MutableCollection<T>> Decoder.readCollectionInto(
        containerForSize: (Int) -> C,
        readElement: () -> T
    ): C {
        val size = readSmallInt()
        val container = containerForSize(size)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:59:39 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top