https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

rtsketo

01/18/2023, 9:36 AM
First time using KMP, I'm trying to make a small library and there are some standard functions missing like
String.toByteArray(..)
and some classes like Charsets. At the site it is stated that it's supported on JVM, JS, Native, etc... What am I doing wrong?
z

zsmb

01/18/2023, 9:40 AM
toByteArray
is shown as JVM-only
The chips at the top here are filters you can toggle, but the specific function’s availability is marked by the green dot next to it (for JVM)
r

rtsketo

01/18/2023, 9:40 AM
Yes I just noticed that, I was about to correct myself. I thought these meant it's supported
Thanks for the fast response!
2 Views