Lines Matching refs:stream
25 private $stream; variable in GuzzleHttp\\Psr7\\Stream
42 * @param resource $stream Stream resource to wrap.
47 public function __construct($stream, $options = []) argument
49 if (!is_resource($stream)) {
61 $this->stream = $stream;
62 $meta = stream_get_meta_data($this->stream);
91 if (!isset($this->stream)) {
95 $contents = stream_get_contents($this->stream);
106 if (isset($this->stream)) {
107 if (is_resource($this->stream)) {
108 fclose($this->stream);
116 if (!isset($this->stream)) {
120 $result = $this->stream;
121 unset($this->stream);
134 if (!isset($this->stream)) {
143 $stats = fstat($this->stream);
169 if (!isset($this->stream)) {
173 return feof($this->stream);
178 if (!isset($this->stream)) {
182 $result = ftell($this->stream);
200 if (!isset($this->stream)) {
206 if (fseek($this->stream, $offset, $whence) === -1) {
214 if (!isset($this->stream)) {
228 $string = fread($this->stream, $length);
238 if (!isset($this->stream)) {
247 $result = fwrite($this->stream, $string);
258 if (!isset($this->stream)) {
261 return $this->customMetadata + stream_get_meta_data($this->stream);
266 $meta = stream_get_meta_data($this->stream);