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

                information.InitDefaults();
                BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
                int           nBits  = input.ReadBits(3) + 1;

                input.skipUnreadedBits();
                information.e_RAB_MaximumBitrateDL = input.ReadBits(nBits * 8);
                nBits = input.ReadBits(3) + 1;
                input.skipUnreadedBits();
                information.e_RAB_MaximumBitrateUL = input.ReadBits(nBits * 8);
                nBits = input.ReadBits(3) + 1;
                input.skipUnreadedBits();
                information.e_RAB_GuaranteedBitrateDL = input.ReadBits(nBits * 8);
                nBits = input.ReadBits(3) + 1;
                input.skipUnreadedBits();
                information.e_RAB_GuaranteedBitrateUL = input.ReadBits(nBits * 8);
                if (stream.Read())
                {
                    input.skipUnreadedBits();
                    information.iE_Extensions = new List <ProtocolExtensionField>();
                    nBits = 0x10;
                    int num5 = input.ReadBits(nBits) + 1;
                    for (int i = 0; i < num5; i++)
                    {
                        ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
                        information.iE_Extensions.Add(item);
                    }
                }
                return(information);
            }
Ejemplo n.º 2
0
 public GBR_QosInformation Decode(BitArrayInputStream input)
 {
     GBR_QosInformation information = new GBR_QosInformation();
     information.InitDefaults();
     BitMaskStream stream = (input.ReadBit() != 0) ? new BitMaskStream(input, 1) : new BitMaskStream(input, 1);
     int nBits = input.ReadBits(3) + 1;
     input.skipUnreadedBits();
     information.e_RAB_MaximumBitrateDL = input.ReadBits(nBits * 8);
     nBits = input.ReadBits(3) + 1;
     input.skipUnreadedBits();
     information.e_RAB_MaximumBitrateUL = input.ReadBits(nBits * 8);
     nBits = input.ReadBits(3) + 1;
     input.skipUnreadedBits();
     information.e_RAB_GuaranteedBitrateDL = input.ReadBits(nBits * 8);
     nBits = input.ReadBits(3) + 1;
     input.skipUnreadedBits();
     information.e_RAB_GuaranteedBitrateUL = input.ReadBits(nBits * 8);
     if (stream.Read())
     {
         input.skipUnreadedBits();
         information.iE_Extensions = new List<ProtocolExtensionField>();
         nBits = 0x10;
         int num5 = input.ReadBits(nBits) + 1;
         for (int i = 0; i < num5; i++)
         {
             ProtocolExtensionField item = ProtocolExtensionField.PerDecoder.Instance.Decode(input);
             information.iE_Extensions.Add(item);
         }
     }
     return information;
 }