You are here

public function RelativeStream::rewind in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-diactoros/src/RelativeStream.php \Zend\Diactoros\RelativeStream::rewind()

Seek to the beginning of the stream.

If the stream is not seekable, this method will raise an exception; otherwise, it will perform a seek(0).

@link http://www.php.net/manual/en/function.fseek.php

Throws

\RuntimeException on failure.

Overrides StreamInterface::rewind

See also

seek()

File

vendor/zendframework/zend-diactoros/src/RelativeStream.php, line 116

Class

RelativeStream
Class RelativeStream

Namespace

Zend\Diactoros

Code

public function rewind() {
  return $this
    ->seek(0);
}