ByteReadChannel

fun ByteReadChannel(content: ByteArray, offset: Int = 0, length: Int = content.size): ByteReadChannel

Creates a channel for reading from the specified byte array. Please note that it could use content directly or copy its bytes depending on the platform


fun ByteReadChannel(text: String, charset: Charset = Charsets.UTF_8): ByteReadChannel
fun ByteReadChannel(source: Source): ByteReadChannel

Creates a channel for reading from the specified byte buffer.