ktor-io / io.ktor.utils.io / discardExact

discardExact

inline suspend fun ByteReadChannel.discardExact(n: Long): Unit

Discards exactly n bytes or fails if not enough bytes in the channel