Lines Matching refs:stream
18 private $stream; variable in GuzzleHttp\\Psr7\\StreamWrapper
26 * @param StreamInterface $stream The stream to get a resource for
32 public static function getResource(StreamInterface $stream) argument
36 if ($stream->isReadable()) {
37 $mode = $stream->isWritable() ? 'r+' : 'r';
38 } elseif ($stream->isWritable()) {
45 return fopen('guzzle://stream', $mode, null, self::createStreamContext($stream));
51 * @param StreamInterface $stream
55 public static function createStreamContext(StreamInterface $stream) argument
58 'guzzle' => ['stream' => $stream]
81 $this->stream = $options['guzzle']['stream'];
88 return $this->stream->read($count);
93 return (int) $this->stream->write($data);
98 return $this->stream->tell();
103 return $this->stream->eof();
108 $this->stream->seek($offset, $whence);
115 $stream = clone($this->stream);
117 return $stream->detach();
138 'size' => $this->stream->getSize() ?: 0,