Prewk\XmlStringStreamer\Parser\UniqueNode::flush PHP Method

flush() protected method

Cut everything from the start position to the end position in the workingBlob (+ tag length) and flush it out for later return in getNodeFrom
protected flush ( integer $endPositionInBlob )
$endPositionInBlob integer Position of the closing tag
    protected function flush($endPositionInBlob)
    {
        $endTagLen = $this->shortClosedTagNow ? 0 : strlen("</" . $this->options["uniqueNode"] . ">");
        $realEndPosition = $endPositionInBlob + $endTagLen;
        $this->flushed = substr($this->workingBlob, $this->startPos, $realEndPosition - $this->startPos);
        $this->workingBlob = substr($this->workingBlob, $realEndPosition);
        $this->hasSearchedUntilPos = 0;
        $this->shortClosedTagNow = false;
    }