discardExact

fun Input.discardExact(n: Long)
fun Input.discardExact(n: Int)

Discard exactly n bytes or fail if not enough bytes in the input to be discarded.