Exemplo n.º 1
0
                public measResultNeighCells_r9_Type Decode(BitArrayInputStream input)
                {
                    int num2;
                    measResultNeighCells_r9_Type type = new measResultNeighCells_r9_Type();

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

                    if (stream.Read())
                    {
                        type.measResultListEUTRA_r9 = new List <MeasResult2EUTRA_r9>();
                        num2 = 3;
                        int num3 = input.readBits(num2) + 1;
                        for (int i = 0; i < num3; i++)
                        {
                            MeasResult2EUTRA_r9 item = MeasResult2EUTRA_r9.PerDecoder.Instance.Decode(input);
                            type.measResultListEUTRA_r9.Add(item);
                        }
                    }
                    if (stream.Read())
                    {
                        type.measResultListUTRA_r9 = new List <MeasResult2UTRA_r9>();
                        num2 = 3;
                        int num5 = input.readBits(num2) + 1;
                        for (int j = 0; j < num5; j++)
                        {
                            MeasResult2UTRA_r9 _r2 = MeasResult2UTRA_r9.PerDecoder.Instance.Decode(input);
                            type.measResultListUTRA_r9.Add(_r2);
                        }
                    }
                    if (stream.Read())
                    {
                        type.measResultListGERAN_r9 = new List <MeasResultGERAN>();
                        num2 = 3;
                        int num7 = input.readBits(num2) + 1;
                        for (int k = 0; k < num7; k++)
                        {
                            MeasResultGERAN tgeran = MeasResultGERAN.PerDecoder.Instance.Decode(input);
                            type.measResultListGERAN_r9.Add(tgeran);
                        }
                    }
                    if (stream.Read())
                    {
                        type.measResultsCDMA2000_r9 = new List <MeasResult2CDMA2000_r9>();
                        num2 = 3;
                        int num9 = input.readBits(num2) + 1;
                        for (int m = 0; m < num9; m++)
                        {
                            MeasResult2CDMA2000_r9 _r3 = MeasResult2CDMA2000_r9.PerDecoder.Instance.Decode(input);
                            type.measResultsCDMA2000_r9.Add(_r3);
                        }
                    }
                    return(type);
                }
Exemplo n.º 2
0
            public MeasResult2UTRA_r9 Decode(BitArrayInputStream input)
            {
                MeasResult2UTRA_r9 _r = new MeasResult2UTRA_r9();

                _r.InitDefaults();
                _r.carrierFreq_r9    = input.ReadBits(14);
                _r.measResultList_r9 = new List <MeasResultUTRA>();
                int nBits = 3;
                int num3  = input.ReadBits(nBits) + 1;

                for (int i = 0; i < num3; i++)
                {
                    MeasResultUTRA item = MeasResultUTRA.PerDecoder.Instance.Decode(input);
                    _r.measResultList_r9.Add(item);
                }
                return(_r);
            }
Exemplo n.º 3
0
                protected override void ProcessConfig(measResultNeighCells_r11_Type config, BitArrayInputStream input)
                {
                    BitMaskStream stream = new BitMaskStream(input, 4);

                    if (stream.Read())
                    {
                        config.measResultListEUTRA_r11 = new List <MeasResult2EUTRA_r9>();
                        int num3 = input.ReadBits(3) + 1;
                        for (int i = 0; i < num3; i++)
                        {
                            MeasResult2EUTRA_r9 item = MeasResult2EUTRA_r9.PerDecoder.Instance.Decode(input);
                            config.measResultListEUTRA_r11.Add(item);
                        }
                    }
                    if (stream.Read())
                    {
                        config.measResultListUTRA_r11 = new List <MeasResult2UTRA_r9>();
                        int num5 = input.ReadBits(3) + 1;
                        for (int j = 0; j < num5; j++)
                        {
                            MeasResult2UTRA_r9 _r2 = MeasResult2UTRA_r9.PerDecoder.Instance.Decode(input);
                            config.measResultListUTRA_r11.Add(_r2);
                        }
                    }
                    if (stream.Read())
                    {
                        config.measResultListGERAN_r11 = new List <MeasResultGERAN>();
                        int num7 = input.ReadBits(3) + 1;
                        for (int k = 0; k < num7; k++)
                        {
                            MeasResultGERAN tgeran = MeasResultGERAN.PerDecoder.Instance.Decode(input);
                            config.measResultListGERAN_r11.Add(tgeran);
                        }
                    }
                    if (stream.Read())
                    {
                        config.measResultsCDMA2000_r11 = new List <MeasResult2CDMA2000_r9>();
                        int num9 = input.ReadBits(3) + 1;
                        for (int m = 0; m < num9; m++)
                        {
                            MeasResult2CDMA2000_r9 _r3 = MeasResult2CDMA2000_r9.PerDecoder.Instance.Decode(input);
                            config.measResultsCDMA2000_r11.Add(_r3);
                        }
                    }
                }
Exemplo n.º 4
0
 public MeasResult2UTRA_r9 Decode(BitArrayInputStream input)
 {
     MeasResult2UTRA_r9 _r = new MeasResult2UTRA_r9();
     _r.InitDefaults();
     _r.carrierFreq_r9 = input.readBits(14);
     _r.measResultList_r9 = new List<MeasResultUTRA>();
     int nBits = 3;
     int num3 = input.readBits(nBits) + 1;
     for (int i = 0; i < num3; i++)
     {
         MeasResultUTRA item = MeasResultUTRA.PerDecoder.Instance.Decode(input);
         _r.measResultList_r9.Add(item);
     }
     return _r;
 }