Lines Matching refs:offset
18 * A class that starts iteration at a certain offset and only iterates over
27 private $offset;
34 * @param offset Offset to first element
37 function __construct(Iterator $it, $offset = 0, $count = -1)
39 if ($offset < 0) {
40 throw new exception('Parameter offset must be > 0');
46 $this->offset = $offset;
52 * @param position offset to seek to (relative to beginning not offset
57 if ($position < $this->offset) {
58 throw new exception('Cannot seek to '.$position.' which is below offset '.$this->offset);
60 if ($position > $this->offset + $this->count && $this->count != -1) {
61 …throw new exception('Cannot seek to '.$position.' which is behind offset '.$this->offset.' plus co…
73 /** Rewind to offset specified in constructor
79 $this->seek($this->offset);
85 return ($this->count == -1 || $this->pos < $this->offset + $this->count)
108 /** @return current position relative to zero (not to offset specified in