ktor-utils / io.ktor.util / kotlinx.coroutines.io.ByteReadChannel / toByteArray

toByteArray

suspend fun ByteReadChannel.toByteArray(): ByteArray

Read channel to byte array.