Пример #1
0
            public MeasObjectGERAN Decode(BitArrayInputStream input)
            {
                MeasObjectGERAN tgeran = new MeasObjectGERAN();

                tgeran.InitDefaults();
                input.ReadBit();
                BitMaskStream stream  = new BitMaskStream(input, 2);
                BitMaskStream stream2 = new BitMaskStream(input, 1);

                tgeran.carrierFreqs = CarrierFreqsGERAN.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    tgeran.offsetFreq = input.ReadBits(5) + -15;
                }
                if (stream.Read())
                {
                    tgeran.ncc_Permitted = input.ReadBitString(8);
                }
                if (stream2.Read())
                {
                    tgeran.cellForWhichToReportCGI = PhysCellIdGERAN.PerDecoder.Instance.Decode(input);
                }
                return(tgeran);
            }
Пример #2
0
 public MeasObjectGERAN Decode(BitArrayInputStream input)
 {
     MeasObjectGERAN tgeran = new MeasObjectGERAN();
     tgeran.InitDefaults();
     input.ReadBit();
     BitMaskStream stream = new BitMaskStream(input, 2);
     BitMaskStream stream2 = new BitMaskStream(input, 1);
     tgeran.carrierFreqs = CarrierFreqsGERAN.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         tgeran.offsetFreq = input.ReadBits(5) + -15;
     }
     if (stream.Read())
     {
         tgeran.ncc_Permitted = input.ReadBitString(8);
     }
     if (stream2.Read())
     {
         tgeran.cellForWhichToReportCGI = PhysCellIdGERAN.PerDecoder.Instance.Decode(input);
     }
     return tgeran;
 }