コード例 #1
0
            public E_CSFB_r9 Decode(BitArrayInputStream input)
            {
                int       nBits;
                E_CSFB_r9 _r = new E_CSFB_r9();

                _r.InitDefaults();
                BitMaskStream stream = new BitMaskStream(input, 4);

                if (stream.Read())
                {
                    nBits = input.ReadBits(8);
                    _r.messageContCDMA2000_1XRTT_r9 = input.readOctetString(nBits);
                }
                if (stream.Read())
                {
                    const int num2 = 1;
                    _r.mobilityCDMA2000_HRPD_r9 = (mobilityCDMA2000_HRPD_r9_Enum)input.ReadBits(num2);
                }
                if (stream.Read())
                {
                    nBits = input.ReadBits(8);
                    _r.messageContCDMA2000_HRPD_r9 = input.readOctetString(nBits);
                }
                if (stream.Read())
                {
                    _r.redirectCarrierCDMA2000_HRPD_r9 = CarrierFreqCDMA2000.PerDecoder.Instance.Decode(input);
                }
                return(_r);
            }
コード例 #2
0
ファイル: CSFB.cs プロジェクト: ouyh18/LteTools
 public E_CSFB_r9 Decode(BitArrayInputStream input)
 {
     int nBits;
     E_CSFB_r9 _r = new E_CSFB_r9();
     _r.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 4);
     if (stream.Read())
     {
         nBits = input.readBits(8);
         _r.messageContCDMA2000_1XRTT_r9 = input.readOctetString(nBits);
     }
     if (stream.Read())
     {
         const int num2 = 1;
         _r.mobilityCDMA2000_HRPD_r9 = (mobilityCDMA2000_HRPD_r9_Enum)input.readBits(num2);
     }
     if (stream.Read())
     {
         nBits = input.readBits(8);
         _r.messageContCDMA2000_HRPD_r9 = input.readOctetString(nBits);
     }
     if (stream.Read())
     {
         _r.redirectCarrierCDMA2000_HRPD_r9 = CarrierFreqCDMA2000.PerDecoder.Instance.Decode(input);
     }
     return _r;
 }