write

expect abstract fun write(source: ByteArray, offset: Int = 0, limit: Int = source.size - offset)

Write limit bytes from source starting at offset


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

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

actual abstract fun write(source: ByteArray, offset: Int, limit: Int)

Write limit bytes from source starting at offset


actual abstract fun write(source: <Error class: unknown class>, byteCount: Long)

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