コード例 #1
0
ファイル: Other.cs プロジェクト: xuhaoa/LtePlatform
            public OtherConfig_r9 Decode(BitArrayInputStream input)
            {
                OtherConfig_r9 _r = new OtherConfig_r9();

                _r.InitDefaults();
                bool          flag   = input.ReadBit() != 0;
                BitMaskStream stream = new BitMaskStream(input, 1);

                if (stream.Read())
                {
                    _r.reportProximityConfig_r9 = ReportProximityConfig_r9.PerDecoder.Instance.Decode(input);
                }
                if (flag)
                {
                    BitMaskStream stream2 = new BitMaskStream(input, 3);
                    if (stream2.Read())
                    {
                        _r.idc_Config_r11 = IDC_Config_r11.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.powerPrefIndicationConfig_r11
                            = PowerPrefIndicationConfig_r11.PerDecoder.Instance.Decode(input);
                    }
                    if (stream2.Read())
                    {
                        _r.obtainLocationConfig_r11 = ObtainLocationConfig_r11.PerDecoder.Instance.Decode(input);
                    }
                }
                return(_r);
            }
コード例 #2
0
ファイル: Other.cs プロジェクト: ouyh18/LteTools
 public OtherConfig_r9 Decode(BitArrayInputStream input)
 {
     OtherConfig_r9 _r = new OtherConfig_r9();
     _r.InitDefaults();
     bool flag = input.readBit() != 0;
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         _r.reportProximityConfig_r9 = ReportProximityConfig_r9.PerDecoder.Instance.Decode(input);
     }
     if (flag)
     {
         BitMaskStream stream2 = new BitMaskStream(input, 3);
         if (stream2.Read())
         {
             _r.idc_Config_r11 = IDC_Config_r11.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.powerPrefIndicationConfig_r11 = PowerPrefIndicationConfig_r11.PerDecoder.Instance.Decode(input);
         }
         if (stream2.Read())
         {
             _r.obtainLocationConfig_r11 = ObtainLocationConfig_r11.PerDecoder.Instance.Decode(input);
         }
     }
     return _r;
 }