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: ChunkBuffer, n: Int)
abstract suspend fun readFully(dst: ArrayBuffer, offset: Int, length: Int)
actual abstract suspend fun readFully(dst: ChunkBuffer, 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: 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: CPointer<ByteVar>, offset: Int, length: Int)
abstract suspend fun readFully(dst: CPointer<ByteVar>, 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: ChunkBuffer, n: 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: 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: ChunkBuffer, n: Int)