private function fromUInt16($value, $order = 0)
    {
        list(, $int) = unpack(
            ($order == self::BIG_ENDIAN_ORDER ? 'n' : ($order == self::LITTLE_ENDIAN_ORDER ? 'v' : 'S')) . '*',
            $value
        );
        return $int;
    }
private function fromUInt16($value, $order = 0)
    {
        list(, $int) = unpack(
            ($order == self::BIG_ENDIAN_ORDER ? 'n' : ($order == self::LITTLE_ENDIAN_ORDER ? 'v' : 'S')) . '*',
            $value
        );
        return $int;
    }
private function fromUInt16 ( $ value , $ order = 0 ) { list ( , $ int ) = unpack ( ( $ order == self :: BIG_ENDIAN_ORDER ? 'n' : ( $ order == self :: LITTLE_ENDIAN_ORDER ? 'v' : 'S' ) ) . '*' , $ value ) ; return $ int ; }
Returns machine endian ordered binary data as unsigned 16-bit integer.

@param string  $value The binary data string.
@param integer $order The byte order of the binary data string.
@return integer
Returns machine endian ordered binary data as unsigned 16 - bit integer .