December 2017
Intermediate to advanced
260 pages
7h 34m
English
Unlike other pointers, the parameters of const char* type are represented as a Kotlin strings. So it is possible to pass any Kotlin string to the binding, expecting C string.
To manually convert a C string to a Kotlin string, use the following:
fun CPointer<ByteRef>.toKString(): String
This extension function helps to convert const char* to a Kotlin string.
Read now
Unlock full access