You are here

public function Stream::isSeekable in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-diactoros/src/Stream.php \Zend\Diactoros\Stream::isSeekable()
  2. 8.0 vendor/guzzlehttp/psr7/src/Stream.php \GuzzleHttp\Psr7\Stream::isSeekable()
  3. 8.0 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/Stream.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\Stream::isSeekable()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-diactoros/src/Stream.php \Zend\Diactoros\Stream::isSeekable()

Returns whether or not the stream is seekable.

Return value

bool

Overrides StreamInterface::isSeekable

1 call to Stream::isSeekable()
Stream::seek in vendor/zendframework/zend-diactoros/src/Stream.php
Seek to a position in the stream.

File

vendor/zendframework/zend-diactoros/src/Stream.php, line 140

Class

Stream
Implementation of PSR HTTP streams

Namespace

Zend\Diactoros

Code

public function isSeekable() {
  if (!$this->resource) {
    return false;
  }
  $meta = stream_get_meta_data($this->resource);
  return $meta['seekable'];
}