src/Structures/Buffer.php
public function insert(string $string, int $position)
    {
        $this->data = substr_replace($this->data, $string, $position, 0);
    }
public function insert(string $string, int $position)
    {
        $this->data = substr_replace($this->data, $string, $position, 0);
    }
Inserts the string at the given position in the buffer.

@param string $string
@param int $position