discard

open override fun discard(n: Int): Int

Discard at most n available bytes or 0 if no bytes available yet

Return

number of bytes actually discarded, could be 0


open suspend override fun discard(max: Long): Long

Discard up to max bytes

Return

number of bytes were discarded