discard

open fun discard(n: Int): Int

Overrides ReadSession.discard

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

Return number of bytes actually discarded, could be 0

open suspend fun discard(max: Long): Long

Overrides ByteReadChannel.discard

Discard up to max bytes

Return number of bytes were discarded