src/Server/Asyn/MQTT/Utility.php
static public function ExtractUShort($str, &$pos)
    {
        $bytes = substr($str, $pos, 2);
        $ushort = Utility::Word2UShort($bytes);
        $pos += 2;

        return $ushort;
    }
static public function ExtractUShort($str, &$pos)
    {
        $bytes = substr($str, $pos, 2);
        $ushort = Utility::Word2UShort($bytes);
        $pos += 2;

        return $ushort;
    }
static public function ExtractUShort ( $ str , & $ pos ) { $ bytes = substr ( $ str , $ pos , 2 ) ; $ ushort = Utility :: Word2UShort ( $ bytes ) ; $ pos += 2 ; return $ ushort ; }
Extract Unsigned Short from Buffer

@param string $str
@param int &  $pos
@return int
Extract Unsigned Short from Buffer