toWrappedList

inline fun <T : CPointed, O> CArray<T>.toWrappedList(wrap: (CPointer<T>) -> O): List<O>

Turn a NULL terminated C Array into a Kotlin List, with action to wrap each index

set operations on the returned array does not modify the original C Array.


inline fun <T : CPointed, O> CArray<T>.toWrappedList(size: Int, wrap: (CPointer<T>) -> O): List<O>

Turn a C Array into a Kotlin List with a known size, with action to wrap each index

set operations on the returned array does not modify the original C Array.