write

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

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

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

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

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

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