Kraken\Util\Buffer\BufferInterface::push PHP Method

push() public method

Push the given string onto the end of the buffer.
public push ( string $data )
$data string
    public function push($data);

Usage Example

Beispiel #1
0
 public function testApiSearch_FindsProperIndex_WhenReverseIsPassed()
 {
     $search = substr($this->initialString, 0, 3);
     $this->buffer->push($this->initialString);
     $index = $this->buffer->search($search, true);
     $this->assertSame(strlen($this->initialString), $index);
 }
All Usage Examples Of Kraken\Util\Buffer\BufferInterface::push