Esempio n. 1
0
            public E_RABInformationListItem Decode(BitArrayInputStream input)
            {
                int num4;
                E_RABInformationListItem item = new E_RABInformationListItem();

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

                input.ReadBit();
                item.e_RAB_ID = input.ReadBits(4);
                if (stream.Read())
                {
                    num4 = 1;
                    item.dL_Forwarding = (DL_Forwarding)input.ReadBits(num4);
                }
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.iE_Extensions = new List <ProtocolExtensionField>();
                    num4 = 0x10;
                    int num5 = input.ReadBits(num4) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        item.iE_Extensions.Add(field);
                    }
                }
                return(item);
            }
Esempio n. 2
0
 public E_RABInformationListItem Decode(BitArrayInputStream input)
 {
     int num4;
     E_RABInformationListItem item = new E_RABInformationListItem();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2);
     input.ReadBit();
     item.e_RAB_ID = input.ReadBits(4);
     if (stream.Read())
     {
         num4 = 1;
         item.dL_Forwarding = (DL_Forwarding)input.ReadBits(num4);
     }
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.iE_Extensions = new List<ProtocolExtensionField>();
         num4 = 0x10;
         int num5 = input.ReadBits(num4) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField field = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             item.iE_Extensions.Add(field);
         }
     }
     return item;
 }