ChannelProvider

class ChannelProvider(val size: Long? = null, val block: () -> ByteReadChannel)

Supplies a new ByteReadChannel.

Parameters

block

returns a new ByteReadChannel

Constructors

Link copied to clipboard
constructor(size: Long? = null, block: () -> ByteReadChannel)

Properties

Link copied to clipboard
Link copied to clipboard
val size: Long? = null

is total number of bytes that can be read from ByteReadChannel or null if size is unknown