Lines Matching refs:stream
23 * @param StreamInterface $stream Stream to wrap
30 StreamInterface $stream, argument
34 $this->stream = $stream;
42 if ($this->stream->eof()) {
51 return $this->stream->tell() >= $this->offset + $this->limit;
60 if (null === ($length = $this->stream->getSize())) {
91 $this->stream->seek($offset);
100 return $this->stream->tell() - $this->offset;
112 $current = $this->stream->tell();
116 if ($this->stream->isSeekable()) {
117 $this->stream->seek($offset);
121 $this->stream->read($offset - $current);
143 return $this->stream->read($length);
148 $remaining = ($this->offset + $this->limit) - $this->stream->tell();
152 return $this->stream->read(min($remaining, $length));