public function StreamInterface::setStream

Set the stream that is wrapped by the object

Parameters

resource $stream Stream resource to wrap:

int $size Size of the stream in bytes. Only pass if the size cannot be obtained from the stream.:

Return value

self

2 methods override StreamInterface::setStream()
AbstractEntityBodyDecorator::setStream in drupal/core/vendor/guzzle/http/Guzzle/Http/AbstractEntityBodyDecorator.php
@codeCoverageIgnore
Stream::setStream in drupal/core/vendor/guzzle/stream/Guzzle/Stream/Stream.php
Set the stream that is wrapped by the object

File

drupal/core/vendor/guzzle/stream/Guzzle/Stream/StreamInterface.php, line 41

Class

StreamInterface
OO interface to PHP streams

Namespace

Guzzle\Stream

Code

public function setStream($stream, $size = null);