toGPointerCArray
fun List<<Error class: unknown class>>.toGPointerCArray(scope: <Error class: unknown class>, nullTerminate: Boolean = true): <Error class: unknown class><<Error class: unknown class>>
Converts a Kotlin List of gpointer into a native C array (gpointer**
).
This function uses the provided AutofreeScope to allocate the necessary memory for the C array, ensuring that the memory is automatically managed and freed when the scope exits.
Receiver
A List of gpointer to convert.
Return
A pointer to the C array (gpointer**
), null-terminated if nullTerminate is true
.
Parameters
scope
The AutofreeScope used to allocate memory for the native array.
nullTerminate
Whether to append a null
pointer at the end of the array. Defaults to true
.