예제 #1
0
            public UL_HighInterferenceIndicationInfo_Item Decode(BitArrayInputStream input)
            {
                UL_HighInterferenceIndicationInfo_Item item = new UL_HighInterferenceIndicationInfo_Item();

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

                item.target_Cell_ID = ECGI.PerDecoder.Instance.Decode(input);
                input.ReadBit();
                int num = input.ReadBits(7);

                input.skipUnreadedBits();
                item.ul_interferenceindication = input.ReadBitString(num + 1);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.iE_Extensions = new List <ProtocolExtensionField>();
                    const 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);
            }
예제 #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);
            }
예제 #3
0
파일: UL.cs 프로젝트: ouyh18/LtePlatform
 public UL_HighInterferenceIndicationInfo_Item Decode(BitArrayInputStream input)
 {
     UL_HighInterferenceIndicationInfo_Item item = new UL_HighInterferenceIndicationInfo_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     item.target_Cell_ID = ECGI.PerDecoder.Instance.Decode(input);
     input.ReadBit();
     int num = input.ReadBits(7);
     input.skipUnreadedBits();
     item.ul_interferenceindication = input.ReadBitString(num + 1);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         const 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;
 }