readFully

expect abstract suspend fun readFully(dst: ByteArray, offset: Int, length: Int)

Reads all length bytes to dst buffer or fails if channel has been closed. Suspends if not enough bytes available.


expect abstract suspend fun readFully(dst: IoBuffer, n: Int)
abstract suspend fun readFully(dst: ArrayBuffer, offset: Int, length: Int)
actual abstract suspend fun readFully(dst: IoBuffer, n: Int)


actual abstract suspend fun readFully(dst: ByteArray, offset: Int, length: Int)

Reads all length bytes to dst buffer or fails if channel has been closed. Suspends if not enough bytes available.

abstract suspend fun readFully(dst: ByteBuffer): Int
actual abstract suspend fun readFully(dst: IoBuffer, n: Int)


actual abstract suspend fun readFully(dst: ByteArray, offset: Int, length: Int)

Reads all length bytes to dst buffer or fails if channel has been closed. Suspends if not enough bytes available.

abstract suspend fun readFully(dst: <ERROR CLASS><<ERROR CLASS>>, offset: Int, length: Int)
abstract suspend fun readFully(dst: <ERROR CLASS><<ERROR CLASS>>, offset: Long, length: Long)
actual abstract suspend fun readFully(dst: ByteArray, offset: Int, length: Int)

Reads all length bytes to dst buffer or fails if channel has been closed. Suspends if not enough bytes available.


actual abstract suspend fun readFully(dst: IoBuffer, n: Int)

Reads all length bytes to dst buffer or fails if channel has been closed. Suspends if not enough bytes available.