Lines Matching refs:streams
7 * Reads from multiple streams, one after the other.
14 private $streams = [];
22 * @param StreamInterface[] $streams Streams to decorate. Each stream must
25 public function __construct(array $streams = [])
27 foreach ($streams as $stream) {
55 // The stream is only seekable if all streams are seekable
60 $this->streams[] = $stream;
77 foreach ($this->streams as $stream) {
81 $this->streams = [];
108 * If any of the streams do not return a valid number, then the size of the
117 foreach ($this->streams as $stream) {
130 return !$this->streams ||
131 ($this->current >= count($this->streams) - 1 &&
132 $this->streams[$this->current]->eof());
150 foreach ($this->streams as $stream) {
169 * Reads from all of the appended streams until the length is met or EOF.
176 $total = count($this->streams) - 1;
181 if ($this->streams[$this->current]->eof()) {
187 $buffer .= $this->streams[$this->current]->read($remaining);