readBytes

fun readBytes(ptr: Int, out: ByteArray): ByteArray
fun readBytes(ptr: Int, size: Int): ByteArray