public function readInt16()
    {

        // Change the integer type we are looking up
        switch ($this->number_type) {
            case self::NUMBER_TYPE_BIGENDIAN:
                $type = 'nint';
                break;

            case self::NUMBER_TYPE_LITTLEENDIAN:
                $type = 'vint';
                break;

            default:
                $type = 'Sint';
        }

        $int = unpack($type, $this->read(2));

        return $int['int'];
    }
public function readInt16()
    {

        // Change the integer type we are looking up
        switch ($this->number_type) {
            case self::NUMBER_TYPE_BIGENDIAN:
                $type = 'nint';
                break;

            case self::NUMBER_TYPE_LITTLEENDIAN:
                $type = 'vint';
                break;

            default:
                $type = 'Sint';
        }

        $int = unpack($type, $this->read(2));

        return $int['int'];
    }
public function readInt16 ( ) { // Change the integer type we are looking up switch ( $ this -> number_type ) { case self :: NUMBER_TYPE_BIGENDIAN : $ type = 'nint' ; break ; case self :: NUMBER_TYPE_LITTLEENDIAN : $ type = 'vint' ; break ; default : $ type = 'Sint' ; } $ int = unpack ( $ type , $ this -> read ( 2 ) ) ; return $ int [ 'int' ] ; }
Read a 16-bit unsigned integer

@return int
@throws \GameQ\Exception\Protocol
Read a 16 - bit unsigned integer