writeFully

abstract suspend fun writeFully(
    src: ByteArray,
    offset: Int,
    length: Int
): Unit

Writes all src bytes and suspends until all bytes written. Causes flush if buffer filled up or when autoFlush Crashes if channel get closed while writing.

open suspend fun writeFully(src: ByteArray): Unit
abstract suspend fun writeFully(src: ByteBuffer): Unit
abstract suspend fun writeFully(src: BufferView): Unit