You are here

public function StreamInterface::rewind in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/psr/http-message/src/StreamInterface.php \Psr\Http\Message\StreamInterface::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.

See also

seek()

8 methods override StreamInterface::rewind()
AppendStream::rewind in vendor/guzzlehttp/psr7/src/AppendStream.php
Seek to the beginning of the stream.
BufferStream::rewind in vendor/guzzlehttp/psr7/src/BufferStream.php
Seek to the beginning of the stream.
FnStream::rewind in vendor/guzzlehttp/psr7/src/FnStream.php
Seek to the beginning of the stream.
PumpStream::rewind in vendor/guzzlehttp/psr7/src/PumpStream.php
Seek to the beginning of the stream.
RelativeStream::rewind in vendor/zendframework/zend-diactoros/src/RelativeStream.php
Seek to the beginning of the stream.

... See full list

File

vendor/psr/http-message/src/StreamInterface.php, line 99

Class

StreamInterface
Describes a data stream.

Namespace

Psr\Http\Message

Code

public function rewind();