Exemple #1
0
            public RF_Parameters_v1090 Decode(BitArrayInputStream input)
            {
                RF_Parameters_v1090 _v = new RF_Parameters_v1090();

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

                if (stream.Read())
                {
                    _v.supportedBandCombination_v1090 = new List <List <BandParameters_v1090> >();
                    int nBits = 7;
                    int num3  = input.ReadBits(nBits) + 1;
                    for (int i = 0; i < num3; i++)
                    {
                        List <BandParameters_v1090> item = new List <BandParameters_v1090>();
                        nBits = 6;
                        int num5 = input.ReadBits(nBits) + 1;
                        for (int j = 0; j < num5; j++)
                        {
                            BandParameters_v1090 _v2 = BandParameters_v1090.PerDecoder.Instance.Decode(input);
                            item.Add(_v2);
                        }
                        _v.supportedBandCombination_v1090.Add(item);
                    }
                }
                return(_v);
            }
Exemple #2
0
 public RF_Parameters_v1090 Decode(BitArrayInputStream input)
 {
     RF_Parameters_v1090 _v = new RF_Parameters_v1090();
     _v.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 1);
     if (stream.Read())
     {
         _v.supportedBandCombination_v1090 = new List<List<BandParameters_v1090>>();
         int nBits = 7;
         int num3 = input.ReadBits(nBits) + 1;
         for (int i = 0; i < num3; i++)
         {
             List<BandParameters_v1090> item = new List<BandParameters_v1090>();
             nBits = 6;
             int num5 = input.ReadBits(nBits) + 1;
             for (int j = 0; j < num5; j++)
             {
                 BandParameters_v1090 _v2 = BandParameters_v1090.PerDecoder.Instance.Decode(input);
                 item.Add(_v2);
             }
             _v.supportedBandCombination_v1090.Add(item);
         }
     }
     return _v;
 }