seek

abstract fun seek(offset: Long, whence: Int): Long

Sets the offset, measured from whence, at which the next read or write occurs.

Return

the new position within the stream.

Parameters

offset

the new position in the stream, interpreted according to whence.

whence

the reference point for the offset: SEEK_SET (start of stream), SEEK_CUR (current position), or SEEK_END (end of stream).


abstract fun seek(position: Long): Long