protected function processRules(Buffer $buffer)
    {
        // Set the result to a new result instance
        $result = new Result();

        // Burn extra header
        $buffer->skip(1);

        // Read rules until we run out of buffer
        while ($buffer->getLength()) {
            $key = $buffer->readString();
            // Check for map
            if (strstr($key, "Map:")) {
                $result->addSub("maplist", "name", $buffer->readString());
            } else // Regular rule
            {
                $result->add($key, $buffer->readString());
            }
        }

        unset($buffer);

        return $result->fetch();
    }
protected function processRules(Buffer $buffer)
    {
        // Set the result to a new result instance
        $result = new Result();

        // Burn extra header
        $buffer->skip(1);

        // Read rules until we run out of buffer
        while ($buffer->getLength()) {
            $key = $buffer->readString();
            // Check for map
            if (strstr($key, "Map:")) {
                $result->addSub("maplist", "name", $buffer->readString());
            } else // Regular rule
            {
                $result->add($key, $buffer->readString());
            }
        }

        unset($buffer);

        return $result->fetch();
    }
protected function processRules ( Buffer $ buffer ) { // Set the result to a new result instance $ result = new Result ( ) ; // Burn extra header $ buffer -> skip ( 1 ) ; // Read rules until we run out of buffer while ( $ buffer -> getLength ( ) ) { $ key = $ buffer -> readString ( ) ; // Check for map if ( strstr ( $ key , "Map:" ) ) { $ result -> addSub ( "maplist" , "name" , $ buffer -> readString ( ) ) ; } else // Regular rule { $ result -> add ( $ key , $ buffer -> readString ( ) ) ; } } unset ( $ buffer ) ; return $ result -> fetch ( ) ; }
Handle processing the server rules

@param Buffer $buffer

@return array
Handle processing the server rules