Add toCValues() extension functions to Arrays of unsigned types (#2417)
This commit is contained in:
committed by
Nikolay Igotti
parent
62e16639a7
commit
b583e8cd7b
@@ -60,3 +60,8 @@ fun cValuesOf(vararg elements: UInt): CValues<UIntVar> =
|
|||||||
|
|
||||||
fun cValuesOf(vararg elements: ULong): CValues<ULongVar> =
|
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)
|
||||||
Reference in New Issue
Block a user