in my multiplatform project with no luck. What’s the idea behind converting strings to bytes and vice versa? Should I write platform-specific code at this point?
nestserau
11/13/2018, 2:21 PM
Okay, I see that
kotlin-stdlib/kotlin.native/toUtf8
is available on String. But I cannot invoke it. What am I doing wrong?
l
Leonid Popescu
11/14/2018, 7:43 AM
there is
String.toByteArray
in
kotlinx.io.core
Leonid Popescu
11/14/2018, 7:43 AM
you would need to add the proper dependency
in common source set: