readResponseBytes
abstract fun readResponseBytes(dst: ByteArray, offset: Int = 0, length: Int = dst.size - offset): Int
Reads up to length queued response bytes into dst.
Return
Number of bytes copied, or 0 when no response is pending.
Parameters
dst
The destination byte array to copy response bytes into.
offset
The starting offset in dst at which to begin writing bytes.
length
The maximum number of bytes to read from the queue.