WordPress\AiClientDependencies\Psr\Http\Message
StreamInterface::seek
Seek to a position in the stream.
Метод класса: StreamInterface{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$StreamInterface = new StreamInterface(); $StreamInterface->seek( $offset, $whence ): void;
- $offset(int) (обязательный)
- Stream offset.
- $whence(int)
- Specifies how the cursor position will be calculated
php based on the seek offset. Valid values are identical to the built-in PHP $whence values for `fseek()`. SEEK_SET: Set position equal to offset bytes SEEK_CUR: Set position to current location plus offset SEEK_END: Set position to end-of-stream plus offset. .
По умолчанию:\SEEK_SET
Код StreamInterface::seek() StreamInterface::seek WP 7.1.4
public function seek(int $offset, int $whence = \SEEK_SET): void;