read

open suspend override fun read(count: Int): ByteArray(source)

Read exactly count bytes from the transport.

Return

ByteArray containing exactly count bytes

Parameters

count

Number of bytes to read

Throws

if the connection is closed or an error occurs