Lines Matching refs:offset
73 protected $offset; variable in setasign\\Fpdi\\PdfParser\\StreamReader
152 return $this->bufferLength - $this->offset;
177 $string = \substr($this->buffer, $this->offset);
194 $position = (int) ($position !== null ? $position : $this->offset);
221 $offset = $this->offset;
223 $offset = $position - $this->position;
226 $offset = $this->offset;
229 if ($offset >= $this->bufferLength &&
230 ((!$this->increaseLength()) || $offset >= $this->bufferLength)
235 $this->offset = $offset + 1;
236 return $this->buffer[$offset];
257 $offset = $this->offset;
259 $offset = $position - $this->position;
262 $offset = $this->offset;
265 if (($offset + $length) > $this->bufferLength &&
266 ((!$this->increaseLength($length)) || ($offset + $length) > $this->bufferLength)
271 $bytes = \substr($this->buffer, $offset, $length);
272 $this->offset = $offset + $length;
317 * @param int $offset
319 public function setOffset($offset) argument
321 if ($offset > $this->bufferLength || $offset < 0) {
323 \sprintf('Offset (%s) out of range (length: %s)', $offset, $this->bufferLength)
327 $this->offset = (int) $offset;
337 return $this->offset;
343 * @param int $offset
345 public function addOffset($offset) argument
347 $this->setOffset($this->offset + $offset);
357 while ($this->offset >= $this->bufferLength) {
405 $pos = $this->position + $this->offset;
415 $this->offset = 0;
440 $this->offset = $pos - $this->position;