readBytes

abstract fun readBytes(dst: ByteArray, dstIndex: Int, length: Int)

Reads length amount of bytes into the dst array at the dstIndex offset.


open fun readBytes(dst: ByteArray, length: Int)

Reads length amount of bytes into the dst array.


open fun readBytes(dst: ByteArray)

Reads bytes into the dst array.


open fun readBytes(length: Int): ByteArray

Reads length amount of bytes into a new ByteArray.