How to convert CValues to List in Kotlin/Native (or iterate)?

18 Views Asked by At

I have a CValues<VkLayerProperties> which is passed to a C function so that it can fill the array.

    val layerProperties = createValues<VkLayerProperties>(layerCount.value.toInt()) {}
    vkEnumerateInstanceLayerProperties(layerCount.ptr, layerProperties.ptr)

How do I convert this array to a List or how do I iterate over it in Kotlin?

0

There are 0 best solutions below