Lines Matching refs:position
51 /** Seek to specified position
52 * @param position offset to seek to (relative to beginning not offset
54 * @throw exception when position is invalid
56 function seek($position) {
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…
64 $this->it->seek($position);
65 $this->pos = $position;
67 while($this->pos < $position && $this->it->valid()) {
108 /** @return current position relative to zero (not to offset specified in