Ejemplo n.º 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);
            }
Ejemplo n.º 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;
 }