skip

open suspend override fun skip(n: Long): Long

Skips over and discards n bytes of data from the input stream.

The skip method may, for a variety of reasons, end up skipping over some smaller number of bytes, possibly 0. If n is negative, the method will try to skip backwards. The actual number of bytes skipped is returned. If it skips forwards, it returns a positive value. If it skips backwards, it returns a negative value.

Return

The actual number of bytes skipped.

Parameters

n

The number of bytes to skip.

Throws

If an I/O error occurs.