示例#1
0
            public CellInformation_Item Decode(BitArrayInputStream input)
            {
                int num4;
                CellInformation_Item item = new CellInformation_Item();

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

                item.cell_ID = ECGI.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    item.ul_InterferenceOverloadIndication = new List <UL_InterferenceOverloadIndication_Item>();
                    num4 = 7;
                    int num5 = input.readBits(num4) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        num4 = (input.readBit() == 0) ? 2 : 2;
                        UL_InterferenceOverloadIndication_Item item2 = (UL_InterferenceOverloadIndication_Item)input.readBits(num4);
                        item.ul_InterferenceOverloadIndication.Add(item2);
                    }
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.ul_HighInterferenceIndicationInfo = new List <UL_HighInterferenceIndicationInfo_Item>();
                    num4 = 8;
                    int num7 = input.readBits(num4) + 1;
                    for (int j = 0; j < num7; j++)
                    {
                        UL_HighInterferenceIndicationInfo_Item item3
                            = UL_HighInterferenceIndicationInfo_Item.PerDecoder.Instance.Decode(input);
                        item.ul_HighInterferenceIndicationInfo.Add(item3);
                    }
                }
                if (stream.Read())
                {
                    item.relativeNarrowbandTxPower = RelativeNarrowbandTxPower.PerDecoder.Instance.Decode(input);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.iE_Extensions = new List <ProtocolExtensionField>();
                    num4 = 0x10;
                    int num9 = input.readBits(num4) + 1;
                    for (int k = 0; k < num9; k++)
                    {
                        ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        item.iE_Extensions.Add(field);
                    }
                }
                return(item);
            }
示例#2
0
 public CellInformation_Item Decode(BitArrayInputStream input)
 {
     int num4;
     CellInformation_Item item = new CellInformation_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 4) : new BitMaskStream(input, 4);
     item.cell_ID = ECGI.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         item.ul_InterferenceOverloadIndication = new List<UL_InterferenceOverloadIndication_Item>();
         num4 = 7;
         int num5 = input.ReadBits(num4) + 1;
         for (int i = 0; i < num5; i++)
         {
             num4 = (input.ReadBit() == 0) ? 2 : 2;
             UL_InterferenceOverloadIndication_Item item2 = (UL_InterferenceOverloadIndication_Item)input.ReadBits(num4);
             item.ul_InterferenceOverloadIndication.Add(item2);
         }
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.ul_HighInterferenceIndicationInfo = new List<UL_HighInterferenceIndicationInfo_Item>();
         num4 = 8;
         int num7 = input.ReadBits(num4) + 1;
         for (int j = 0; j < num7; j++)
         {
             UL_HighInterferenceIndicationInfo_Item item3 
                 = UL_HighInterferenceIndicationInfo_Item.PerDecoder.Instance.Decode(input);
             item.ul_HighInterferenceIndicationInfo.Add(item3);
         }
     }
     if (stream.Read())
     {
         item.relativeNarrowbandTxPower = RelativeNarrowbandTxPower.PerDecoder.Instance.Decode(input);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         num4 = 0x10;
         int num9 = input.ReadBits(num4) + 1;
         for (int k = 0; k < num9; k++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }