https://kotlinlang.org logo
m

Michal Klimczak

04/03/2021, 5:49 PM
How do I write kotlin
ByteArray
to ios
NSOutputtream
?
Copy code
fun writeBytes(bytes: ByteArray, outputStream: NSOutputStream){
        outputStream.write(WHAT NOW)
    }
Or something similar that lets me write a byte stream to a file on ios.
I found something like this, but it seems to be extremely slow, the file loads many, many times slower than on jvm. https://github.com/cquemin/Krypto/blob/5e32d211e42d4a4ce47a2802f3125d5cad9b2b4f/co[…]m/island/yoshiz/mpp/krypto/common/model/streams/OutputStream.kt Will probably just try okio 3.0...
27 Views