How do I correctly convert a JS `Uint8Array` to Ko...
# javascript
e
How do I correctly convert a JS
Uint8Array
to Kotlin's
ByteArray
? I need to keep the binary representation intact It seems Kotlin doesn't correctly map U* typed array.
t
ByteArray
is
Int8Array
alias in fact
e
But there is nothing I can do for
Uint8Array
it seems. I can't even expose a
UByteArray
as of now, so I'm forced to use the JS type directly instead, which makes it difficult to be multiplatform
a
Yes, it's true, because the
UByteArray
it's a value-class around the
ByteArray
. Could I ask you to create a ticket in YouTrack with your use-case, so we could discuss it in team ? Also, assign it on me, please
e
@Artem Kobzar I've written a comment on https://youtrack.jetbrains.com/issue/KT-51389, is that place ok? If you want I can attach a bit of code I'm writing too
a
It would be great
174 Views