toKStringList

fun <Error class: unknown class><<Error class: unknown class><<Error class: unknown class><<Error class: unknown class>>>>.toKStringList(): List<String>

Extension function to convert a native char** pointer into a Kotlin List of String.

This function treats the array as null-terminated and processes elements until a null is found.

Receiver

A pointer to a null-terminated array of C strings (char**).

Return

A List of String representing the non-null contents of the native char**.


fun <Error class: unknown class><<Error class: unknown class><<Error class: unknown class><<Error class: unknown class>>>>.toKStringList(size: Int): List<String?>

Extension function to convert a native char** pointer into a Kotlin List of nullable String.

This function processes exactly size elements from the array, allowing for the possibility of null values.

Receiver

A pointer to an array of C strings (char**).

Return

A List of nullable String representing the contents of the native char**. Null elements are preserved as null in the resulting list.

Parameters

size

The number of elements to process from the native array.