Add toCValues() extension functions to Arrays of unsigned types (#2417)

This commit is contained in:
Martin O'Connor
2018-11-29 01:47:24 -05:00
committed by Nikolay Igotti
parent 62e16639a7
commit b583e8cd7b
@@ -59,4 +59,9 @@ fun cValuesOf(vararg elements: UInt): CValues<UIntVar> =
createValues(elements.size) { index -> this.value = elements[index] }
fun cValuesOf(vararg elements: ULong): CValues<ULongVar> =
createValues(elements.size) { index -> this.value = elements[index] }
createValues(elements.size) { index -> this.value = elements[index] }
fun UByteArray.toCValues() = cValuesOf(*this)
fun UShortArray.toCValues() = cValuesOf(*this)
fun UIntArray.toCValues() = cValuesOf(*this)
fun ULongArray.toCValues() = cValuesOf(*this)