BufferedStreamBase

class BufferedStreamBase(val base: AsyncStreamBase, val blockSize: Int = 2048, val blocksToRead: Int = 16) : AsyncStreamBase

Constructors

Link copied to clipboard
constructor(base: AsyncStreamBase, blockSize: Int = 2048, blocksToRead: Int = 16)

Properties

Link copied to clipboard
Link copied to clipboard
val blockSize: Int = 2048
Link copied to clipboard
val blocksToRead: Int = 16
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun _read(position: Long, buffer: ByteArray, offset: Int, len: Int): Int
Link copied to clipboard
open suspend override fun close()
Link copied to clipboard
open suspend override fun getLength(): Long
Link copied to clipboard
open suspend fun hasLength(): Boolean
Link copied to clipboard
open suspend override fun read(position: Long, buffer: ByteArray, offset: Int, len: Int): Int
Link copied to clipboard
suspend fun AsyncStreamBase.readBytes(position: Long, count: Int): ByteArray
Link copied to clipboard
open suspend override fun setLength(value: Long)
Link copied to clipboard
Link copied to clipboard
open suspend override fun write(position: Long, buffer: ByteArray, offset: Int, len: Int)