Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StreamInterface.php

function 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.

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(int $offset, int $whence = SEEK_SET) : void;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal