seek

open fun seek(offset: Long, seekOrigin: SeekOrigin): Long

Seeks within the payload to the specified offset.

Return

The new position within the stream, calculated by combining the initial reference point and the offset.

Parameters

offset

The offset in the payload to seek to.

seekOrigin

The origin to seek from.