Lines Matching refs:position
66 protected $position; variable in setasign\\Fpdi\\PdfParser\\StreamReader
162 return $this->position;
189 * @param int|null $position
192 public function getByte($position = null) argument
194 $position = (int) ($position !== null ? $position : $this->offset);
195 if ($position >= $this->bufferLength &&
196 (!$this->increaseLength() || $position >= $this->bufferLength)
201 return $this->buffer[$position];
211 * @param int|null $position
214 public function readByte($position = null) argument
216 if ($position !== null) {
217 $position = (int) $position;
219 … if (!($position >= $this->position && $position < $this->position + $this->bufferLength)) {
220 $this->reset($position);
223 $offset = $position - $this->position;
247 * @param int|null $position
250 public function readBytes($length, $position = null) argument
253 if ($position !== null) {
255 … if (!($position >= $this->position && $position < $this->position + $this->bufferLength)) {
256 $this->reset($position, $length);
259 $offset = $position - $this->position;
405 $pos = $this->position + $this->offset;
412 $this->position = $pos;
436 if ($pos >= $this->position
437 && $pos < ($this->position + $this->bufferLength)
438 && ($this->position + $this->bufferLength) >= ($pos + $length)
440 $this->offset = $pos - $this->position;
456 … if (\feof($this->stream) || $this->getTotalLength() === $this->position + $this->bufferLength) {