public static function readShortInt(&$buffer)
    {
        $tmp = unpack('n', $buffer);
        $buffer = substr($buffer, 2);
        return array_pop($tmp);
    }
public static function readShortInt(&$buffer)
    {
        $tmp = unpack('n', $buffer);
        $buffer = substr($buffer, 2);
        return array_pop($tmp);
    }
public static function readShortInt ( & $ buffer ) { $ tmp = unpack ( 'n' , $ buffer ) ; $ buffer = substr ( $ buffer , 2 ) ; return array_pop ( $ tmp ) ; }
Read unsigned short int from buffer.
@param $buffer
@return mixed
@see https://github.com/walkor/mqtt/blob/master/src/Protocols/Mqtt.php#readShortInt
Read unsigned short int from buffer .