Lines Matching refs:reader
31 * Parses a stream from a stream reader.
34 * @param StreamReader $reader
39 public static function parse(PdfDictionary $dictionary, StreamReader $reader, PdfParser $parser = null)
43 $v->reader = $reader;
46 $offset = $reader->getOffset();
49 while (($firstByte = $reader->getByte($offset)) !== false) {
64 $sndByte = $reader->getByte($offset + 1);
73 $reader->setOffset($offset);
75 $v->stream = $reader->getPosition() + $reader->getOffset();
116 * The stream reader instance.
120 protected $reader;
147 $this->reader->reset($this->stream, 100000);
150 $this->reader->reset($this->stream, $length->value);
151 $buffer = $this->reader->getBuffer(false);
153 $this->reader->reset($this->stream + strlen($buffer));
157 $this->reader->reset($this->stream, 100000);
159 $this->reader->reset($this->stream + strlen($buffer));
169 $this->reader = null;
184 $buffer = $this->reader->getBuffer(false);
187 if (!$this->reader->increaseLength(100000)) {