z3ntu
02/24/2020, 10:10 PMwchar_t *
in C that I try to convert to a kotlin string with kotlin native. I've used .toKStringFromUtf32()
which works well but it seems that the string has a trailing null byte which is not so pretty 🙂 Is that expected behavior? The documentation states Returns: the [kotlin.String] decoded from given zero-terminated UTF-32-encoded C string.
so my interpretation would be that this is a bug?Dominaezzz
02/24/2020, 10:16 PMkotlin.String
has a \0
in it?Dominaezzz
02/24/2020, 10:22 PMz3ntu
02/24/2020, 10:31 PMz3ntu
02/24/2020, 10:32 PMDominaezzz
02/24/2020, 10:34 PMz3ntu
02/24/2020, 10:34 PMz3ntu
02/24/2020, 10:35 PMDominaezzz
02/24/2020, 10:45 PMDominaezzz
02/24/2020, 10:45 PM