toByteArray

Read a channel to byte array.

expect fun <Error class: unknown class>.toByteArray(): ByteArray