コード例 #1
0
            public static List <ServedCellsToActivate_Item> Value(BitArrayInputStream input)
            {
                input.skipUnreadedBits();
                List <ServedCellsToActivate_Item> list = new List <ServedCellsToActivate_Item>();
                int nBits = 8;
                int num2  = input.ReadBits(nBits) + 1;

                for (int i = 0; i < num2; i++)
                {
                    ServedCellsToActivate_Item item = ServedCellsToActivate_Item.PerDecoder.Instance.Decode(input);
                    list.Add(item);
                }
                return(list);
            }
コード例 #2
0
            public ServedCellsToActivate_Item Decode(BitArrayInputStream input)
            {
                ServedCellsToActivate_Item item = new ServedCellsToActivate_Item();

                item.InitDefaults();
                BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);

                item.ecgi = ECGI.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.iE_Extensions = new List <ProtocolExtensionField>();
                    int nBits = 0x10;
                    int num5  = input.readBits(nBits) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        item.iE_Extensions.Add(field);
                    }
                }
                return(item);
            }
コード例 #3
0
ファイル: ServedCell.cs プロジェクト: ouyh18/LteTools
 public ServedCellsToActivate_Item Decode(BitArrayInputStream input)
 {
     ServedCellsToActivate_Item item = new ServedCellsToActivate_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     item.ecgi = ECGI.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         int nBits = 0x10;
         int num5 = input.readBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }