public function seek($offset, $whence = \SEEK_SET) : void
	{
		if (! \is_resource($this->resource))
		{
			throw new Exception\UnseekableStreamException('Stream is not resourceable');
		}

		if (! $this->isSeekable())
		{
			throw new Exception\UnseekableStreamException('Stream is not seekable');
		}

		$result = \fseek($this->resource, $offset, $whence);

		if (! (0 === $result))
		{
			throw new Exception\UnseekableStreamException('Unable to move the stream pointer to the given position');
		}
	}
public function seek($offset, $whence = \SEEK_SET) : void
	{
		if (! \is_resource($this->resource))
		{
			throw new Exception\UnseekableStreamException('Stream is not resourceable');
		}

		if (! $this->isSeekable())
		{
			throw new Exception\UnseekableStreamException('Stream is not seekable');
		}

		$result = \fseek($this->resource, $offset, $whence);

		if (! (0 === $result))
		{
			throw new Exception\UnseekableStreamException('Unable to move the stream pointer to the given position');
		}
	}
public function seek ( $ offset , $ whence = \ SEEK_SET ) : void { if ( ! \ is_resource ( $ this -> resource ) ) { throw new Exception \ UnseekableStreamException ( 'Stream is not resourceable' ) ; } if ( ! $ this -> isSeekable ( ) ) { throw new Exception \ UnseekableStreamException ( 'Stream is not seekable' ) ; } $ result = \ fseek ( $ this -> resource , $ offset , $ whence ) ; if ( ! ( 0 === $ result ) ) { throw new Exception \ UnseekableStreamException ( 'Unable to move the stream pointer to the given position' ) ; } }
Moves the stream pointer to the given position

@param int $offset
@param int $whence

@return void

@throws Exception\UnseekableStreamException

@link http://php.net/manual/en/function.fseek.php
Moves the stream pointer to the given position