https://kotlinlang.org logo
m

mbonnin

06/14/2019, 6:07 PM
Can I convert a kotlin
ByteArray
to a
kolinx.io.core.Input
? I'm mainly interested by the `readByte()`/`readInt()` methods so it should be doable by hand but would prefer not reinventing the wheel if possible.
Copy code
inline fun ByteReadPacket(array: ByteArray, offset: Int = 0, length: Int = array.size): ByteReadPacket
seems to do the job
13 Views