ByteReadChannel

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

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

Report a problem


fun ByteReadChannel(text: String, charset: Charset = Charsets.UTF_8): ByteReadChannel(source)
fun ByteReadChannel(source: Source): ByteReadChannel(source)
fun ByteReadChannel(content: ByteBuffer): <Error class: unknown class>(source)

Creates a channel for reading from the specified byte buffer.

Report a problem