src/Structures/BufferIterator.php
public function remove(): string
    {
        if (!$this->valid()) {
            throw new OutOfBoundsException('The iterator is not valid!');
        }
        
        $temp = $this->buffer[$this->current];
        
        unset($this->buffer[$this->current]);
        
        --$this->current;

        return $temp;
    }
public function remove(): string
    {
        if (!$this->valid()) {
            throw new OutOfBoundsException('The iterator is not valid!');
        }
        
        $temp = $this->buffer[$this->current];
        
        unset($this->buffer[$this->current]);
        
        --$this->current;

        return $temp;
    }
Removes the byte at the current iterator position and moves the iterator to the previous character.

@return string

@throws \Icicle\Stream\Exception\OutOfBoundsException If the iterator is invalid.