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

toByteArray

suspend fun ByteReadChannel.toByteArray(limit: Int = Int.MAX_VALUE): ByteArray

Convert ByteReadChannel to ByteArray