src/Io/Buffer.php
public function trim()
    {
        if (!isset($this->buffer[$this->bufferPos])) {
            $this->buffer = '';
        } else {
            $this->buffer = \substr($this->buffer, $this->bufferPos);
        }
        $this->bufferPos = 0;
    }
public function trim()
    {
        if (!isset($this->buffer[$this->bufferPos])) {
            $this->buffer = '';
        } else {
            $this->buffer = \substr($this->buffer, $this->bufferPos);
        }
        $this->bufferPos = 0;
    }
public function trim ( ) { if ( ! isset ( $ this -> buffer [ $ this -> bufferPos ] ) ) { $ this -> buffer = '' ; } else { $ this -> buffer = \ substr ( $ this -> buffer , $ this -> bufferPos ) ; } $ this -> bufferPos = 0 ; }
Clears all consumed data from the buffer

This class keeps consumed data in memory for performance reasons and only
advances the internal buffer position until this method is called.

@return void
Clears all consumed data from the buffer