https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
c

Clocks

03/21/2021, 1:16 AM
What is a char converted to in kotlin/native?
Kotlin Char -> C uint16_t (UTF-16 code unit)
C char -> K/N ByteVar
there's automatic
kotlin.String
↔️
const char *
translation but when that doesn't suffice there are tools for managing it yourself, https://kotlinlang.org/docs/native-c-interop.html#strings
3 Views