Example #1
0
            public BroadcastCompletedAreaList Decode(BitArrayInputStream input)
            {
                int num4;
                BroadcastCompletedAreaList list = new BroadcastCompletedAreaList();

                list.InitDefaults();
                input.readBit();
                switch (input.readBits(2))
                {
                case 0:
                {
                    input.skipUnreadedBits();
                    list.cellID_Broadcast = new List <CellID_Broadcast_Item>();
                    num4 = 0x10;
                    int num6 = input.readBits(num4) + 1;
                    for (int i = 0; i < num6; i++)
                    {
                        CellID_Broadcast_Item item = CellID_Broadcast_Item.PerDecoder.Instance.Decode(input);
                        list.cellID_Broadcast.Add(item);
                    }
                    return(list);
                }

                case 1:
                {
                    input.skipUnreadedBits();
                    list.tAI_Broadcast = new List <TAI_Broadcast_Item>();
                    num4 = 0x10;
                    int num8 = input.readBits(num4) + 1;
                    for (int j = 0; j < num8; j++)
                    {
                        TAI_Broadcast_Item item2 = TAI_Broadcast_Item.PerDecoder.Instance.Decode(input);
                        list.tAI_Broadcast.Add(item2);
                    }
                    return(list);
                }

                case 2:
                {
                    input.skipUnreadedBits();
                    list.emergencyAreaID_Broadcast = new List <EmergencyAreaID_Broadcast_Item>();
                    num4 = 0x10;
                    int num10 = input.readBits(num4) + 1;
                    for (int k = 0; k < num10; k++)
                    {
                        EmergencyAreaID_Broadcast_Item item3 = EmergencyAreaID_Broadcast_Item.PerDecoder.Instance.Decode(input);
                        list.emergencyAreaID_Broadcast.Add(item3);
                    }
                    return(list);
                }
                }
                throw new Exception(GetType().Name + ":NoChoice had been choose");
            }
Example #2
0
 public CellID_Broadcast_Item Decode(BitArrayInputStream input)
 {
     CellID_Broadcast_Item item = new CellID_Broadcast_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     item.eCGI = EUTRAN_CGI.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;
 }
Example #3
0
            public CellID_Broadcast_Item Decode(BitArrayInputStream input)
            {
                CellID_Broadcast_Item item = new CellID_Broadcast_Item();

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

                item.eCGI = EUTRAN_CGI.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);
            }