sdeleuze
07/25/2021, 8:02 PMnapperley
07/25/2021, 11:40 PMnapperley
07/25/2021, 11:42 PMnapperley
07/25/2021, 11:46 PMnapperley
07/25/2021, 11:51 PMCPointer<ByteVar>?
, and converts the fake C string to a real Kotlin string via the toKString
function (the main way to do it). Something similar would need to be in place with the WASM platform.napperley
07/25/2021, 11:53 PMaltavir
07/26/2021, 6:10 AMsdeleuze
07/26/2021, 7:01 AMSvyatoslav Kuzmich [JB]
07/26/2021, 11:18 AMsdeleuze
07/26/2021, 11:35 AMsdeleuze
07/26/2021, 11:36 AMsdeleuze
07/26/2021, 11:53 AMSvyatoslav Kuzmich [JB]
07/26/2021, 2:30 PMIf UTF-8 is chosen for Wasm String early august, will Kotlin/Wasm use that natively?We would want to still use WTF-16 for multiplatform consistency. But I doubt that UTF-8 would be chosen as the only encoding for browser API and JS interop, because JS and DOM strings are WTF-16 and many languages with matching encoding would want to pass strings back and forth without double conversion.
sdeleuze
07/26/2021, 2:33 PM@JsExport
, maybe via something like @WasmExport
?sdeleuze
07/26/2021, 2:35 PMSvyatoslav Kuzmich [JB]
07/26/2021, 2:36 PMsdeleuze
07/26/2021, 2:36 PMsdeleuze
07/26/2021, 2:37 PMsdeleuze
07/26/2021, 2:37 PMSvyatoslav Kuzmich [JB]
07/26/2021, 2:47 PMsdeleuze
07/26/2021, 4:11 PMsdeleuze
07/26/2021, 5:09 PMnapperley
07/26/2021, 11:11 PMSvyatoslav Kuzmich [JB]
07/27/2021, 8:38 AM