writeFully

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

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.


expect abstract suspend fun writeFully(src: Buffer)
expect abstract suspend fun writeFully(memory: Memory, startIndex: Int, endIndex: Int)
actual abstract suspend fun writeFully(src: ByteArray, offset: Int, length: Int)

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.


actual abstract suspend fun writeFully(src: Buffer)
actual abstract suspend fun writeFully(memory: Memory, startIndex: Int, endIndex: Int)
abstract suspend fun writeFully(src: ByteBuffer)
actual abstract suspend fun writeFully(src: Buffer)


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

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: CPointer<ByteVar>, offset: Int, length: Int)
abstract suspend fun writeFully(src: CPointer<ByteVar>, offset: Long, length: Long)
actual abstract suspend fun writeFully(src: ByteArray, offset: Int, length: Int)

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.


actual abstract suspend fun writeFully(src: Buffer)
actual abstract suspend fun writeFully(memory: Memory, startIndex: Int, endIndex: Int)