YoastSEO_Vendor\GuzzleHttp\Psr7
LimitStream::seek() public Yoast 1.0
Allow for a bounded seek on the read limited stream {@inheritdoc}
{} Это метод класса: LimitStream{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$LimitStream = new LimitStream(); $LimitStream->seek( $offset, $whence );
Код LimitStream::seek() LimitStream::seek Yoast 15.6.2
public function seek($offset, $whence = \SEEK_SET)
{
if ($whence !== \SEEK_SET || $offset < 0) {
throw new \RuntimeException(\sprintf('Cannot seek to offset % with whence %s', $offset, $whence));
}
$offset += $this->offset;
if ($this->limit !== -1) {
if ($offset > $this->offset + $this->limit) {
$offset = $this->offset + $this->limit;
}
}
$this->stream->seek($offset);
}