read

expect open override fun read(sink: SdkBuffer, limit: Long): Long

Remove at least 1 byte, and up-to limit bytes from this and appends them to sink. Returns the number of bytes read, or -1 if this source is exhausted.


expect open override fun read(sink: ByteArray, offset: Int, limit: Int): Int

Read up to limit bytes and write them to sink starting at offset

open override fun read(dst: ByteBuffer): Int
actual open fun read(sink: SdkBuffer, limit: Long): Long


actual open override fun read(sink: ByteArray, offset: Int, limit: Int): Int

Read up to limit bytes and write them to sink starting at offset