public function Stream::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 Where the offset is applied:

Return value

bool Returns TRUE on success or FALSE on failure

Overrides StreamInterface::seek

4 calls to Stream::seek()
EntityBody::handleCompression in drupal/core/vendor/guzzle/http/Guzzle/Http/EntityBody.php
Stream::getSize in drupal/core/vendor/guzzle/stream/Guzzle/Stream/Stream.php
Get the size of the stream if able
Stream::rewind in drupal/core/vendor/guzzle/stream/Guzzle/Stream/Stream.php
Rewind to the beginning of the stream
Stream::__toString in drupal/core/vendor/guzzle/stream/Guzzle/Stream/Stream.php
Convert the stream to a string if the stream is readable and the stream is seekable.

File

drupal/core/vendor/guzzle/stream/Guzzle/Stream/Stream.php, line 260

Class

Stream
PHP stream implementation

Namespace

Guzzle\Stream

Code

public function seek($offset, $whence = SEEK_SET) {
  return $this->cache[self::SEEKABLE] ? fseek($this->stream, $offset, $whence) === 0 : false;
}