I’m working with pixel buffers in multiplatform ri...
# kotlin-native
l
I’m working with pixel buffers in multiplatform right now. I have the pixel buffers processed in shared and sent to some native code. Android is expecting an IntArray, while iOS is expecting a ByteArray. Is there a way to convert an IntArray to a ByteArray (4 bytes per int) without allocation/copy in Kotlin/Native? Pixel buffers can reach megabytes in size. I’m looking for an equivalent to casting to byte* in C.