fun ByteReadChannel(content: ByteArray): ByteReadChannel
fun ByteReadChannel(content: ByteArray, offset: Int): 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.
expect fun ByteReadChannel(content: ByteArray, offset: Int, length: Int): 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.