ktor-io / io.ktor.utils.io / ByteChannelSequentialBase / writeFully

writeFully

open suspend fun writeFully(src: IoBuffer): Unit

Overrides ByteWriteChannel.writeFully


open suspend fun writeFully(src: Buffer): Unit

Overrides ByteWriteChannel.writeFully


open suspend fun writeFully(memory: Memory, startIndex: Int, endIndex: Int): 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.