Lines Matching refs:stream
20 private $stream; variable in GuzzleHttp\\Psr7\\StreamWrapper
28 * @param StreamInterface $stream The stream to get a resource for
34 public static function getResource(StreamInterface $stream) argument
38 if ($stream->isReadable()) {
39 $mode = $stream->isWritable() ? 'r+' : 'r';
40 } elseif ($stream->isWritable()) {
47 return fopen('guzzle://stream', $mode, false, self::createStreamContext($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 $this->stream->write($data);
98 return $this->stream->tell();
103 return $this->stream->eof();
108 $this->stream->seek($offset, $whence);
118 $stream = clone $this->stream;
119 $resource = $stream->detach();
159 'size' => $this->stream->getSize() ?: 0,