public function setPointer($position, $isOffset = false)
    {
        if ($isOffset) {
            $this->pointer += $position;
        } else {
            $this->pointer = $position;
        }
    }
public function setPointer($position, $isOffset = false)
    {
        if ($isOffset) {
            $this->pointer += $position;
        } else {
            $this->pointer = $position;
        }
    }
public function setPointer ( $ position , $ isOffset = false ) { if ( $ isOffset ) { $ this -> pointer += $ position ; } else { $ this -> pointer = $ position ; } }
Sets the pointer position.

@param int  $position the new pointer position
@param bool $isOffset if set to true, the position acts as an offset and not an absolute position
Sets the pointer position .