Hey folks, I am currently working on a multiplatfo...
# kotlin-native
t
Hey folks, I am currently working on a multiplatform library involving some hashing and looking for an equivalent for
String.toByteArray()
, which is just available on the jvm (https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/to-byte-array.html). Any idea how I could do this using kotlin/native or just the common stdlib? https://kotlinlang.slack.com/archives/C3PQML5NU/p1554881432104600
cc @addamsson
a
thx
s
Does anything prevent you from using this function: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native/to-utf8.html ?
t
Just the fact that I didn’t know about it 💯