Zhiqiang Bian
09/10/2021, 5:16 PMexpect/actual
the only way to handle this use case?saket
09/11/2021, 6:11 AMIgor Maric
09/13/2021, 8:33 AMfile?.readBytes()
and from iOS
let intArray : [Int8] = bytesToSend
.map { Int8(bitPattern: $0) }
let kotlinByteArray: KotlinByteArray = KotlinByteArray.init(size: Int32(bytesToSend.count))
for (index, element) in intArray.enumerated() {
kotlinByteArray.set(index: Int32(index), value: element)
}
Zhiqiang Bian
09/14/2021, 12:17 PMokio
has an alpha release which includes a multiplatform FileSystem
. It can decode a file into ByteArray on Android. While I have not tried it on iOS.