write

expect abstract fun write(source: Buffer, byteCount: Long)(source)

Removes byteCount bytes from source and appends them to this sink.

Parameters

source

the source to read data from.

byteCount

the number of bytes to write.

Throws

when the source's size is below byteCount or byteCount is negative.

when the sink is closed.

when some I/O error occurs.

actual abstract fun write(source: Buffer, byteCount: Long)(source)
actual abstract fun write(source: Buffer, byteCount: Long)(source)
actual abstract fun write(source: Buffer, byteCount: Long)(source)
actual abstract fun write(source: Buffer, byteCount: Long)(source)