write

expect abstract fun write(byteString: ByteString): BufferedSink
expect abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink


expect abstract fun write(source: ByteArray): BufferedSink

Like OutputStream.write, this writes a complete byte array to this sink.


expect abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink

Like OutputStream.write, this writes byteCount bytes of source, starting at offset.


expect abstract fun write(source: Source, byteCount: Long): BufferedSink

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

actual abstract fun write(byteString: ByteString): BufferedSink
actual abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(source: ByteArray): BufferedSink
actual abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(source: Source, byteCount: Long): BufferedSink
actual abstract fun write(byteString: ByteString): BufferedSink
actual abstract fun write(byteString: ByteString, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(source: ByteArray): BufferedSink
actual abstract fun write(source: ByteArray, offset: Int, byteCount: Int): BufferedSink
actual abstract fun write(source: Source, byteCount: Long): BufferedSink