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.

abstract suspend fun writeFully(src: IoBuffer): Unit
abstract suspend fun writeFully(src: ByteBuffer): Unit