getBytes

abstract fun getBytes(array: ByteArray, start: Int, length: Int = array.size)

Read a ByteArray from the buffer.

Parameters

start

position from the ReadBuffer to be read

length

maximum number of bytes to be written in the buffer