Ejemplo n.º 1
0
            public Bearers_SubjectToStatusTransfer_Item Decode(BitArrayInputStream input)
            {
                Bearers_SubjectToStatusTransfer_Item item = new Bearers_SubjectToStatusTransfer_Item();

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

                input.ReadBit();
                item.e_RAB_ID      = input.ReadBits(4);
                item.uL_COUNTvalue = COUNTvalue.PerDecoder.Instance.Decode(input);
                item.dL_COUNTvalue = COUNTvalue.PerDecoder.Instance.Decode(input);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    item.receiveStatusofULPDCPSDUs = input.ReadBitString(0x1000);
                }
                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);
            }
 public Bearers_SubjectToStatusTransfer_Item Decode(BitArrayInputStream input)
 {
     Bearers_SubjectToStatusTransfer_Item item = new Bearers_SubjectToStatusTransfer_Item();
     item.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 2) : new BitMaskStream(input, 2);
     input.ReadBit();
     item.e_RAB_ID = input.ReadBits(4);
     item.uL_COUNTvalue = COUNTvalue.PerDecoder.Instance.Decode(input);
     item.dL_COUNTvalue = COUNTvalue.PerDecoder.Instance.Decode(input);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         item.receiveStatusofULPDCPSDUs = input.ReadBitString(0x1000);
     }
     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;
 }