public function Stream::__construct

Construct a new Stream

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.:

Throws

InvalidArgumentException if the stream is not a stream resource

File

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

Class

Stream
PHP stream implementation

Namespace

Guzzle\Stream

Code

public function __construct($stream, $size = null) {
  $this
    ->setStream($stream, $size);
}