コード例 #1
0
ファイル: CSFB.cs プロジェクト: ouyh18/LtePlatform
 public CSFB_RegistrationParam1XRTT Decode(BitArrayInputStream input)
 {
     CSFB_RegistrationParam1XRTT paramxrtt = new CSFB_RegistrationParam1XRTT();
     paramxrtt.InitDefaults();
     paramxrtt.sid = input.ReadBitString(15);
     paramxrtt.nid = input.ReadBitString(0x10);
     paramxrtt.multipleSID = input.ReadBit() == 1;
     paramxrtt.multipleNID = input.ReadBit() == 1;
     paramxrtt.homeReg = input.ReadBit() == 1;
     paramxrtt.foreignSIDReg = input.ReadBit() == 1;
     paramxrtt.foreignNIDReg = input.ReadBit() == 1;
     paramxrtt.parameterReg = input.ReadBit() == 1;
     paramxrtt.powerUpReg = input.ReadBit() == 1;
     paramxrtt.registrationPeriod = input.ReadBitString(7);
     paramxrtt.registrationZone = input.ReadBitString(12);
     paramxrtt.totalZone = input.ReadBitString(3);
     paramxrtt.zoneTimer = input.ReadBitString(3);
     return paramxrtt;
 }
コード例 #2
0
            public CSFB_RegistrationParam1XRTT Decode(BitArrayInputStream input)
            {
                CSFB_RegistrationParam1XRTT paramxrtt = new CSFB_RegistrationParam1XRTT();

                paramxrtt.InitDefaults();
                paramxrtt.sid                = input.ReadBitString(15);
                paramxrtt.nid                = input.ReadBitString(0x10);
                paramxrtt.multipleSID        = input.ReadBit() == 1;
                paramxrtt.multipleNID        = input.ReadBit() == 1;
                paramxrtt.homeReg            = input.ReadBit() == 1;
                paramxrtt.foreignSIDReg      = input.ReadBit() == 1;
                paramxrtt.foreignNIDReg      = input.ReadBit() == 1;
                paramxrtt.parameterReg       = input.ReadBit() == 1;
                paramxrtt.powerUpReg         = input.ReadBit() == 1;
                paramxrtt.registrationPeriod = input.ReadBitString(7);
                paramxrtt.registrationZone   = input.ReadBitString(12);
                paramxrtt.totalZone          = input.ReadBitString(3);
                paramxrtt.zoneTimer          = input.ReadBitString(3);
                return(paramxrtt);
            }