Exemplo n.º 1
0
            public RRCConnectionReconfiguration_v1020_IEs Decode(BitArrayInputStream input)
            {
                int num2;
                RRCConnectionReconfiguration_v1020_IEs es = new RRCConnectionReconfiguration_v1020_IEs();

                es.InitDefaults();
                BitMaskStream stream = new BitMaskStream(input, 3);

                if (stream.Read())
                {
                    es.sCellToReleaseList_r10 = new List <long>();
                    num2 = 2;
                    int num3 = input.ReadBits(num2) + 1;
                    for (int i = 0; i < num3; i++)
                    {
                        long item = input.ReadBits(3) + 1;
                        es.sCellToReleaseList_r10.Add(item);
                    }
                }
                if (stream.Read())
                {
                    es.sCellToAddModList_r10 = new List <SCellToAddMod_r10>();
                    num2 = 2;
                    int num6 = input.ReadBits(num2) + 1;
                    for (int j = 0; j < num6; j++)
                    {
                        SCellToAddMod_r10 _r = SCellToAddMod_r10.PerDecoder.Instance.Decode(input);
                        es.sCellToAddModList_r10.Add(_r);
                    }
                }
                if (stream.Read())
                {
                    es.nonCriticalExtension = RRCConnectionReconfiguration_v1130_IEs.PerDecoder.Instance.Decode(input);
                }
                return(es);
            }
 public RRCConnectionReconfiguration_v1020_IEs Decode(BitArrayInputStream input)
 {
     int num2;
     RRCConnectionReconfiguration_v1020_IEs es = new RRCConnectionReconfiguration_v1020_IEs();
     es.InitDefaults();
     BitMaskStream stream = new BitMaskStream(input, 3);
     if (stream.Read())
     {
         es.sCellToReleaseList_r10 = new List<long>();
         num2 = 2;
         int num3 = input.readBits(num2) + 1;
         for (int i = 0; i < num3; i++)
         {
             long item = input.readBits(3) + 1;
             es.sCellToReleaseList_r10.Add(item);
         }
     }
     if (stream.Read())
     {
         es.sCellToAddModList_r10 = new List<SCellToAddMod_r10>();
         num2 = 2;
         int num6 = input.readBits(num2) + 1;
         for (int j = 0; j < num6; j++)
         {
             SCellToAddMod_r10 _r = SCellToAddMod_r10.PerDecoder.Instance.Decode(input);
             es.sCellToAddModList_r10.Add(_r);
         }
     }
     if (stream.Read())
     {
         es.nonCriticalExtension = RRCConnectionReconfiguration_v1130_IEs.PerDecoder.Instance.Decode(input);
     }
     return es;
 }