src/Io/Buffer.php
public function prepend($str)
    {
        $this->buffer = $str . \substr($this->buffer, $this->bufferPos);
        $this->bufferPos = 0;
    }
public function prepend($str)
    {
        $this->buffer = $str . \substr($this->buffer, $this->bufferPos);
        $this->bufferPos = 0;
    }
public function prepend ( $ str ) { $ this -> buffer = $ str . \ substr ( $ this -> buffer , $ this -> bufferPos ) ; $ this -> bufferPos = 0 ; }
prepends some data to start of buffer and resets buffer position to start

@param string $str
@return void
prepends some data to start of buffer and resets buffer position to start