Exemple #1
0
 public SchedulingInfo Decode(BitArrayInputStream input)
 {
     SchedulingInfo info = new SchedulingInfo();
     info.InitDefaults();
     int nBits = 3;
     info.si_Periodicity = (si_Periodicity_Enum)input.ReadBits(nBits);
     info.sib_MappingInfo = new List<SIB_Type>();
     nBits = 5;
     int num3 = input.ReadBits(nBits);
     for (int i = 0; i < num3; i++)
     {
         nBits = (input.ReadBit() == 0) ? 4 : 4;
         SIB_Type item = (SIB_Type)input.ReadBits(nBits);
         info.sib_MappingInfo.Add(item);
     }
     return info;
 }
Exemple #2
0
            public SchedulingInfo Decode(BitArrayInputStream input)
            {
                SchedulingInfo info = new SchedulingInfo();

                info.InitDefaults();
                int nBits = 3;

                info.si_Periodicity  = (si_Periodicity_Enum)input.ReadBits(nBits);
                info.sib_MappingInfo = new List <SIB_Type>();
                nBits = 5;
                int num3 = input.ReadBits(nBits);

                for (int i = 0; i < num3; i++)
                {
                    nBits = (input.ReadBit() == 0) ? 4 : 4;
                    SIB_Type item = (SIB_Type)input.ReadBits(nBits);
                    info.sib_MappingInfo.Add(item);
                }
                return(info);
            }