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

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