WordPress\AiClientDependencies\Psr\Http\Message

StreamInterface::seekpublicWP 1.0

Seek to a position in the stream.

Method of the class: StreamInterface{}

No Hooks.

Returns

null. Nothing (null).

Usage

$StreamInterface = new StreamInterface();
$StreamInterface->seek( $offset, $whence ): void;
$offset(int) (required)
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. .
Default: \SEEK_SET

StreamInterface::seek() code WP 7.0

public function seek(int $offset, int $whence = \SEEK_SET): void;