You are here

public function StreamInterface::seek in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/psr/http-message/src/StreamInterface.php \Psr\Http\Message\StreamInterface::seek()

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.

8 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.
RelativeStream::seek in vendor/zendframework/zend-diactoros/src/RelativeStream.php
Seek to a position in the stream.

... See full list

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);