Пример #1
0
 public UDBYYLoginReq()
 {
     _terminal_type   = new MyUInt64(0u, 0u);
     _yyuid           = new MyUInt64(0u, 0u);
     _jump_appids     = new List <ByteArray>();
     _jump_sessionids = new List <ByteArray>();
 }
Пример #2
0
 public override void unmarshall(ByteArray _arg1)
 {
     base.unmarshall(_arg1);
     _yyid        = popInt64();
     _udbuid      = popInt64();
     _passport    = popBytes();
     _accessToken = popBytes();
     _accountInfo = popBytes();
     _jump_tokens = popStringArray();
     _ticket      = popBytes();
     _yycookie    = popBytes();
     _cookie      = popBytes();
 }
Пример #3
0
        public static MyUInt64 smethod_0(string _arg1, uint _arg2 = 0u)
        {
            uint num  = 0u;
            uint num2 = 0u;

            if (_arg2 == 0)
            {
                if (_arg1.IndexOf("0x") == 0)
                {
                    _arg2 = 16u;
                    num2  = 2u;
                }
                else
                {
                    _arg2 = 10u;
                }
            }
            if (_arg2 < 2 || _arg2 > 36)
            {
                throw new Exception();
            }
            _arg1 = _arg1.ToLower();
            MyUInt64 myUInt = new MyUInt64(0u, 0u);

            char[] array = _arg1.ToCharArray();
            for (; num2 < _arg1.Length; num2++)
            {
                num = Convert.ToByte(array[num2]);
                if (num >= Convert.ToByte('0') && num <= Convert.ToByte('9'))
                {
                    num -= Convert.ToByte('0');
                }
                else
                {
                    if (num < Convert.ToByte('a') || num > Convert.ToByte('z'))
                    {
                        throw new Exception();
                    }
                    num -= Convert.ToByte('a');
                }
                if (num >= _arg2)
                {
                    throw new Exception();
                }
                myUInt.mul(_arg2);
                myUInt.add(num);
            }
            return(myUInt);
        }
Пример #4
0
 public override void unmarshall(ByteArray _arg1)
 {
     base.unmarshall(_arg1);
     _context           = popBytes();
     _rescode           = popInt();
     _reason            = popBytes();
     _description       = popBytes();
     _yyuid             = popInt64();
     dynamic_token_reqs = popStringArray();
     _pic_id            = popBytes();
     _pic_data          = popBytes();
     _login_data        = popBytes();
     _callback_data     = popBytes();
     _extension         = popBytes();
 }
Пример #5
0
 public static int comp(MyUInt64 _arg1, MyUInt64 _arg2)
 {
     if (_arg1.high > _arg2.high)
     {
         return(1);
     }
     if (_arg1.high < _arg2.high)
     {
         return(-1);
     }
     if (_arg1.low > _arg2.low)
     {
         return(1);
     }
     if (_arg1.low < _arg2.low)
     {
         return(-1);
     }
     return(0);
 }
Пример #6
0
        public string toString(uint _arg1 = 10u)
        {
            uint num = 0u;

            if (_arg1 < 2 || _arg1 > 36)
            {
                throw new Exception();
            }
            if (low == 0 && high == 0)
            {
                return("0");
            }
            List <string> list   = new List <string>();
            MyUInt64      myUInt = new MyUInt64(low, high);

            do
            {
                num = myUInt.div(_arg1);
                list.Add((num < 10) ? "0" : (Convert.ToByte('a') + num).ToString());
            }while (myUInt.low != 0 || myUInt.high != 0);
            list.Reverse();
            new StringBuilder();
            return(list.ToString());
        }
Пример #7
0
 public void method_0(MyUInt64 _arg1)
 {
     mBuffer.writeUnsignedInt(_arg1.low);
     mBuffer.writeUnsignedInt(_arg1.high);
 }
Пример #8
0
 public override void unmarshall(ByteArray _arg1)
 {
     base.unmarshall(_arg1);
     m_uAppID = popInt();
     m_uUID   = popInt64();
 }
Пример #9
0
 public CAppUID()
 {
     m_uUID = new MyUInt64(0u, 0u);
 }
Пример #10
0
 public GClass6()
 {
     suid = new MyUInt64(0u, 0u);
 }
Пример #11
0
 public PCS_APLogin()
 {
     m_uUid = new MyUInt64(0u, 0u);
 }
Пример #12
0
 public PJoinUserGroup()
 {
     uid            = new MyUInt64(0u, 0u);
     userGroupIdSet = new List <UserGroupIdType>();
 }
Пример #13
0
 public PCS_GetAPInfo()
 {
     m_uUid         = new MyUInt64(0u, 0u);
     m_uForbidIp    = new List <uint>();
     m_mapApSpecReq = new MYHashMap();
 }
Пример #14
0
 public GClass5()
 {
     terminalType = new MyUInt64(0u, 0u);
 }
Пример #15
0
 public override void unmarshall(ByteArray _arg1)
 {
     base.unmarshall(_arg1);
     userGroupType = popInt64();
     userGroupId   = popInt64();
 }
Пример #16
0
 public UserGroupIdType()
 {
     userGroupType = new MyUInt64(0u, 0u);
     userGroupId   = new MyUInt64(0u, 0u);
 }