Set the offset position in the current buffer.

@param int $offset
420982
public function setOffset($offset)
    {
        if ($offset > $this->bufferLength || $offset < 0) {
            throw new \OutOfRangeException(
                \sprintf('Offset (%s) out of range (length: %s)', $offset, $this->bufferLength)
            );
        }

        $this->offset = (int) $offset;
    }
866940
public function offsetUnset($offset)
    {
        if ($this->offsetExists($offset))
        {
            unset($this->tokens[$offset]);

            // Re-index the tokens
            $this->tokens = array_values($this->tokens);

            // If the current index is now outside of the valid indeces, reset the index
            if (!$this->valid())
            {
                $this->rewind();
            }
        }
    }
477798
public function offsetSet($offset, $value)
    {
        if(!isset($this->_data[$offset])) {
            $this->_data[$offset] = array();
        }

        $this->_data[$offset][] = $value;
    }
1096463
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->items[] = $value;
        } else {
            $this->items[$offset] = $value;
        }

        $this->keys = array_keys($this->items);
    }
1371577
public function offsetUnset($offset)
    {
        $property = lcfirst($this->toCamelCase($offset));

        $this->$property = null;
    }
243674
public function offsetSet($offset, $value)
    {
        if ($offset == self::QUERY) {
            $parameters = [];
            parse_str($value, $parameters);
            $value = $parameters;
        }
        $this->set($offset, $value);
    }
831808
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $offset = $this->count();
        }
        $this->set($offset, $value);
    }
126075
public function offsetSet($offset, $value)
    {
        if (is_scalar($offset)) {
            $this->_data[$offset] = $value;
        } else {
            $this->_data[] = $value;
        }
    }
299182
public function offsetSet($offset, $value)
    {
        if (!is_int($offset) && $exist = array_search($offset, self::$reverseLookup)) {
            $offset = $exist;
        }

        self::$references[$offset] = $value;
    }
633732
public function offsetUnset($offset)
    {
        !is_int($offset) and trigger_error(
            __CLASS__ . '::' . __FUNCTION__ . '() : Only accepts integer offsets',
            E_USER_WARNING
        );
        if (is_int($offset) and isset($this->_elements[$offset])) {
            unset($this->_elements[$offset]);
            $this->_count = count($this->_elements);
        }
    }
770301
public function offsetSet($offset, $value)
    {
        if ($this->_cache) {
            apcu_store($this->_cache_prefix.'-'.$offset, $value);
        }

        parent::offsetSet($offset, $value);
    }
534247
public function setOffset($offset)
    {
        $this->body->seek($offset);
        $this->offset = $offset;

        return $this;
    }
1238040
public function offsetSet($offset, $value) {
		if ($offset instanceOf Argument) {
			$offset = $offset->key;
		}

		$this->_parsed[$offset] = $value;
	}
681000
public function offsetSet($offset, $value) {
        if (is_null($offset)) {
            $this->values[] = $value;
        } else {
            $this->values[$offset] = $value;
        }
        $this->tracker->logAddition($value);
    }
211270
public function offsetUnset($offset) {
    if (is_string($offset)) {
      $this->remove($offset);
    }
    else {
      parent::offsetUnset($offset);
    }
  }
265987
public function offsetSet($offset, $value)
    {
        $this->assertElementIsOfType($value);
        $this->collection[$offset] = $value;
    }
46120
public function offsetSet($offset, $value): void {
        if (is_null($offset)) {
            $this->nodes[] = $value;
        } else {
            $this->nodes[$offset] = $value;
        }
    }