Lines Matching refs:streamReader
22 protected $streamReader;
34 * @param StreamReader $streamReader
36 public function __construct(StreamReader $streamReader)
38 $this->streamReader = $streamReader;
48 return $this->streamReader;
81 if (($byte = $this->streamReader->readByte()) === false) {
95 $byte = $this->streamReader->readByte();
110 $this->streamReader->readLine();
116 $bufferOffset = $this->streamReader->getOffset();
118 $lastBuffer = $this->streamReader->getBuffer(false);
130 $this->streamReader->increaseLength()
135 $this->streamReader->setOffset($bufferOffset + $pos);
148 if (!$this->streamReader->ensureContent()) {
152 $buffer = $this->streamReader->getBuffer(false);
153 $matches = \strspn($buffer, "\x20\x0A\x0C\x0D\x09\x00", $this->streamReader->getOffset());
155 $this->streamReader->addOffset($matches);
157 } while ($this->streamReader->getOffset() >= $this->streamReader->getBufferLength());