You are here

public function StreamInterface::seek in Auth0 Single Sign On 8.2

Seek to a position in the stream.

@link http://www.php.net/manual/en/function.fseek.php

Parameters

int $offset Stream offset:

int $whence Specifies how the cursor position will be calculated: 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.

Throws

\RuntimeException on failure.

5 methods override StreamInterface::seek()
AppendStream::seek in vendor/guzzlehttp/psr7/src/AppendStream.php
Attempts to seek to the given position. Only supports SEEK_SET.
BufferStream::seek in vendor/guzzlehttp/psr7/src/BufferStream.php
Seek to a position in the stream.
FnStream::seek in vendor/guzzlehttp/psr7/src/FnStream.php
Seek to a position in the stream.
PumpStream::seek in vendor/guzzlehttp/psr7/src/PumpStream.php
Seek to a position in the stream.
Stream::seek in vendor/guzzlehttp/psr7/src/Stream.php
Seek to a position in the stream.

File

vendor/psr/http-message/src/StreamInterface.php, line 87

Class

StreamInterface
Describes a data stream.

Namespace

Psr\Http\Message

Code

public function seek($offset, $whence = SEEK_SET);