Example #1
0
 public InterFreqBandInfo Decode(BitArrayInputStream input)
 {
     InterFreqBandInfo info = new InterFreqBandInfo();
     info.InitDefaults();
     info.interFreqNeedForGaps = input.readBit() == 1;
     return info;
 }
            public BandInfoEUTRA Decode(BitArrayInputStream input)
            {
                BandInfoEUTRA oeutra = new BandInfoEUTRA();

                oeutra.InitDefaults();
                BitMaskStream stream = new BitMaskStream(input, 1);

                oeutra.interFreqBandList = new List <InterFreqBandInfo>();
                int nBits = 6;
                int num3  = input.readBits(nBits) + 1;

                for (int i = 0; i < num3; i++)
                {
                    InterFreqBandInfo item = InterFreqBandInfo.PerDecoder.Instance.Decode(input);
                    oeutra.interFreqBandList.Add(item);
                }
                if (stream.Read())
                {
                    oeutra.interRAT_BandList = new List <InterRAT_BandInfo>();
                    nBits = 6;
                    int num5 = input.readBits(nBits) + 1;
                    for (int j = 0; j < num5; j++)
                    {
                        InterRAT_BandInfo info2 = InterRAT_BandInfo.PerDecoder.Instance.Decode(input);
                        oeutra.interRAT_BandList.Add(info2);
                    }
                }
                return(oeutra);
            }
Example #3
0
            public InterFreqBandInfo Decode(BitArrayInputStream input)
            {
                InterFreqBandInfo info = new InterFreqBandInfo();

                info.InitDefaults();
                info.interFreqNeedForGaps = input.readBit() == 1;
                return(info);
            }
Example #4
0
            protected override void ProcessConfig(BandInfoEUTRA config, BitArrayInputStream input)
            {
                BitMaskStream stream = new BitMaskStream(input, 1);

                config.interFreqBandList = new List <InterFreqBandInfo>();
                int num3 = input.ReadBits(6) + 1;

                for (int i = 0; i < num3; i++)
                {
                    InterFreqBandInfo item = InterFreqBandInfo.PerDecoder.Instance.Decode(input);
                    config.interFreqBandList.Add(item);
                }
                if (stream.Read())
                {
                    config.interRAT_BandList = new List <InterRAT_BandInfo>();
                    int num5 = input.ReadBits(6) + 1;
                    for (int j = 0; j < num5; j++)
                    {
                        InterRAT_BandInfo info2 = InterRAT_BandInfo.PerDecoder.Instance.Decode(input);
                        config.interRAT_BandList.Add(info2);
                    }
                }
            }