toByteArray

suspend fun ByteReadChannel.toByteArray(): ByteArray

Read channel to byte array.