writeFully

open suspend fun writeFully(src: IoBuffer): Unit

Overrides ByteWriteChannel.writeFully

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

Overrides ByteWriteChannel.writeFully

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.