Beispiel #1
0
                    public start_Type Decode(BitArrayInputStream input)
                    {
                        start_Type type = new start_Type();

                        type.InitDefaults();
                        type.rstd_InterFreqInfoList_r10 = new List <RSTD_InterFreqInfo_r10>();
                        int nBits = 2;
                        int num3  = input.readBits(nBits) + 1;

                        for (int i = 0; i < num3; i++)
                        {
                            RSTD_InterFreqInfo_r10 item = RSTD_InterFreqInfo_r10.PerDecoder.Instance.Decode(input);
                            type.rstd_InterFreqInfoList_r10.Add(item);
                        }
                        return(type);
                    }
 public RSTD_InterFreqInfo_r10 Decode(BitArrayInputStream input)
 {
     RSTD_InterFreqInfo_r10 _r = new RSTD_InterFreqInfo_r10();
     _r.InitDefaults();
     bool flag = input.ReadBit() != 0;
     _r.carrierFreq_r10 = input.ReadBits(0x10);
     _r.measPRS_Offset_r10 = input.ReadBits(6);
     if (flag)
     {
         BitMaskStream stream = new BitMaskStream(input, 1);
         if (stream.Read())
         {
             _r.carrierFreq_v1090 = input.ReadBits(0x12) + 0x10000;
         }
     }
     return _r;
 }
Beispiel #3
0
            public RSTD_InterFreqInfo_r10 Decode(BitArrayInputStream input)
            {
                RSTD_InterFreqInfo_r10 _r = new RSTD_InterFreqInfo_r10();

                _r.InitDefaults();
                bool flag = input.ReadBit() != 0;

                _r.carrierFreq_r10    = input.ReadBits(0x10);
                _r.measPRS_Offset_r10 = input.ReadBits(6);
                if (flag)
                {
                    BitMaskStream stream = new BitMaskStream(input, 1);
                    if (stream.Read())
                    {
                        _r.carrierFreq_v1090 = input.ReadBits(0x12) + 0x10000;
                    }
                }
                return(_r);
            }