ByteReadChannel

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

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

fun ByteReadChannel(
    text: String,
    charset: Charset = Charsets.UTF_8
): ByteReadChannel
fun ByteReadChannel(content: ByteBuffer): ByteReadChannel

Creates channel for reading from the specified byte buffer.