mark

abstract fun mark(readAhead: Int)

Mark the current position in the channel. Subsequent calls to reset will attempt to reset this position.

Parameters

readAhead

The number of characters to preserve without invalidating the mark. If more than this limit are read, then a subsequent call to reset() will fail.

Throws

If the mark could not be set for any reason.