Ejemplo n.º 1
0
            public ServedCellsToModify_Item Decode(BitArrayInputStream input)
            {
                int num4;
                ServedCellsToModify_Item item = new ServedCellsToModify_Item();

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

                item.old_ecgi       = ECGI.PerDecoder.Instance.Decode(input);
                item.servedCellInfo = ServedCell_Information.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    item.neighbour_Info = new List <Neighbour_Information_Element>();
                    num4 = 10;
                    int num5 = input.readBits(num4);
                    for (int i = 0; i < num5; i++)
                    {
                        Neighbour_Information_Element element = Neighbour_Information_Element.PerDecoder.Instance.Decode(input);
                        item.neighbour_Info.Add(element);
                    }
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.iE_Extensions = new List <ProtocolExtensionField>();
                    num4 = 0x10;
                    int num7 = input.readBits(num4) + 1;
                    for (int j = 0; j < num7; j++)
                    {
                        ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        item.iE_Extensions.Add(field);
                    }
                }
                return(item);
            }
Ejemplo n.º 2
0
            public static List <ServedCellsToModify_Item> Value(BitArrayInputStream input)
            {
                input.skipUnreadedBits();
                List <ServedCellsToModify_Item> list = new List <ServedCellsToModify_Item>();
                int nBits = 8;
                int num2  = input.ReadBits(nBits) + 1;

                for (int i = 0; i < num2; i++)
                {
                    ServedCellsToModify_Item item = ServedCellsToModify_Item.PerDecoder.Instance.Decode(input);
                    list.Add(item);
                }
                return(list);
            }
Ejemplo n.º 3
0
 public ServedCellsToModify_Item Decode(BitArrayInputStream input)
 {
     int num4;
     ServedCellsToModify_Item item = new ServedCellsToModify_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.readBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2);
     item.old_ecgi = ECGI.PerDecoder.Instance.Decode(input);
     item.servedCellInfo = ServedCell_Information.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         item.neighbour_Info = new List<Neighbour_Information_Element>();
         num4 = 10;
         int num5 = input.readBits(num4);
         for (int i = 0; i < num5; i++)
         {
             Neighbour_Information_Element element = Neighbour_Information_Element.PerDecoder.Instance.Decode(input);
             item.neighbour_Info.Add(element);
         }
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         num4 = 0x10;
         int num7 = input.readBits(num4) + 1;
         for (int j = 0; j < num7; j++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }