pavi2410
06/19/2019, 8:00 PMString.encodeToByteArray
experimental API introduced there. And I have been using String.toByteArray
since always. I want to know why there is such redundancy? What's the difference between them? (I don't think there is much or any difference at all)Marc Knaup
06/19/2019, 8:03 PMString.toByteArray
is available only on the JVM and likely uses the Java standard library internally.
String.encodeToByteArray
is cross-platform and doesn't depend on Java.pavi2410
06/19/2019, 8:09 PMMarc Knaup
06/19/2019, 8:24 PMpavi2410
06/19/2019, 8:31 PMgildor
06/20/2019, 12:36 AM