Пример #1
0
            public CompleteFailureCauseInformation_Item Decode(BitArrayInputStream input)
            {
                CompleteFailureCauseInformation_Item item = new CompleteFailureCauseInformation_Item();

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

                item.cell_ID = ECGI.PerDecoder.Instance.Decode(input);
                item.measurementFailureCause_List = new List <ProtocolIE_Field>();
                int nBits = 5;
                int num5  = input.readBits(nBits) + 1;

                for (int i = 0; i < num5; i++)
                {
                    ProtocolIE_Field field = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
                    item.measurementFailureCause_List.Add(field);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.iE_Extensions = new List <ProtocolExtensionField>();
                    nBits = 0x10;
                    int num7 = input.readBits(nBits) + 1;
                    for (int j = 0; j < num7; j++)
                    {
                        ProtocolExtensionField field2 = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        item.iE_Extensions.Add(field2);
                    }
                }
                return(item);
            }
Пример #2
0
 public CompleteFailureCauseInformation_Item Decode(BitArrayInputStream input)
 {
     CompleteFailureCauseInformation_Item item = new CompleteFailureCauseInformation_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     item.cell_ID = ECGI.PerDecoder.Instance.Decode(input);
     item.measurementFailureCause_List = new List<ProtocolIE_Field>();
     int nBits = 5;
     int num5 = input.ReadBits(nBits) + 1;
     for (int i = 0; i < num5; i++)
     {
         ProtocolIE_Field field = ProtocolIE_Field.PerDecoder.Instance.Decode(input);
         item.measurementFailureCause_List.Add(field);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num7 = input.ReadBits(nBits) + 1;
         for (int j = 0; j < num7; j++)
         {
             ProtocolExtensionField field2 = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field2);
         }
     }
     return item;
 }