Kraken\Util\Buffer\BufferIterator::rewind PHP Method

rewind() public method

Rewind the iterator to the beginning of the buffer.
public rewind ( )
    public function rewind()
    {
        $this->current = 0;
    }

Usage Example

Ejemplo n.º 1
0
 public function testApiRemove_ThrowsException_OnInvalidIterator()
 {
     $this->setExpectedException(OutOfBoundsException::class);
     for ($this->iterator->rewind(); $this->iterator->valid(); $this->iterator->next()) {
     }
     $this->iterator->remove();
 }
All Usage Examples Of Kraken\Util\Buffer\BufferIterator::rewind