Stream.seek

Seeks somewhere into the stream.

class Stream
abstract
void
seek
(,
ptrdiff_t amount
)

Parameters

from SeekFrom

The 'origin' from where to seek from.

amount ptrdiff_t

The amount to seek by. Note that negative numbers can be used to go backwards.

Throws

StreamCannotSeekException if this stream does not support seeking. StreamDisposedException if this stream has been disposed of.

Meta