You are here

public function CachingStream::rewind in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/src/CachingStream.php \GuzzleHttp\Psr7\CachingStream::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 StreamDecoratorTrait::rewind

See also

seek()

File

vendor/guzzlehttp/psr7/src/CachingStream.php, line 39

Class

CachingStream
Stream decorator that can cache previously read bytes from a sequentially read stream.

Namespace

GuzzleHttp\Psr7

Code

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