public static function parse(StreamReader $streamReader)
    {
        $bufferOffset = $streamReader->getOffset();

        /**
         * @var string $buffer
         * @var int $pos
         */
        while (true) {
            $buffer = $streamReader->getBuffer(false);
            $pos = \strpos($buffer, '>', $bufferOffset);
            if ($pos === false) {
                if (!$streamReader->increaseLength()) {
                    return false;
                }
                continue;
            }

            break;
        }

        $result = \substr($buffer, $bufferOffset, $pos - $bufferOffset);
        $streamReader->setOffset($pos + 1);

        $v = new self;
        $v->value = $result;

        return $v;
    }
public static function parse(StreamReader $streamReader)
    {
        $bufferOffset = $streamReader->getOffset();

        /**
         * @var string $buffer
         * @var int $pos
         */
        while (true) {
            $buffer = $streamReader->getBuffer(false);
            $pos = \strpos($buffer, '>', $bufferOffset);
            if ($pos === false) {
                if (!$streamReader->increaseLength()) {
                    return false;
                }
                continue;
            }

            break;
        }

        $result = \substr($buffer, $bufferOffset, $pos - $bufferOffset);
        $streamReader->setOffset($pos + 1);

        $v = new self;
        $v->value = $result;

        return $v;
    }
public static function parse ( StreamReader $ streamReader ) { $ bufferOffset = $ streamReader -> getOffset ( ) ; /**
         * @var string $buffer
         * @var int $pos
         */ while ( true ) { $ buffer = $ streamReader -> getBuffer ( false ) ; $ pos = \ strpos ( $ buffer , '>' , $ bufferOffset ) ; if ( $ pos === false ) { if ( ! $ streamReader -> increaseLength ( ) ) { return false ; } continue ; } break ; } $ result = \ substr ( $ buffer , $ bufferOffset , $ pos - $ bufferOffset ) ; $ streamReader -> setOffset ( $ pos + 1 ) ; $ v = new self ; $ v -> value = $ result ; return $ v ; }
Parses a hexadecimal string object from the stream reader.

@param StreamReader $streamReader
@return bool|self
Parses a hexadecimal string object from the stream reader .